mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 21:02:23 +00:00
ENH: config: add filament_maps in partplate
Change-Id: I1183830788e703f1d33a8a4b620b58b822283dd4 (cherry picked from commit b0e3ab037e3f5af0851539af5ac15b8f96daf548)
This commit is contained in:
@@ -481,6 +481,16 @@ public:
|
||||
|
||||
void print() const;
|
||||
|
||||
FilamentMapMode get_filament_map_mode();
|
||||
void set_filament_map_mode(FilamentMapMode& mode);
|
||||
|
||||
std::vector<int> get_filament_maps();
|
||||
void set_filament_maps(std::vector<int>& f_maps);
|
||||
|
||||
void set_filament_count(int filament_count);
|
||||
void on_filament_added();
|
||||
void on_filament_deleted(int filament_count, int filament_id);
|
||||
|
||||
friend class cereal::access;
|
||||
friend class UndoRedo::StackImpl;
|
||||
|
||||
@@ -573,6 +583,8 @@ class PartPlateList : public ObjectBase
|
||||
|
||||
bool m_is_dark = false;
|
||||
|
||||
int m_filament_count = 1;
|
||||
|
||||
void init();
|
||||
//compute the origin for printable plate with index i
|
||||
Vec3d compute_origin(int index, int column_count);
|
||||
@@ -839,7 +851,7 @@ public:
|
||||
* if with_gcode = true and specify plate_idx, export plate_idx gcode only
|
||||
*/
|
||||
int store_to_3mf_structure(PlateDataPtrs& plate_data_list, bool with_slice_info = true, int plate_idx = -1);
|
||||
int load_from_3mf_structure(PlateDataPtrs& plate_data_list);
|
||||
int load_from_3mf_structure(PlateDataPtrs& plate_data_list, int filament_count = 1);
|
||||
//load gcode files
|
||||
int load_gcode_files();
|
||||
|
||||
@@ -860,6 +872,10 @@ public:
|
||||
void init_cali_texture_info();
|
||||
void load_cali_textures();
|
||||
|
||||
void set_filament_count(int filament_count);
|
||||
void on_filament_deleted(int filament_count, int filament_id);
|
||||
void on_filament_added(int filament_count);
|
||||
|
||||
BedTextureInfo bed_texture_info[btCount];
|
||||
BedTextureInfo cali_texture_info;
|
||||
BedTextureInfo extruder_only_area_info[(unsigned char) ExtruderOnlyAreaType::btAreaCount];
|
||||
|
||||
Reference in New Issue
Block a user