#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/BedShapeDialog.hpp>
◆ PageType
| Enumerator |
|---|
| Rectangle | |
| Circle | |
| Custom | |
36 {
40 };
@ Custom
Definition CustomGCode.hpp:23
@ Rectangle
Definition BuildVolume.hpp:23
◆ Parameter
| Enumerator |
|---|
| RectSize | |
| RectOrigin | |
| Diameter | |
42 {
43 RectSize,
44 RectOrigin,
46 };
@ Diameter
Definition SketchEngine.hpp:105
◆ BedShape()
| Slic3r::GUI::BedShape::BedShape |
( |
const Pointfs & | points | ) |
|
52{
54}
BuildVolume m_build_volume
Definition BedShapeDialog.hpp:61
References m_build_volume.
◆ append_option_line()
67{
68 ConfigOptionDef def;
70 switch (param) {
73 def.set_default_value(
new ConfigOptionPoints{
Vec2d(200, 200) });
74 def.min = 0;
75 def.max = 214700;
76 def.width = 10;
77 def.sidetext =
L(
"mm");
79 def.tooltip =
L(
"Size in X and Y of the rectangular plate.");
80 key = "rect_size";
81 break;
84 def.set_default_value(
new ConfigOptionPoints{
Vec2d(0, 0) });
85 def.min = -107350;
86 def.max = 107350;
87 def.width = 10;
88 def.sidetext =
L(
"mm");
90 def.tooltip =
L(
"Distance of the 0,0 G-code coordinate from the front left corner of the rectangle.");
91 key = "rect_origin";
92 break;
96 def.width = 10;
97 def.sidetext =
L(
"mm");
99 def.tooltip =
L(
"Diameter of the print bed. It is assumed that origin (0,0) is located in the center.");
100 key = "diameter";
101 break;
102 default:
103 assert(false);
104 }
105
106 optgroup->append_single_option_line({ def, std::move(key) });
107}
#define L(s)
Definition ExtrusionEntity.cpp:25
static std::string get_option_label(BedShape::Parameter param)
Definition BedShapeDialog.cpp:56
zaa_minimize_perimeter_height ConfigOptionFloat
Definition PrintConfig.hpp:1954
std::string t_config_option_key
Definition Config.hpp:96
@ coPoints
Definition Config.hpp:206
@ coFloat
Definition Config.hpp:184
Eigen::Matrix< double, 2, 1, Eigen::DontAlign > Vec2d
Definition Point.hpp:67
@ RectOrigin
Definition BedShapeDialog.hpp:44
@ RectSize
Definition BedShapeDialog.hpp:43
@ Diameter
Definition BedShapeDialog.hpp:45
References Slic3r::coFloat, Slic3r::ConfigOptionFloat, Slic3r::coPoints, Diameter, Slic3r::GUI::get_option_label(), L, Slic3r::ConfigOptionDef::label, Slic3r::ConfigOptionDef::max, Slic3r::ConfigOptionDef::min, RectOrigin, RectSize, Slic3r::ConfigOptionDef::set_default_value(), Slic3r::ConfigOptionDef::sidetext, Slic3r::ConfigOptionDef::tooltip, Slic3r::ConfigOptionDef::type, and Slic3r::ConfigOptionDef::width.
Referenced by Slic3r::GUI::BedShapePanel::build_panel().
◆ apply_optgroup_values()
152{
156 break;
157 default:
158
159 optgroup->set_value(
"rect_size" ,
new ConfigOptionPoints{
to_2d(
m_build_volume.bounding_volume().size()) });
160 optgroup->set_value(
"rect_origin" ,
new ConfigOptionPoints{ -
to_2d(
m_build_volume.bounding_volume().min) });
161 }
162}
wxString double_to_string(double const value, const int max_precision)
Definition Field.cpp:99
Eigen::Matrix< typename Derived::Scalar, 2, 1, Eigen::DontAlign > to_2d(const Eigen::MatrixBase< Derived > &ptN)
Definition Point.hpp:147
@ Circle
Definition BuildVolume.hpp:25
constexpr Eigen::Matrix< Tout, 2, EigenArgs... > unscaled(const Slic3r::Point &v) noexcept
Definition Arrange.cpp:81
References Slic3r::Circle, Slic3r::GUI::double_to_string(), m_build_volume, Slic3r::to_2d(), and Slic3r::unscaled().
Referenced by Slic3r::GUI::BedShapePanel::set_shape().
◆ get_full_name_with_params()
| wxString Slic3r::GUI::BedShape::get_full_name_with_params |
( |
| ) |
|
136{
141 break;
142 default:
143
146 break;
147 }
148 return out;
149}
#define _(s)
Definition 3mf.cpp:306
#define _L(s)
Definition OBJ.cpp:34
PageType get_page_type()
Definition BedShapeDialog.cpp:121
static wxString get_name(PageType type)
Definition BedShapeDialog.cpp:109
References _, _L, Slic3r::Circle, Diameter, Slic3r::GUI::double_to_string(), get_name(), Slic3r::GUI::get_option_label(), get_page_type(), m_build_volume, RectOrigin, RectSize, Slic3r::ConfigOptionPoint::serialize(), Slic3r::to_2d(), and Slic3r::unscaled().
◆ get_name()
| wxString Slic3r::GUI::BedShape::get_name |
( |
PageType | type | ) |
|
|
static |
◆ get_page_type()
◆ is_custom()
| bool Slic3r::GUI::BedShape::is_custom |
( |
| ) |
|
|
inline |
◆ m_build_volume
The documentation for this struct was generated from the following files: