#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Jobs/RotoptimizeJob.hpp>
Classes | |
| struct | FindMethod |
| struct | ObjRot |
Public Types | |
| enum | JobPrepareState { PREPARE_STATE_DEFAULT = 0 , PREPARE_STATE_MENU = 1 } |
Public Member Functions | |
| void | prepare () |
| void | process (Ctl &ctl) override |
| RotoptimizeJob () | |
| void | finalize (bool canceled, std::exception_ptr &) override |
Static Public Member Functions | |
| static constexpr size_t | get_methods_count () |
| static std::string | get_method_name (size_t i) |
| static std::string | get_method_description (size_t i) |
Private Types | |
| using | FindFn |
Private Attributes | |
| size_t | m_method_id = 0 |
| float | m_accuracy = 0.75 |
| DynamicPrintConfig | m_default_print_cfg |
| std::vector< ObjRot > | m_selected_object_ids |
| Plater * | m_plater |
Static Private Attributes | |
| static const FindMethod | Methods [] |
| struct Slic3r::GUI::RotoptimizeJob::FindMethod |
| Class Members | ||
|---|---|---|
| string | descr | |
| FindFn | findfn | |
| string | name | |
|
private |
|
inherited |
| Enumerator | |
|---|---|
| PREPARE_STATE_DEFAULT | |
| PREPARE_STATE_MENU | |
| Slic3r::GUI::RotoptimizeJob::RotoptimizeJob | ( | ) |
References m_plater, Slic3r::GUI::plater(), and prepare().
|
overridevirtual |
Reimplemented from Slic3r::GUI::Job.
References Slic3r::MinAreaBoundigBox::angle_to_X(), Slic3r::ModelObject::convex_hull_2d(), Slic3r::ModelObject::ensure_on_bed(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::ModelInstance::get_rotation(), Slic3r::ModelInstance::get_transformation(), Slic3r::MinAreaBoundigBox::height(), Slic3r::ModelObject::instances, m_plater, m_selected_object_ids, Slic3r::MinAreaBoundigBox::pcConvex, PI, Slic3r::ModelInstance::set_rotation(), Slic3r::MinAreaBoundigBox::width(), and Slic3r::Z.
|
inlinestatic |
References _utf8, and Methods.
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow().
|
inlinestatic |
References _utf8, and Methods.
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow().
|
inlinestaticconstexpr |
References Methods.
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow(), Slic3r::GUI::GLGizmoRotate3D::load_rotoptimize_state(), and prepare().
| void Slic3r::GUI::RotoptimizeJob::prepare | ( | ) |
References get_methods_count(), m_accuracy, m_default_print_cfg, m_method_id, m_plater, and m_selected_object_ids.
Referenced by RotoptimizeJob().
|
overridevirtual |
Implements Slic3r::GUI::Job.
References _u8L, Slic3r::sla::RotOptimizeParams::accuracy(), m_accuracy, m_default_print_cfg, m_method_id, m_plater, m_selected_object_ids, Methods, Slic3r::sla::RotOptimizeParams::print_config(), Slic3r::sla::RotOptimizeParams::statucb(), Slic3r::GUI::Job::Ctl::update_status(), and Slic3r::GUI::Job::Ctl::was_canceled().
|
private |
|
private |
|
private |
Referenced by RotoptimizeJob(), finalize(), prepare(), and process().
|
private |
Referenced by finalize(), prepare(), and process().
|
inlinestaticprivate |
Referenced by get_method_description(), get_method_name(), get_methods_count(), and process().