mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
NEW:show speed and flow in gcodeviewer
Change-Id: I107f8be06820bc7859aee5654f264397331726b6
This commit is contained in:
parent
31ba41ec3e
commit
df321f8cd9
2 changed files with 41 additions and 13 deletions
|
@ -600,6 +600,7 @@ class GCodeViewer
|
|||
#endif // ENABLE_GCODE_VIEWER_STATISTICS
|
||||
|
||||
public:
|
||||
enum class EViewType : unsigned char;
|
||||
struct SequentialView
|
||||
{
|
||||
class Marker
|
||||
|
@ -626,7 +627,7 @@ public:
|
|||
void set_visible(bool visible) { m_visible = visible; }
|
||||
|
||||
//BBS: GUI refactor: add canvas size
|
||||
void render(int canvas_width, int canvas_height) const;
|
||||
void render(int canvas_width, int canvas_height, const EViewType& view_type, const std::vector<GCodeProcessorResult::MoveVertex>& moves, uint64_t curr_line_id) const;
|
||||
};
|
||||
|
||||
class GCodeWindow
|
||||
|
@ -685,7 +686,7 @@ public:
|
|||
std::vector<unsigned int> gcode_ids;
|
||||
|
||||
//BBS: GUI refactor: add canvas size
|
||||
void render(float legend_height, int canvas_width, int canvas_height) const;
|
||||
void render(float legend_height, int canvas_width, int canvas_height, const EViewType& view_type, const std::vector<GCodeProcessorResult::MoveVertex>& moves) const;
|
||||
};
|
||||
|
||||
struct ETools
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue