mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 11:21:30 +00:00
sublayers and more
This commit is contained in:
@@ -591,7 +591,7 @@ public:
|
||||
|
||||
void on_filament_change(size_t filament_idx);
|
||||
void on_filament_count_change(size_t extruders_count);
|
||||
void on_filaments_delete(size_t extruders_count, size_t filament_id, int replace_filament_id = -1);
|
||||
void on_filaments_delete(size_t extruders_count, size_t filament_id, int replace_filament_id = -1, const std::vector<unsigned char>& is_mixed_before_delete = {});
|
||||
std::vector<Slic3r::ColorRGBA> get_extruders_colors();
|
||||
// BBS
|
||||
void on_bed_type_change(BedType bed_type);
|
||||
@@ -606,6 +606,15 @@ public:
|
||||
std::vector<std::string> get_extruder_colors_from_plater_config(const GCodeProcessorResult* const result = nullptr) const;
|
||||
std::vector<std::string> get_filament_colors_render_info() const;
|
||||
std::vector<std::string> get_filament_color_render_type() const;
|
||||
|
||||
// Endpoint colours for gradient mixed filaments, so the 3D scene and the paint gizmo can
|
||||
// draw a two-tone swatch. is_gradient is false for every ordinary filament slot.
|
||||
struct FilamentGradientInfo {
|
||||
bool is_gradient = false;
|
||||
std::array<float, 4> color_from = {0.5f, 0.5f, 0.5f, 1.0f};
|
||||
std::array<float, 4> color_to = {0.5f, 0.5f, 0.5f, 1.0f};
|
||||
};
|
||||
std::vector<FilamentGradientInfo> get_filament_gradient_info() const;
|
||||
std::vector<std::string> get_colors_for_color_print(const GCodeProcessorResult* const result = nullptr) const;
|
||||
|
||||
void set_global_filament_map_mode(FilamentMapMode mode);
|
||||
|
||||
Reference in New Issue
Block a user