![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Geometry.hpp>
Collaboration diagram for Slic3r::Geometry::Transformation:Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar) |
| Transformation (int) | |
Static Private Member Functions | |
| template<class Archive > | |
| static void | load_and_construct (Archive &ar, cereal::construct< Transformation > &construct) |
Private Attributes | |
| Transform3d | m_matrix { Transform3d::Identity() } |
Friends | |
| class | cereal::access |
|
default |
|
inlineexplicit |
|
inlineexplicitprivate |
|
inline |
References m_matrix.
Referenced by priv::apply_camera_dir(), Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::ModelObject::delete_volume(), Slic3r::GUI::Selection::flattening_rotate(), Slic3r::GUI::Selection::get_bounding_box_in_reference_system(), Slic3r::ModelVolume::get_matrix(), Slic3r::ModelInstance::get_matrix(), get_matrix_no_offset(), get_matrix_no_scaling_factor(), Slic3r::GUI::MeshRaycaster::get_unobscured_idxs(), Slic3r::GUI::GLGizmoHollow::gizmo_event(), Slic3r::GUI::GLGizmoPainterBase::gizmo_event(), Slic3r::GUI::GLGizmoSlaSupports::gizmo_event(), Slic3r::GUI::GLGizmoHollow::is_mesh_point_clipped(), Slic3r::GUI::GLGizmoSlaSupports::is_mesh_point_clipped(), Slic3r::GUI::on_mouse_surface_drag(), Slic3r::GUI::GLGizmoFlatten::on_register_raycasters_for_picking(), Slic3r::GUI::GLGizmoFlatten::on_render(), operator*(), Slic3r::GUI::MeshClipper::recalculate_triangles(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::GLGizmoPainterBase::render_cursor(), Slic3r::GUI::CommonGizmosDataObjects::SupportsClipper::render_cut(), Slic3r::GUI::Selection::render_synchronized_volumes(), Slic3r::GUI::Selection::reset_skew(), Slic3r::GUI::GLGizmoCut3D::rotate_vec3d_around_plane_center(), Slic3r::GUI::Selection::scale_and_translate(), Slic3r::Print::sequential_print_horizontal_clearance_valid(), Slic3r::GUI::MeshClipper::set_transformation(), priv::start_create_volume_on_surface_job(), Slic3r::GUI::Selection::synchronize_unselected_instances(), Slic3r::Geometry::trafos_differ_in_rotation_by_z_and_mirroring_by_xy_only(), Slic3r::GUI::Selection::transform_instance_relative(), Slic3r::GUI::Selection::transform_volume_relative(), Slic3r::sla::transformed_drainhole_points(), Slic3r::GUI::Selection::translate(), Slic3r::GUI::GLGizmoHollow::update_hole_raycasters_for_picking_transform(), Slic3r::GUI::GLGizmoSlaSupports::update_point_raycasters_for_picking_transform(), Slic3r::GUI::GLCanvas3D::update_sequential_clearance(), and Slic3r::GLVolume::world_matrix().
Here is the caller graph for this function:| Transform3d Slic3r::Geometry::Transformation::get_matrix_no_offset | ( | ) | const |
References get_matrix(), and reset_offset().
Referenced by Slic3r::GUI::GLGizmoEmboss::create_volume(), Slic3r::GUI::Selection::flattening_rotate(), Slic3r::GUI::Selection::get_bounding_box_in_reference_system(), Slic3r::ModelVolume::get_matrix_no_offset(), Slic3r::ModelInstance::get_matrix_no_offset(), Slic3r::GUI::GLGizmoPainterBase::gizmo_event(), Slic3r::GUI::ObjectList::load_generic_subobject(), Slic3r::GUI::ObjectList::load_modifier(), Slic3r::GUI::GLGizmoRotate::mouse_position_in_local_plane(), Slic3r::GUI::Selection::paste_volumes_from_clipboard(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::Plater::priv::replace_volume_with_stl(), Slic3r::GUI::Selection::reset_skew(), Slic3r::GUI::Selection::rotate(), Slic3r::GUI::Selection::scale_and_translate(), and Slic3r::GUI::Selection::transform_volume_relative().
Here is the call graph for this function:
Here is the caller graph for this function:| Transform3d Slic3r::Geometry::Transformation::get_matrix_no_scaling_factor | ( | ) | const |
References get_matrix(), and reset_scaling_factor().
Referenced by Slic3r::GUI::Selection::get_bounding_box_in_reference_system().
Here is the call graph for this function:
Here is the caller graph for this function:| Vec3d Slic3r::Geometry::Transformation::get_mirror | ( | ) | const |
References Slic3r::Geometry::extract_scale(), m_matrix, and scale().
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::GLVolume::get_instance_mirror(), Slic3r::GLVolume::get_instance_mirror(), Slic3r::ModelVolume::get_mirror(), Slic3r::ModelInstance::get_mirror(), Slic3r::ModelVolume::get_mirror(), Slic3r::ModelInstance::get_mirror(), Slic3r::GLVolume::get_volume_mirror(), Slic3r::GLVolume::get_volume_mirror(), and Slic3r::GLVolume::is_left_handed().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References get_mirror().
Referenced by get_mirror().
Here is the call graph for this function:
Here is the caller graph for this function:| Transform3d Slic3r::Geometry::Transformation::get_mirror_matrix | ( | ) | const |
References Slic3r::Geometry::extract_scale(), m_matrix, and scale().
Referenced by Slic3r::sla::RotfinderBoilerplate< MAX_ITER >::get_mesh_to_rotate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_matrix, and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Referenced by Slic3r::_3MF_Importer::_load_model_from_file(), Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::Model::convert_multipart_object(), Slic3r::GLVolume::get_instance_offset(), Slic3r::GLVolume::get_instance_offset(), Slic3r::ModelVolume::get_offset(), Slic3r::ModelInstance::get_offset(), Slic3r::ModelVolume::get_offset(), Slic3r::ModelInstance::get_offset(), get_offset_matrix(), Slic3r::GLVolume::get_volume_offset(), Slic3r::GLVolume::get_volume_offset(), Slic3r::GUI::GLGizmoHollow::gizmo_event(), Slic3r::GUI::GLGizmoSlaSupports::gizmo_event(), Slic3r::GUI::Selection::paste_volumes_from_clipboard(), Slic3r::GUI::GLGizmoCut3D::process_selection_rectangle(), Slic3r::GUI::CommonGizmosDataObjects::InstancesHider::render_cut(), Slic3r::GUI::CommonGizmosDataObjects::SupportsClipper::render_cut(), Slic3r::GUI::CommonGizmosDataObjects::ObjectClipper::render_cut(), Slic3r::GUI::Selection::rotate(), Slic3r::GUI::Selection::scale_and_translate(), set_mirror(), set_mirror(), set_rotation(), set_rotation(), set_scaling_factor(), set_scaling_factor(), Slic3r::GUI::Selection::transform_instance_relative(), Slic3r::GUI::Selection::transform_volume_relative(), Slic3r::GUI::Selection::translate(), Slic3r::GUI::GLCanvas3D::update_sequential_clearance(), and Slic3r::GUI::ObjectManipulation::update_settings_value().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References get_offset().
Referenced by get_offset().
Here is the call graph for this function:
Here is the caller graph for this function:| Transform3d Slic3r::Geometry::Transformation::get_offset_matrix | ( | ) | const |
References get_offset(), and Slic3r::Geometry::translation_transform().
Referenced by Slic3r::GUI::Selection::flattening_rotate(), reset_rotation(), reset_scaling_factor(), reset_skew(), and Slic3r::GUI::Selection::reset_skew().
Here is the call graph for this function:
Here is the caller graph for this function:| Vec3d Slic3r::Geometry::Transformation::get_rotation | ( | ) | const |
References Slic3r::Geometry::extract_rotation(), Slic3r::Geometry::extract_rotation_matrix(), and m_matrix.
Referenced by Slic3r::GLVolume::get_instance_rotation(), Slic3r::GLVolume::get_instance_rotation(), Slic3r::ModelVolume::get_rotation(), Slic3r::ModelInstance::get_rotation(), Slic3r::ModelVolume::get_rotation(), Slic3r::ModelInstance::get_rotation(), Slic3r::GLVolume::get_volume_rotation(), and Slic3r::GLVolume::get_volume_rotation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References get_rotation().
Referenced by get_rotation().
Here is the call graph for this function:
Here is the caller graph for this function:| Transform3d Slic3r::Geometry::Transformation::get_rotation_matrix | ( | ) | const |
References Slic3r::Geometry::extract_rotation_matrix(), and m_matrix.
Referenced by Slic3r::GUI::MeshRaycaster::get_unobscured_idxs(), Slic3r::GUI::GLGizmoMove3D::local_transform(), Slic3r::GUI::Selection::rotate(), and Slic3r::GUI::Selection::translate().
Here is the call graph for this function:
Here is the caller graph for this function:| Vec3d Slic3r::Geometry::Transformation::get_scaling_factor | ( | ) | const |
References Slic3r::Geometry::extract_scale(), m_matrix, and scale().
Referenced by Slic3r::TriangleSelector::Cursor::Cursor(), Slic3r::_3MF_Importer::_apply_transform(), Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::GLVolume::get_instance_scaling_factor(), Slic3r::GLVolume::get_instance_scaling_factor(), Slic3r::ModelVolume::get_scaling_factor(), Slic3r::ModelInstance::get_scaling_factor(), Slic3r::ModelVolume::get_scaling_factor(), Slic3r::ModelInstance::get_scaling_factor(), Slic3r::GUI::MeshRaycaster::get_unobscured_idxs(), Slic3r::GLVolume::get_volume_scaling_factor(), Slic3r::GLVolume::get_volume_scaling_factor(), and is_scaling_uniform().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References get_scaling_factor().
Referenced by get_scaling_factor().
Here is the call graph for this function:
Here is the caller graph for this function:| Transform3d Slic3r::Geometry::Transformation::get_scaling_factor_matrix | ( | ) | const |
References Slic3r::Geometry::extract_scale(), m_matrix, and scale().
Referenced by Slic3r::sla::RotfinderBoilerplate< MAX_ITER >::get_mesh_to_rotate(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_sphere(), Slic3r::GUI::Selection::rotate(), Slic3r::GUI::Selection::translate(), Slic3r::GUI::GLGizmoHollow::update_hole_raycasters_for_picking_transform(), and Slic3r::GUI::GLGizmoSlaSupports::update_point_raycasters_for_picking_transform().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::Geometry::Transformation::has_skew | ( | ) | const |
References Slic3r::Geometry::contains_skew(), and m_matrix.
Referenced by Slic3r::GUI::Selection::reset_skew().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::linear(), and m_matrix.
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::ModelVolume::is_left_handed(), Slic3r::ModelInstance::is_left_handed(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_sphere(), Slic3r::GUI::Selection::rotate(), and Slic3r::GUI::GLGizmoFlatten::update_planes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inlinestaticprivate |
| Transformation Slic3r::Geometry::Transformation::operator* | ( | const Transformation & | other | ) | const |
References Transformation(), and get_matrix().
Here is the call graph for this function:| void Slic3r::Geometry::Transformation::reset | ( | ) |
References Eigen::Transform< double, 3, Eigen::Affine, Eigen::DontAlign >::Identity(), and m_matrix.
Here is the call graph for this function:
|
inline |
References set_mirror().
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References set_offset().
Referenced by Slic3r::ModelObject::bake_xy_rotation_into_meshes(), get_matrix_no_offset(), and Slic3r::GUI::Selection::reset_skew().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::Geometry::Transformation::reset_rotation | ( | ) |
References get_offset_matrix(), m_matrix, Slic3r::Geometry::TransformationSVD::mirror_matrix(), Slic3r::Geometry::TransformationSVD::s, and Slic3r::Geometry::TransformationSVD::v.
Referenced by Slic3r::GUI::ObjectManipulation::ObjectManipulation(), and Slic3r::GUI::Selection::synchronize_unselected_instances().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::Geometry::Transformation::reset_scaling_factor | ( | ) |
References get_offset_matrix(), m_matrix, Slic3r::Geometry::TransformationSVD::mirror_matrix(), Slic3r::Geometry::TransformationSVD::u, and Slic3r::Geometry::TransformationSVD::v.
Referenced by Slic3r::GUI::ObjectManipulation::ObjectManipulation(), Slic3r::ModelObject::bake_xy_rotation_into_meshes(), Slic3r::GUI::Selection::get_bounding_box_in_reference_system(), and get_matrix_no_scaling_factor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::Geometry::Transformation::reset_skew | ( | ) |
References get_offset_matrix(), m_matrix, Slic3r::Geometry::TransformationSVD::mirror_matrix(), Slic3r::Geometry::TransformationSVD::s, Slic3r::Geometry::scale_transform(), Slic3r::Geometry::TransformationSVD::u, and Slic3r::Geometry::TransformationSVD::v.
Referenced by Slic3r::GUI::Selection::reset_skew().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
|
inline |
References m_matrix, and Slic3r::transform().
Referenced by Slic3r::GLVolume::set_instance_transformation(), Slic3r::ModelVolume::set_transformation(), Slic3r::GLVolume::set_volume_transformation(), Slic3r::GUI::GLGizmoHollow::update_hole_raycasters_for_picking_transform(), and Slic3r::GUI::GLGizmoSlaSupports::update_point_raycasters_for_picking_transform().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::Geometry::extract_rotation_scale(), get_offset(), m_matrix, Slic3r::offset(), scale(), sign(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Here is the call graph for this function:References Slic3r::Geometry::extract_rotation_scale(), get_offset(), m_matrix, Slic3r::offset(), scale(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Referenced by reset_mirror(), Slic3r::GLVolume::set_instance_mirror(), Slic3r::GLVolume::set_instance_mirror(), Slic3r::ModelVolume::set_mirror(), Slic3r::ModelInstance::set_mirror(), Slic3r::ModelVolume::set_mirror(), Slic3r::ModelInstance::set_mirror(), Slic3r::GLVolume::set_volume_mirror(), and Slic3r::GLVolume::set_volume_mirror().
Here is the call graph for this function:
Here is the caller graph for this function:References m_matrix, Slic3r::offset(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Here is the call graph for this function:References m_matrix, Slic3r::offset(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Referenced by Slic3r::Model::convert_multipart_object(), Slic3r::GUI::Selection::get_bounding_box_in_reference_system(), Slic3r::GUI::GLGizmoHollow::gizmo_event(), Slic3r::GUI::GLGizmoSlaSupports::gizmo_event(), Slic3r::GUI::Plater::increase_instances(), Slic3r::GUI::GLGizmoCut3D::process_selection_rectangle(), Slic3r::GUI::CommonGizmosDataObjects::InstancesHider::render_cut(), Slic3r::GUI::CommonGizmosDataObjects::SupportsClipper::render_cut(), Slic3r::GUI::CommonGizmosDataObjects::ObjectClipper::render_cut(), reset_offset(), Slic3r::Print::sequential_print_horizontal_clearance_valid(), Slic3r::GLVolume::set_instance_offset(), Slic3r::GLVolume::set_instance_offset(), Slic3r::ModelVolume::set_offset(), Slic3r::ModelInstance::set_offset(), Slic3r::ModelVolume::set_offset(), Slic3r::ModelInstance::set_offset(), Slic3r::GLVolume::set_volume_offset(), Slic3r::GLVolume::set_volume_offset(), and Slic3r::GUI::GLCanvas3D::update_sequential_clearance().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::Geometry::angle_to_0_2PI(), Slic3r::Geometry::extract_rotation(), Slic3r::Geometry::extract_rotation_scale(), get_offset(), Slic3r::is_approx(), m_matrix, Slic3r::offset(), PI, Slic3r::Geometry::rotation_transform(), scale(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Here is the call graph for this function:References Slic3r::Geometry::extract_scale(), get_offset(), m_matrix, Slic3r::offset(), Slic3r::Geometry::rotation_transform(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Referenced by Slic3r::GLVolume::set_instance_rotation(), Slic3r::GLVolume::set_instance_rotation(), Slic3r::ModelVolume::set_rotation(), Slic3r::ModelInstance::set_rotation(), Slic3r::ModelVolume::set_rotation(), Slic3r::ModelInstance::set_rotation(), Slic3r::GLVolume::set_volume_rotation(), and Slic3r::GLVolume::set_volume_rotation().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::Geometry::extract_rotation_scale(), get_offset(), m_matrix, Slic3r::offset(), scale(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Here is the call graph for this function:References Slic3r::Geometry::extract_rotation_matrix(), get_offset(), m_matrix, Slic3r::offset(), Slic3r::Geometry::scale_transform(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Referenced by Slic3r::GLVolume::set_instance_scaling_factor(), Slic3r::GLVolume::set_instance_scaling_factor(), Slic3r::ModelVolume::set_scaling_factor(), Slic3r::ModelInstance::set_scaling_factor(), Slic3r::ModelVolume::set_scaling_factor(), Slic3r::ModelInstance::set_scaling_factor(), Slic3r::GLVolume::set_volume_scaling_factor(), and Slic3r::GLVolume::set_volume_scaling_factor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
|
private |
Referenced by get_matrix(), get_mirror(), get_mirror_matrix(), get_offset(), get_rotation(), get_rotation_matrix(), get_scaling_factor(), get_scaling_factor_matrix(), has_skew(), is_left_handed(), reset(), reset_rotation(), reset_scaling_factor(), reset_skew(), serialize(), set_matrix(), set_mirror(), set_mirror(), set_offset(), set_offset(), set_rotation(), set_rotation(), set_scaling_factor(), and set_scaling_factor().