#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Jobs/OrientJob.hpp>
Public Types | |
| enum | JobPrepareState { PREPARE_STATE_DEFAULT = 0 , PREPARE_STATE_MENU = 1 } |
Public Member Functions | |
| void | prepare () |
| void | process (Ctl &ctl) override |
| OrientJob () | |
| void | finalize (bool canceled, std::exception_ptr &e) override |
Static Public Member Functions | |
| static orientation::OrientMesh | get_orient_mesh (ModelInstance *instance) |
Private Types | |
| using | OrientMesh = orientation::OrientMesh |
| using | OrientMeshs = orientation::OrientMeshs |
Private Member Functions | |
| void | clear_input () |
| void | prepare_selection (std::vector< bool > obj_sel, bool only_one_plate) |
| void | prepare_selected () |
| void | prepare_partplate () |
Private Attributes | |
| OrientMeshs | m_selected |
| OrientMeshs | m_unselected |
| OrientMeshs | m_unprintable |
| Plater * | m_plater |
|
private |
|
private |
|
inherited |
| Enumerator | |
|---|---|
| PREPARE_STATE_DEFAULT | |
| PREPARE_STATE_MENU | |
| Slic3r::GUI::OrientJob::OrientJob | ( | ) |
References m_plater, and Slic3r::GUI::plater().
|
private |
References count, m_plater, m_selected, m_unprintable, m_unselected, and Slic3r::Model::objects.
Referenced by prepare_partplate(), and prepare_selected().
|
overridevirtual |
Reimplemented from Slic3r::GUI::Job.
References Slic3r::LifecycleEventContext::code, Slic3r::fire_lifecycle_event(), m_plater, m_selected, Slic3r::LifecycleEventContext::msg, Slic3r::ObjectTransformed, and Slic3r::Ok.
|
static |
References Slic3r::orientation::OrientMesh::cooling_direction, Slic3r::ModelObject::ensure_on_bed(), Slic3r::fdRight, Slic3r::fdUndefine, Slic3r::ModelInstance::get_object(), Slic3r::ConfigOptionResolver::has(), Slic3r::orientation::OrientMesh::has_cooling_fan, Slic3r::ModelObject::invalidate_bounding_box(), Slic3r::orientation::OrientMesh::mesh, Slic3r::orientation::OrientMesh::name, Slic3r::DynamicConfig::opt_bool(), Slic3r::DynamicConfig::opt_int(), Slic3r::ConfigBase::option(), Slic3r::orientation::OrientMesh::overhang_angle, Slic3r::ModelInstance::rotate(), and Slic3r::orientation::OrientMesh::setter.
Referenced by prepare_selection().
| void Slic3r::GUI::OrientJob::prepare | ( | ) |
References m_plater, prepare_partplate(), prepare_selected(), Slic3r::GUI::Job::PREPARE_STATE_DEFAULT, and Slic3r::GUI::Job::PREPARE_STATE_MENU.
Referenced by process().
|
private |
References _L, Slic3r::GUI::BBLPlateInfo, clear_input(), Slic3r::GUI::PartPlate::contain_instance(), Slic3r::GUI::PartPlate::empty(), Slic3r::GUI::PartPlateList::get_curr_plate(), Slic3r::ModelObject::instances, Slic3r::GUI::into_u8(), Slic3r::GUI::PartPlate::is_locked(), m_plater, Slic3r::Model::objects, prepare_selection(), and Slic3r::GUI::NotificationManager::WarningNotificationLevel.
Referenced by prepare().
|
private |
References clear_input(), m_plater, Slic3r::Model::objects, and prepare_selection().
Referenced by prepare().
|
private |
References _L, Slic3r::GUI::BBLPlateInfo, Slic3r::GUI::PartPlateList::find_instance(), get_orient_mesh(), Slic3r::GUI::PartPlateList::get_plate_count(), Slic3r::ModelObject::instances, Slic3r::GUI::into_u8(), Slic3r::GUI::PartPlateList::is_locked(), m_plater, m_selected, m_unprintable, m_unselected, Slic3r::Model::objects, Slic3r::ModelObject::printable, and Slic3r::GUI::NotificationManager::WarningNotificationLevel.
Referenced by prepare_partplate(), and prepare_selected().
|
overridevirtual |
Implements Slic3r::GUI::Job.
References _u8L, Slic3r::GUI::Job::Ctl::call_on_main_thread(), count, Slic3r::GUI::format(), m_plater, m_selected, m_unprintable, m_unselected, Slic3r::GUI::GLCanvas3D::OrientSettings::min_area, Slic3r::orientation::OrientParams::min_volume, Slic3r::orientation::orient(), prepare(), Slic3r::orientation::OrientParams::progressind, Slic3r::GUI::setMinimalSupportAreaPrams(), Slic3r::orientation::OrientParams::stopcondition, Slic3r::GUI::Job::Ctl::update_status(), and Slic3r::GUI::Job::Ctl::was_canceled().
|
private |
Referenced by OrientJob(), clear_input(), finalize(), prepare(), prepare_partplate(), prepare_selected(), prepare_selection(), and process().
|
private |
Referenced by clear_input(), finalize(), prepare_selection(), and process().
|
private |
Referenced by clear_input(), prepare_selection(), and process().
|
private |
Referenced by clear_input(), prepare_selection(), and process().