ENH:add calc_extruder_only_area api

jira: none
Change-Id: Ic49348915bce53e9cd63effb5053a93a40840e04
(cherry picked from commit 647467e25b83588bfde25429e64320cb42c1ac99)
This commit is contained in:
zhou.xu
2024-10-21 15:51:13 +08:00
committed by Noisyfox
parent a1586b348f
commit 8874585c89
6 changed files with 147 additions and 115 deletions

View File

@@ -881,9 +881,16 @@ public:
ar(m_plate_width, m_plate_depth, m_plate_height, m_height_to_lid, m_height_to_rod, m_height_limit_mode, m_plate_count, m_current_plate, m_plate_list, unprintable_plate);
//ar(m_plate_width, m_plate_depth, m_plate_height, m_plate_count, m_current_plate);
}
struct Rect
{
int x;
int y;
int w;
int h;
};
bool calc_extruder_only_area(Rect &left_only_rect, Rect &right_only_rect);
void init_bed_type_info();
void init_extruder_only_area_info();
bool init_extruder_only_area_info();
void load_bedtype_textures();
void load_extruder_only_area_textures();
@@ -899,7 +906,7 @@ public:
BedTextureInfo bed_texture_info[btCount];
BedTextureInfo cali_texture_info;
BedTextureInfo extruder_only_area_info[(unsigned char) ExtruderOnlyAreaType::btAreaCount];
BedTextureInfo extruder_only_area_info[(unsigned char) Slic3r::ExtruderOnlyAreaType::btAreaCount];
};
} // namespace GUI