1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-08-01 11:25:50 +00:00

1st installment of gizmo move 3D

This commit is contained in:
Enrico Turri
2018-09-11 09:00:28 +02:00
parent 781df150a1
commit 4479c5444a
9 changed files with 275 additions and 13 deletions
+5 -1
View File
@@ -336,6 +336,7 @@ public:
enum EType : unsigned char
{
Undefined,
Move,
Scale,
Rotate,
Flatten,
@@ -347,7 +348,6 @@ public:
typedef std::map<EType, GLGizmoBase*> GizmosMap;
GizmosMap m_gizmos;
EType m_current;
bool m_dragging;
public:
Gizmos();
@@ -376,6 +376,9 @@ public:
void start_dragging(const BoundingBoxf3& box);
void stop_dragging();
Vec3d get_position() const;
void set_position(const Vec3d& position);
float get_scale() const;
void set_scale(float scale);
@@ -558,6 +561,7 @@ public:
void set_drag_by(const std::string& value);
const std::string& get_select_by() const;
const std::string& get_drag_by() const;
float get_camera_zoom() const;