mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-05 19:42:47 +00:00
imgui: Refactor, use in cut gizmo
This commit is contained in:
@@ -636,14 +636,16 @@ private:
|
||||
void render_current_gizmo(const Selection& selection) const;
|
||||
void render_current_gizmo_for_picking_pass(const Selection& selection) const;
|
||||
|
||||
void render_overlay(const GLCanvas3D& canvas) const;
|
||||
void render_overlay(const GLCanvas3D& canvas, const Selection& selection) const;
|
||||
|
||||
#ifndef ENABLE_IMGUI
|
||||
void create_external_gizmo_widgets(wxWindow *parent);
|
||||
#endif // not ENABLE_IMGUI
|
||||
|
||||
private:
|
||||
void _reset();
|
||||
|
||||
void _render_overlay(const GLCanvas3D& canvas) const;
|
||||
void _render_overlay(const GLCanvas3D& canvas, const Selection& selection) const;
|
||||
void _render_current_gizmo(const Selection& selection) const;
|
||||
|
||||
float _get_total_overlay_height() const;
|
||||
@@ -732,7 +734,9 @@ private:
|
||||
|
||||
GCodePreviewVolumeIndex m_gcode_preview_volume_index;
|
||||
|
||||
#ifndef ENABLE_IMGUI
|
||||
wxWindow *m_external_gizmo_widgets_parent;
|
||||
#endif // not ENABLE_IMGUI
|
||||
|
||||
void post_event(wxEvent &&event);
|
||||
void viewport_changed();
|
||||
@@ -852,7 +856,9 @@ public:
|
||||
|
||||
void set_tooltip(const std::string& tooltip) const;
|
||||
|
||||
#ifndef ENABLE_IMGUI
|
||||
void set_external_gizmo_widgets_parent(wxWindow *parent);
|
||||
#endif // not ENABLE_IMGUI
|
||||
|
||||
void do_move();
|
||||
void do_rotate();
|
||||
|
||||
Reference in New Issue
Block a user