Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2019-10-03 12:38:31 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-10-03 12:38:31 +0300
commit587effbedf754855134c52bb4aa1c6fb447ebb61 (patch)
tree38a702f3150f9b432d1e46570877941f957b8019 /src/slic3r/GUI/Camera.hpp
parenta5543040384541aa0a9ab15cb51d6e3446d36c03 (diff)
ENABLE_3DCONNEXION_DEVICES -> Refactored Mouse3DController to be unaware of current active GLCanvas3D
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r--src/slic3r/GUI/Camera.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp
index 839d0d6cf..bf452833c 100644
--- a/src/slic3r/GUI/Camera.hpp
+++ b/src/slic3r/GUI/Camera.hpp
@@ -63,8 +63,13 @@ public:
void set_theta(float theta, bool apply_limit);
double get_zoom() const { return m_zoom; }
+#if ENABLE_3DCONNEXION_DEVICES
+ void update_zoom(double delta_zoom);
+ void set_zoom(double zoom);
+#else
void set_zoom(double zoom, const BoundingBoxf3& max_box, int canvas_w, int canvas_h);
void set_zoom(double zoom) { m_zoom = zoom; }
+#endif // ENABLE_3DCONNEXION_DEVICES
const BoundingBoxf3& get_scene_box() const { return m_scene_box; }
void set_scene_box(const BoundingBoxf3& box) { m_scene_box = box; }