mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
GCode Preview - Coloring by tool
This commit is contained in:
parent
6ff9021e04
commit
0d6a013658
8 changed files with 289 additions and 195 deletions
|
@ -152,6 +152,7 @@ public:
|
|||
Height,
|
||||
Width,
|
||||
Feedrate,
|
||||
Tool,
|
||||
Num_View_Types
|
||||
};
|
||||
|
||||
|
@ -216,9 +217,10 @@ public:
|
|||
EType type;
|
||||
EDirection direction;
|
||||
float feedrate;
|
||||
unsigned int extruder_id;
|
||||
Polyline3 polyline;
|
||||
|
||||
Polyline(EType type, EDirection direction, float feedrate, const Polyline3& polyline);
|
||||
Polyline(EType type, EDirection direction, float feedrate, unsigned int extruder_id, const Polyline3& polyline);
|
||||
};
|
||||
|
||||
typedef std::vector<Polyline> PolylinesList;
|
||||
|
@ -270,7 +272,7 @@ public:
|
|||
const Color& get_extrusion_feedrate_color(float feedrate) const;
|
||||
|
||||
std::string get_legend_title() const;
|
||||
LegendItemsList get_legend_items() const;
|
||||
LegendItemsList get_legend_items(const std::vector<float>& tool_colors) const;
|
||||
};
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue