1 #ifndef slic3r_GLGizmoSeam_hpp_ 2 #define slic3r_GLGizmoSeam_hpp_ 3 4 #include "GLGizmoPainterBase.hpp" 5 6 namespace Slic3r { 7 8 namespace GUI { 9 10 class GLGizmoSeam : public GLGizmoPainterBase 11 { 12 public: GLGizmoSeam(GLCanvas3D & parent,const std::string & icon_filename,unsigned int sprite_id)13 GLGizmoSeam(GLCanvas3D& parent, const std::string& icon_filename, unsigned int sprite_id) 14 : GLGizmoPainterBase(parent, icon_filename, sprite_id) {} 15 16 void render_painter_gizmo() const override; 17 18 protected: 19 void on_render_input_window(float x, float y, float bottom_limit) override; 20 std::string on_get_name() const override; 21 PainterGizmoType get_painter_type() const override; 22 23 private: 24 bool on_init() override; 25 26 void update_model_object() const override; 27 void update_from_model_object() override; 28 on_opening()29 void on_opening() override {} on_shutdown()30 void on_shutdown() override {} 31 32 // This map holds all translated description texts, so they can be easily referenced during layout calculations 33 // etc. When language changes, GUI is recreated and this class constructed again, so the change takes effect. 34 std::map<std::string, wxString> m_desc; 35 }; 36 37 38 39 } // namespace GUI 40 } // namespace Slic3r 41 42 43 #endif // slic3r_GLGizmoSeam_hpp_ 44