mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
GLCanvas3D -> added support for cursor change and change cursor when using SLA support gizmo rectangle selection
This commit is contained in:
parent
9710140948
commit
d79a2b8d2d
7 changed files with 79 additions and 13 deletions
|
@ -392,6 +392,14 @@ private:
|
|||
void render(const GLCanvas3D& canvas) const;
|
||||
};
|
||||
|
||||
public:
|
||||
enum ECursorType : unsigned char
|
||||
{
|
||||
Standard,
|
||||
Cross
|
||||
};
|
||||
|
||||
private:
|
||||
wxGLCanvas* m_canvas;
|
||||
wxGLContext* m_context;
|
||||
#if ENABLE_RETINA_GL
|
||||
|
@ -436,6 +444,7 @@ private:
|
|||
bool m_regenerate_volumes;
|
||||
bool m_moving;
|
||||
bool m_tab_down;
|
||||
ECursorType m_cursor_type;
|
||||
|
||||
// Following variable is obsolete and it should be safe to remove it.
|
||||
// I just don't want to do it now before a release (Lukas Matena 24.3.2019)
|
||||
|
@ -587,6 +596,8 @@ public:
|
|||
|
||||
double get_size_proportional_to_max_bed_size(double factor) const;
|
||||
|
||||
void set_cursor(ECursorType type);
|
||||
|
||||
private:
|
||||
bool _is_shown_on_screen() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue