mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Merge remote-tracking branch 'origin/dev_native' into tm_sla_supports_backend
This commit is contained in:
commit
0fcdc70327
22 changed files with 523 additions and 189 deletions
|
@ -16,6 +16,7 @@ class wxKeyEvent;
|
|||
class wxMouseEvent;
|
||||
class wxTimerEvent;
|
||||
class wxPaintEvent;
|
||||
class wxGLCanvas;
|
||||
|
||||
|
||||
namespace Slic3r {
|
||||
|
@ -219,23 +220,6 @@ class GLCanvas3D
|
|||
void render(bool depth_test) const;
|
||||
};
|
||||
|
||||
class CuttingPlane
|
||||
{
|
||||
float m_z;
|
||||
GeometryBuffer m_lines;
|
||||
|
||||
public:
|
||||
CuttingPlane();
|
||||
|
||||
bool set(float z, const ExPolygons& polygons);
|
||||
|
||||
void render(const BoundingBoxf3& bb) const;
|
||||
|
||||
private:
|
||||
void _render_plane(const BoundingBoxf3& bb) const;
|
||||
void _render_contour() const;
|
||||
};
|
||||
|
||||
class Shader
|
||||
{
|
||||
GLShader* m_shader;
|
||||
|
@ -479,6 +463,8 @@ public:
|
|||
Selection();
|
||||
|
||||
void set_volumes(GLVolumePtrs* volumes);
|
||||
|
||||
Model* get_model() const { return m_model; }
|
||||
void set_model(Model* model);
|
||||
|
||||
EMode get_mode() const { return m_mode; }
|
||||
|
@ -583,6 +569,7 @@ private:
|
|||
Rotate,
|
||||
Flatten,
|
||||
SlaSupports,
|
||||
Cut,
|
||||
Num_Types
|
||||
};
|
||||
|
||||
|
@ -645,6 +632,8 @@ private:
|
|||
|
||||
void render_overlay(const GLCanvas3D& canvas) const;
|
||||
|
||||
void create_external_gizmo_widgets(wxWindow *parent);
|
||||
|
||||
private:
|
||||
void _reset();
|
||||
|
||||
|
@ -701,7 +690,6 @@ private:
|
|||
Camera m_camera;
|
||||
Bed m_bed;
|
||||
Axes m_axes;
|
||||
CuttingPlane m_cutting_plane;
|
||||
LayersEditing m_layers_editing;
|
||||
Shader m_shader;
|
||||
Mouse m_mouse;
|
||||
|
@ -738,6 +726,8 @@ private:
|
|||
|
||||
GCodePreviewVolumeIndex m_gcode_preview_volume_index;
|
||||
|
||||
wxWindow *m_external_gizmo_widgets_parent;
|
||||
|
||||
void post_event(wxEvent &&event);
|
||||
void viewport_changed();
|
||||
|
||||
|
@ -779,8 +769,6 @@ public:
|
|||
|
||||
void set_axes_length(float length);
|
||||
|
||||
void set_cutting_plane(float z, const ExPolygons& polygons);
|
||||
|
||||
void set_color_by(const std::string& value);
|
||||
|
||||
float get_camera_zoom() const;
|
||||
|
@ -856,6 +844,8 @@ public:
|
|||
|
||||
void set_tooltip(const std::string& tooltip) const;
|
||||
|
||||
void set_external_gizmo_widgets_parent(wxWindow *parent);
|
||||
|
||||
private:
|
||||
bool _is_shown_on_screen() const;
|
||||
void _force_zoom_to_bed();
|
||||
|
@ -882,7 +872,6 @@ private:
|
|||
void _render_axes(bool depth_test) const;
|
||||
void _render_objects() const;
|
||||
void _render_selection() const;
|
||||
void _render_cutting_plane() const;
|
||||
void _render_warning_texture() const;
|
||||
void _render_legend_texture() const;
|
||||
void _render_layer_editing_overlay() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue