mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Cut Gizmo -> added movements using arrow keys:
Up arrow = increase Z by 1mm Down arrow = decrease Z by 1mm
This commit is contained in:
parent
c09091c407
commit
8453c88482
3 changed files with 22 additions and 2 deletions
|
@ -25,6 +25,9 @@ class GLGizmoCut : public GLGizmoBase
|
|||
public:
|
||||
GLGizmoCut(GLCanvas3D& parent, const std::string& icon_filename, unsigned int sprite_id);
|
||||
|
||||
double get_cut_z() const { return m_cut_z; }
|
||||
void set_cut_z(double cut_z) const;
|
||||
|
||||
protected:
|
||||
virtual bool on_init();
|
||||
virtual void on_load(cereal::BinaryInputArchive& ar) { ar(m_cut_z, m_keep_upper, m_keep_lower, m_rotate_lower); }
|
||||
|
@ -40,7 +43,6 @@ protected:
|
|||
|
||||
private:
|
||||
void update_max_z(const Selection& selection) const;
|
||||
void set_cut_z(double cut_z) const;
|
||||
void perform_cut(const Selection& selection);
|
||||
double calc_projection(const Linef3& mouse_ray) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue