Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2018-02-13 15:16:23 +0300
committerEnrico Turri <enricoturri@seznam.cz>2018-02-13 15:16:23 +0300
commitf4522cd2fc193d747fbbce566b028ba62ffd0ddd (patch)
tree20e376efde5df9502581b4d66c9d7c9f0844f245 /xs/src/libslic3r/Print.hpp
parent3f006dc11a7f18fa9e5a9921432b8267e55ebdcb (diff)
GCode Preview - Customizable extrusion role colors by editing 3DPreview.pm
Diffstat (limited to 'xs/src/libslic3r/Print.hpp')
-rw-r--r--xs/src/libslic3r/Print.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Print.hpp b/xs/src/libslic3r/Print.hpp
index 0a6c143b9..da94917fc 100644
--- a/xs/src/libslic3r/Print.hpp
+++ b/xs/src/libslic3r/Print.hpp
@@ -264,6 +264,18 @@ public:
void set_gcode_preview_unretractions_visible(bool visible);
void set_gcode_preview_shells_visible(bool visible);
+ // Sets the extrusion path colors from the given strings vector.
+ // Data in the vector should be formatted as follows:
+ // std::vector<std::string> role_colors =
+ // { <role_1>, <color_1>,
+ // <role_2>, <color_2>,
+ // <role_3>, <color_3>,
+ // ...
+ // <role_N>, <color_N> };
+ // where <role_X> should be a string from GCodeAnalyzer::PreviewData::Extrusion::Default_Extrusion_Role_Names[]
+ // and <color_X> an RGB color in hex format (i.e. red = FF0000)
+ void set_gcode_extrusion_paths_colors(const std::vector<std::string>& colors);
+
// methods for handling regions
PrintRegion* get_region(size_t idx) { return regions.at(idx); }
const PrintRegion* get_region(size_t idx) const { return regions.at(idx); }