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-31 18:40:38 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-10-31 18:40:38 +0300
commit636e446da169940956a27e1d2fa0f240c8929adb (patch)
tree75b52019ce98965341996a77b65f456da8bd2d2a /src/slic3r/GUI/GLCanvas3D.hpp
parent8f180a0cc1c5d53f80e6995d773459e889bda4cd (diff)
ENABLE_THUMBNAIL_GENERATOR -> Changes to zoom factor and centering algorithm when rendering thumbnails
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.hpp')
-rw-r--r--src/slic3r/GUI/GLCanvas3D.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.hpp b/src/slic3r/GUI/GLCanvas3D.hpp
index fce4661a4..850e851fa 100644
--- a/src/slic3r/GUI/GLCanvas3D.hpp
+++ b/src/slic3r/GUI/GLCanvas3D.hpp
@@ -107,6 +107,10 @@ wxDECLARE_EVENT(EVT_GLCANVAS_REDO, SimpleEvent);
class GLCanvas3D
{
+#if ENABLE_THUMBNAIL_GENERATOR
+ static const double DefaultCameraZoomToBoxMarginFactor;
+#endif // ENABLE_THUMBNAIL_GENERATOR
+
public:
struct GCodePreviewVolumeIndex
{
@@ -646,7 +650,11 @@ private:
BoundingBoxf3 _max_bounding_box(bool include_gizmos, bool include_bed_model) const;
+#if ENABLE_THUMBNAIL_GENERATOR
+ void _zoom_to_box(const BoundingBoxf3& box, double margin_factor = DefaultCameraZoomToBoxMarginFactor);
+#else
void _zoom_to_box(const BoundingBoxf3& box);
+#endif // ENABLE_THUMBNAIL_GENERATOR
void _refresh_if_shown_on_screen();