![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Model.hpp>
Inheritance diagram for Slic3r::ModelInstance:
Collaboration diagram for Slic3r::ModelInstance:Public Types | |
| using | Timestamp = uint64_t |
Public Attributes | |
| ModelInstanceEPrintVolumeState | print_volume_state |
| bool | printable { true } |
Protected Member Functions | |
| ModelInstance (const ModelInstance &rhs)=default | |
| void | set_model_object (ModelObject *model_object) |
| void | set_new_unique_id () |
| void | set_invalid_id () |
| void | copy_id (const ObjectBase &rhs) |
| virtual void | assign_new_unique_ids_recursive () |
Private Member Functions | |
| ModelInstance (ModelObject *object) | |
| ModelInstance (ModelObject *object, const ModelInstance &other) | |
| ModelInstance (ModelInstance &&rhs)=delete | |
| ModelInstance & | operator= (const ModelInstance &rhs)=delete |
| ModelInstance & | operator= (ModelInstance &&rhs)=delete |
| ModelInstance () | |
| template<class Archive > | |
| void | serialize (Archive &ar) |
Static Private Member Functions | |
| static ObjectID | generate_new_id () |
| template<class Archive > | |
| static void | load_and_construct (Archive &ar, cereal::construct< ObjectBase > &construct) |
Private Attributes | |
| Geometry::Transformation | m_transformation |
| ModelObject * | object |
| ObjectID | m_id |
Static Private Attributes | |
| static size_t | s_last_id = 0 |
Friends | |
| class | |
| class | SLAPrint |
| class | Model |
| class | ModelObject |
| class | cereal::access |
| class | UndoRedo::StackImpl |
|
inherited |
|
explicitprotecteddefault |
|
inlineexplicitprivate |
|
inlineexplicitprivate |
References Slic3r::ObjectBase::id().
Here is the call graph for this function:
|
explicitprivatedelete |
|
inlineprivate |
References Slic3r::to_3d(), and Slic3r::unscaled().
Referenced by Slic3r::GUI::FillBedJob::prepare().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotectedvirtualinherited |
Reimplemented in Slic3r::Model, Slic3r::ModelObject, and Slic3r::ModelVolume.
References Slic3r::ObjectBase::set_new_unique_id().
Here is the call graph for this function:
|
inlineprotectedinherited |
References Slic3r::ObjectBase::id(), and Slic3r::ObjectBase::m_id.
Referenced by Slic3r::CutObjectBase::copy().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticprivateinherited |
References Slic3r::ObjectBase::s_last_id.
Referenced by Slic3r::ObjectBase::set_new_unique_id().
Here is the caller graph for this function:| arrangement::ArrangePolygon Slic3r::ModelInstance::get_arrange_polygon | ( | ) | const |
References Slic3r::ExPolygon::contour, Slic3r::arrangement::ArrangePolygon::poly, Slic3r::arrangement::ArrangePolygon::rotation, and Slic3r::arrangement::ArrangePolygon::translation.
|
inline |
References Slic3r::Geometry::Transformation::get_matrix(), and m_transformation.
Referenced by Slic3r::GUI::RaycastManager::actualize(), Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::GUI::on_mouse_surface_drag(), Slic3r::SlicingAdaptive::prepare(), Slic3r::Print::sequential_print_horizontal_clearance_valid(), Slic3r::SLAPrint::sla_trafo(), and Slic3r::GUI::update_arrangepoly_slaprint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_matrix_no_offset(), and m_transformation.
Referenced by Slic3r::ModelObject::get_instance_max_z(), Slic3r::ModelObject::get_instance_min_z(), and Slic3r::GUI::GLGizmoFdmSupports::select_facets_by_angle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_mirror(), and m_transformation.
Here is the call graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_mirror(), and m_transformation.
Here is the call graph for this function:
|
inline |
References object.
Referenced by Slic3r::GUI::RaycastManager::actualize(), and Slic3r::GUI::get_arrange_poly().
Here is the caller graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_offset(), and m_transformation.
Referenced by Slic3r::GUI::GLGizmoCut3D::check_and_update_connectors_state(), Slic3r::duplicate(), Slic3r::ModelObject::get_instance_max_z(), Slic3r::ModelObject::get_instance_min_z(), Slic3r::GUI::Plater::increase_instances(), Slic3r::GUI::GLGizmoCut3D::render_connectors(), Slic3r::Print::sequential_print_horizontal_clearance_valid(), Slic3r::SLAPrint::sla_trafo(), Slic3r::ModelObject::translate_instance(), and Slic3r::GUI::GLGizmoCut3D::unproject_on_cut_plane().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_offset(), and m_transformation.
Here is the call graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_rotation(), and m_transformation.
Here is the call graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_rotation(), and m_transformation.
Here is the call graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_scaling_factor(), and m_transformation.
Referenced by Slic3r::GUI::Plater::priv::load_model_objects(), and Slic3r::PrintBase::update_object_placeholders().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::Geometry::Transformation::get_scaling_factor(), and m_transformation.
Here is the call graph for this function:
|
inline |
References m_transformation.
Referenced by Slic3r::_3MF_Importer::_load_model_from_file(), Slic3r::sla::RotfinderBoilerplate< MAX_ITER >::get_mesh_to_rotate(), Slic3r::GUI::GLGizmoPainterBase::gizmo_event(), Slic3r::GUI::Plater::increase_instances(), Slic3r::GUI::GLGizmoHollow::is_mesh_point_clipped(), Slic3r::GUI::GLGizmoSlaSupports::is_mesh_point_clipped(), Slic3r::GLVolumeCollection::load_object_volume(), Slic3r::GUI::Selection::paste_volumes_from_clipboard(), Slic3r::GUI::FillBedJob::prepare(), Slic3r::GUI::GLGizmoPainterBase::render_cursor(), and Slic3r::Print::sequential_print_horizontal_clearance_valid().
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::ObjectBase::m_id.
Referenced by Slic3r::Model::Model(), ModelInstance(), Slic3r::ModelMaterial::ModelMaterial(), Slic3r::ModelObject::ModelObject(), Slic3r::ModelObject::ModelObject(), Slic3r::ModelObject::ModelObject(), Slic3r::ModelObject::ModelObject(), Slic3r::ModelObject::ModelObject(), Slic3r::ModelVolume::ModelVolume(), Slic3r::ModelVolume::ModelVolume(), Slic3r::ModelVolume::ModelVolume(), Slic3r::_3MF_Importer::_load_model_from_file(), Slic3r::GUI::Plater::priv::actualize_slicing_warnings(), Slic3r::ModelObjectStatusDB::add(), Slic3r::ModelObjectStatusDB::add_if_new(), Slic3r::Print::apply(), Slic3r::SLAPrint::apply(), Slic3r::GUI::GLGizmoFdmSupports::apply_data_from_backend(), Slic3r::ModelVolume::check(), Slic3r::check_model_ids_equal(), Slic3r::ModelObject::convert_units(), Slic3r::ObjectBase::copy_id(), Slic3r::PrintObjectStatusDB::count(), anonymous_namespace{RaycastManager.cpp}::create_key(), priv::create_volume(), Slic3r::GUI::Emboss::create_volume_sources(), Slic3r::GUI::GLGizmoHollow::data_changed(), Slic3r::GUI::GLGizmoPainterBase::data_changed(), Slic3r::GUI::GLGizmoSlaSupports::data_changed(), Slic3r::Model::delete_object(), Slic3r::GUI::Plater::export_stl_obj(), Slic3r::ModelObjectStatusDB::get(), Slic3r::GUI::get_arrange_poly(), Slic3r::GUI::GLGizmoSlaSupports::get_data_from_backend(), Slic3r::PrintObjectStatusDB::get_range(), Slic3r::GUI::GLGizmoFdmSupports::has_backend_supports(), Slic3r::GUI::GLGizmoSlaSupports::has_backend_supports(), Slic3r::CutObjectBase::has_same_id(), Slic3r::UndoRedo::StackImpl::immutable_object_id_impl(), Slic3r::GUI::GLGizmoSimplify::init_model(), Slic3r::inner_brim_area(), Slic3r::ModelObject::is_cut(), Slic3r::CutObjectBase::is_equal(), Slic3r::ObjectBase::load_and_construct(), Slic3r::UndoRedo::StackImpl::load_snapshot(), Slic3r::GUI::ObjectList::merge(), Slic3r::model_property_changed(), Slic3r::model_volume_list_changed(), Slic3r::model_volume_list_copy_configs(), Slic3r::ModelConfigObject::object_id_and_timestamp_match(), Slic3r::ObjectWithTimestamp::object_id_and_timestamp_match(), Slic3r::GUI::GLGizmoEmboss::on_mouse_change_selection(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::on_update(), Slic3r::CutObjectBase::operator<(), Slic3r::Model::operator=(), Slic3r::ModelObject::operator=(), Slic3r::ModelObject::operator=(), Slic3r::CutObjectBase::operator==(), Slic3r::GUI::GLGizmoCut3D::perform_cut(), Slic3r::GUI::GLGizmoEmboss::process(), Slic3r::GUI::processed_objects_idxs(), Slic3r::GUI::GLCanvas3D::reload_scene(), Slic3r::GUI::GLCanvas3D::LayersEditing::select_object(), Slic3r::ModelMaterial::serialize(), Slic3r::SLAPrintObject::SliceRecord::set_model_slice_idx(), Slic3r::SLAPrintObject::SliceRecord::set_support_slice_idx(), Slic3r::slices_to_regions(), Slic3r::ModelObject::split(), Slic3r::UndoRedo::StackImpl::take_snapshot(), Slic3r::top_level_outer_brim_area(), Slic3r::GUI::update_object_cut_id(), and anonymous_namespace{EmbossJob.cpp}::update_volume_name().
|
inline |
References Slic3r::Geometry::Transformation::is_left_handed(), and m_transformation.
Referenced by Slic3r::SlicingAdaptive::prepare(), and Slic3r::SLAPrint::sla_trafo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::ModelInstancePVS_Inside, print_volume_state, and printable.
|
inlinestaticprivateinherited |
|
privatedelete |
|
privatedelete |
|
inlineprivate |
References m_transformation, print_volume_state, and printable.
|
inlineprotectedinherited |
References Slic3r::ObjectBase::m_id.
Referenced by Slic3r::CutObjectBase::invalidate().
Here is the caller graph for this function:References m_transformation, and Slic3r::Geometry::Transformation::set_mirror().
Here is the call graph for this function:References m_transformation, and Slic3r::Geometry::Transformation::set_mirror().
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes(), and Slic3r::AMFParserContext::endDocument().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
|
inlineprotectedinherited |
References Slic3r::ObjectBase::generate_new_id(), and Slic3r::ObjectBase::m_id.
Referenced by Slic3r::ModelVolume::ModelVolume(), Slic3r::Model::assign_new_unique_ids_recursive(), Slic3r::ObjectBase::assign_new_unique_ids_recursive(), Slic3r::ModelObject::assign_new_unique_ids_recursive(), Slic3r::CutObjectBase::init(), Slic3r::ModelMaterial::set_new_unique_id(), Slic3r::ModelObject::set_new_unique_id(), and Slic3r::ModelVolume::set_new_unique_id().
Here is the call graph for this function:
Here is the caller graph for this function:References m_transformation, Slic3r::offset(), and Slic3r::Geometry::Transformation::set_offset().
Here is the call graph for this function:References m_transformation, Slic3r::offset(), and Slic3r::Geometry::Transformation::set_offset().
Referenced by Slic3r::_3MF_Importer::_load_model_from_file(), Slic3r::duplicate(), Slic3r::Model::duplicate_objects_grid(), Slic3r::AMFParserContext::endDocument(), Slic3r::GUI::Plater::priv::load_files(), Slic3r::GUI::Plater::priv::load_model_objects(), and Slic3r::ModelObject::translate_instance().
Here is the call graph for this function:
Here is the caller graph for this function:References m_transformation, and Slic3r::Geometry::Transformation::set_rotation().
Here is the call graph for this function:References m_transformation, and Slic3r::Geometry::Transformation::set_rotation().
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes(), and Slic3r::AMFParserContext::endDocument().
Here is the call graph for this function:
Here is the caller graph for this function:References m_transformation, and Slic3r::Geometry::Transformation::set_scaling_factor().
Here is the call graph for this function:References m_transformation, and Slic3r::Geometry::Transformation::set_scaling_factor().
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::AMFParserContext::endDocument(), and Slic3r::GUI::Plater::priv::load_model_objects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_transformation.
Referenced by Slic3r::_3MF_Importer::_apply_transform(), and Slic3r::ModelObject::add_instance().
Here is the caller graph for this function:
|
inlinevirtualinherited |
Reimplemented in Slic3r::ModelConfigObject, and Slic3r::ObjectWithTimestamp.
Referenced by Slic3r::GUI::Plater::priv::undo_redo_to().
Here is the caller graph for this function:| BoundingBoxf3 Slic3r::ModelInstance::transform_bounding_box | ( | const BoundingBoxf3 & | bbox, |
| bool | dont_translate = false |
||
| ) | const |
References Slic3r::BoundingBoxf3::transformed().
Here is the call graph for this function:| void Slic3r::ModelInstance::transform_mesh | ( | TriangleMesh * | mesh, |
| bool | dont_translate = false |
||
| ) | const |
References Slic3r::MultiPoint::rotate(), Slic3r::MultiPoint::scale(), Slic3r::X, Slic3r::Y, and Slic3r::Z.
Here is the call graph for this function:| Vec3d Slic3r::ModelInstance::transform_vector | ( | const Vec3d & | v, |
| bool | dont_translate = false |
||
| ) | const |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
privateinherited |
|
private |
Referenced by get_matrix(), get_matrix_no_offset(), get_mirror(), get_mirror(), get_offset(), get_offset(), get_rotation(), get_rotation(), get_scaling_factor(), get_scaling_factor(), get_transformation(), is_left_handed(), serialize(), set_mirror(), set_mirror(), set_offset(), set_offset(), set_rotation(), set_rotation(), set_scaling_factor(), set_scaling_factor(), and set_transformation().
|
private |
Referenced by get_object().
| ModelInstanceEPrintVolumeState Slic3r::ModelInstance::print_volume_state |
Referenced by is_printable(), and serialize().
| bool Slic3r::ModelInstance::printable { true } |
|
staticprivateinherited |
Referenced by Slic3r::ObjectBase::generate_new_id().