mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 02:01:12 -06:00
- Extra dialog for autosetting by angle in FDM supports gizmo was removed - Highlighting facets by angle is now controlled by a slider in the main gizmo dialog - User is allowed to paint even when using the slope highlighter - The button to turn highlighted facets to blockers was removed, it made no sense - Highlighted facets are now rendered in light blue
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
#ifndef slic3r_GLGizmoFdmSupports_hpp_
|
|
#define slic3r_GLGizmoFdmSupports_hpp_
|
|
|
|
#include "GLGizmoPainterBase.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
class GLGizmoFdmSupports : public GLGizmoPainterBase
|
|
{
|
|
public:
|
|
GLGizmoFdmSupports(GLCanvas3D& parent, const std::string& icon_filename, unsigned int sprite_id)
|
|
: GLGizmoPainterBase(parent, icon_filename, sprite_id) {}
|
|
|
|
void render_painter_gizmo() const override;
|
|
|
|
protected:
|
|
void on_render_input_window(float x, float y, float bottom_limit) override;
|
|
std::string on_get_name() const override;
|
|
|
|
private:
|
|
bool on_init() override;
|
|
|
|
void update_model_object() const override;
|
|
void update_from_model_object() override;
|
|
|
|
void on_opening() override {}
|
|
void on_shutdown() override;
|
|
PainterGizmoType get_painter_type() const override;
|
|
|
|
void select_facets_by_angle(float threshold, bool block);
|
|
float m_angle_threshold_deg = 0.f;
|
|
|
|
// This map holds all translated description texts, so they can be easily referenced during layout calculations
|
|
// etc. When language changes, GUI is recreated and this class constructed again, so the change takes effect.
|
|
std::map<std::string, wxString> m_desc;
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
} // namespace Slic3r
|
|
|
|
|
|
#endif // slic3r_GLGizmoFdmSupports_hpp_
|