![]() |
Prusa Slicer 2.6.0
|
#include <src/slic3r/GUI/Camera.hpp>
Collaboration diagram for Slic3r::GUI::Camera:Public Types | |
| enum class | EType : unsigned char { Unknown , Ortho , Perspective , Num_types } |
Public Attributes | |
| bool | requires_zoom_to_bed { false } |
Static Public Attributes | |
| static const double | DefaultDistance = 1000.0 |
| static const double | DefaultZoomToBoxMarginFactor = 1.025 |
| static const double | DefaultZoomToVolumesMarginFactor = 1.025 |
| static double | FrustrumMinZRange = 50.0 |
| static double | FrustrumMinNearZ = 100.0 |
| static double | FrustrumZMargin = 10.0 |
| static double | MaxFovDeg = 60.0 |
Private Member Functions | |
| std::pair< double, double > | calc_tight_frustrum_zs_around (const BoundingBoxf3 &box) |
| double | calc_zoom_to_bounding_box_factor (const BoundingBoxf3 &box, double margin_factor=DefaultZoomToBoxMarginFactor) const |
| double | calc_zoom_to_volumes_factor (const GLVolumePtrs &volumes, Vec3d ¢er, double margin_factor=DefaultZoomToVolumesMarginFactor) const |
| void | set_distance (double distance) |
| void | set_default_orientation () |
| Vec3d | validate_target (const Vec3d &target) const |
| void | update_zenit () |
Private Attributes | |
| EType | m_type { EType::Perspective } |
| bool | m_update_config_on_type_change_enabled { false } |
| Vec3d | m_target { Vec3d::Zero() } |
| float | m_zenit { 45.0f } |
| double | m_zoom { 1.0 } |
| double | m_distance { DefaultDistance } |
| double | m_gui_scale { 1.0 } |
| std::array< int, 4 > | m_viewport |
| Transform3d | m_view_matrix { Transform3d::Identity() } |
| Eigen::Quaterniond | m_view_rotation { 1.0, 0.0, 0.0, 0.0 } |
| Transform3d | m_projection_matrix { Transform3d::Identity() } |
| std::pair< double, double > | m_frustrum_zs |
| BoundingBoxf3 | m_scene_box |
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| Ortho | |
| Perspective | |
| Num_types | |
|
inline |
References set_default_orientation().
Here is the call graph for this function:| void Slic3r::GUI::Camera::apply_projection | ( | const BoundingBoxf3 & | box, |
| double | near_z = -1.0, |
||
| double | far_z = -1.0 |
||
| ) |
References apply_projection(), calc_tight_frustrum_zs_around(), FrustrumMinNearZ, get_inv_zoom(), m_distance, m_frustrum_zs, m_gui_scale, m_type, m_viewport, Ortho, Perspective, and scale().
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), apply_projection(), and Slic3r::GUI::GLCanvas3D::render().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::GUI::Camera::apply_projection | ( | double | left, |
| double | right, | ||
| double | bottom, | ||
| double | top, | ||
| double | near_z, | ||
| double | far_z | ||
| ) |
References m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Here is the call graph for this function:| void Slic3r::GUI::Camera::apply_viewport | ( | ) | const |
References glsafe, and m_viewport.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), and Slic3r::GUI::GLCanvas3D::render().
Here is the caller graph for this function:
|
private |
References FrustrumMinNearZ, FrustrumMinZRange, FrustrumZMargin, m_distance, m_view_matrix, Slic3r::BoundingBoxBase< PointType, APointsType >::max, Slic3r::BoundingBoxBase< PointType, APointsType >::min, set_distance(), and Slic3r::BoundingBoxf3::transformed().
Referenced by apply_projection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References Slic3r::BoundingBox3Base< PointType >::center(), get_dir_forward(), get_dir_right(), get_dir_up(), m_viewport, Slic3r::BoundingBoxBase< PointType, APointsType >::max, Slic3r::BoundingBox3Base< PointType >::max_size(), and Slic3r::BoundingBoxBase< PointType, APointsType >::min.
Referenced by min_zoom(), and zoom_to_box().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References Slic3r::BoundingBox3Base< PointType >::center(), get_dir_forward(), get_dir_right(), get_dir_up(), Slic3r::TriangleMesh::its, m_viewport, Slic3r::BoundingBox3Base< PointType >::merge(), Slic3r::transform(), and indexed_triangle_set::vertices.
Referenced by zoom_to_volumes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_update_config_on_type_change_enabled.
|
inline |
References m_view_matrix, and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix().
Referenced by priv::apply_camera_dir(), calc_zoom_to_bounding_box_factor(), calc_zoom_to_volumes_factor(), Slic3r::GUI::MeshRaycaster::get_unobscured_idxs(), Slic3r::GUI::SceneRaycaster::hit(), is_looking_downward(), Slic3r::GUI::GLGizmoCut3D::is_looking_forward(), Slic3r::GUI::GLCanvas3D::on_mouse(), Slic3r::GUI::CameraUtils::ray_from_ortho_screen_pos(), Slic3r::GUI::GLGizmoCut3D::PartSelection::render(), set_distance(), and update_zenit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_view_matrix, and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix().
Referenced by Slic3r::GUI::Mouse3DController::State::apply(), calc_zoom_to_bounding_box_factor(), calc_zoom_to_volumes_factor(), Slic3r::GUI::GLCanvas3D::on_mouse(), recover_from_free_camera(), and rotate_on_sphere().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_view_matrix, and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix().
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::Mouse3DController::State::apply(), calc_zoom_to_bounding_box_factor(), calc_zoom_to_volumes_factor(), and Slic3r::GUI::GLCanvas3D::on_mouse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
References m_frustrum_zs.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass().
Here is the caller graph for this function:| double Slic3r::GUI::Camera::get_fov | ( | ) | const |
References m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, Perspective, and Slic3r::Geometry::rad2deg().
Here is the call graph for this function:
|
inline |
References m_gui_scale.
|
inline |
References m_zoom.
Referenced by apply_projection(), Slic3r::GUI::GLGizmoMeasure::on_render(), Slic3r::GUI::GCodeViewer::COG::render(), Slic3r::GUI::CoordAxes::render(), and Slic3r::GUI::GLGizmoMeasure::render_dimensioning().
Here is the caller graph for this function:| double Slic3r::GUI::Camera::get_near_bottom | ( | ) | const |
References m_frustrum_zs, m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass().
Here is the call graph for this function:
Here is the caller graph for this function:| double Slic3r::GUI::Camera::get_near_height | ( | ) | const |
References m_frustrum_zs, m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass().
Here is the call graph for this function:
Here is the caller graph for this function:| double Slic3r::GUI::Camera::get_near_left | ( | ) | const |
References m_frustrum_zs, m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass().
Here is the call graph for this function:
Here is the caller graph for this function:| double Slic3r::GUI::Camera::get_near_right | ( | ) | const |
References m_frustrum_zs, m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Here is the call graph for this function:| double Slic3r::GUI::Camera::get_near_top | ( | ) | const |
References m_frustrum_zs, m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Here is the call graph for this function:| double Slic3r::GUI::Camera::get_near_width | ( | ) | const |
References m_frustrum_zs, m_projection_matrix, m_type, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Ortho, and Perspective.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_frustrum_zs.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass().
Here is the caller graph for this function:
|
inline |
References m_view_matrix, and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix().
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), get_distance(), Slic3r::GUI::GLGizmoPainterBase::gizmo_event(), Slic3r::GUI::SceneRaycaster::hit(), Slic3r::GUI::CameraUtils::ray_from_persp_screen_pos(), recover_from_free_camera(), Slic3r::GUI::GLGizmoCut3D::PartSelection::toggle_selection(), and Slic3r::GUI::GLGizmoPainterBase::update_raycast_cache().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_projection_matrix.
Referenced by Slic3r::GUI::GLCanvas3D::_mouse_to_3d(), Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_objects(), Slic3r::GUI::GLCanvas3D::_render_sla_slices(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), Slic3r::GUI::GLCanvas3D::_render_volumes_for_picking(), Slic3r::GUI::Selection::get_screen_space_bounding_box(), Slic3r::GUI::GLGizmoFlatten::on_render(), Slic3r::GUI::GLGizmoMeasure::on_render(), Slic3r::GUI::GLGizmoMove3D::on_render(), Slic3r::GUI::GLGizmoRotate::on_render(), Slic3r::GUI::GLGizmoScale3D::on_render(), Slic3r::GUI::GLGizmoSimplify::on_render(), Slic3r::GUI::CameraUtils::project(), Slic3r::GUI::CameraUtils::ray_from_ortho_screen_pos(), Slic3r::GUI::CameraUtils::ray_from_persp_screen_pos(), Slic3r::GLVolume::SinkingContours::render(), Slic3r::GLVolume::NonManifoldEdges::render(), Slic3r::GUI::GCodeViewer::COG::render(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render(), Slic3r::GUI::GLCanvas3D::SequentialPrintClearance::render(), Slic3r::GUI::GLCanvas3D::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::CoordAxes::render(), Slic3r::GUI::GLGizmoCut3D::PartSelection::render(), Slic3r::GUI::GLGizmoBase::Grabber::render(), Slic3r::GUI::TriangleSelectorMmGui::render(), Slic3r::GUI::Selection::render_bounding_box(), Slic3r::GUI::MeshClipper::render_contour(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_sphere(), Slic3r::GUI::MeshClipper::render_cut(), Slic3r::GUI::GLGizmoCut3D::render_cut_plane(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::TriangleSelectorGUI::render_paint_contour(), Slic3r::GUI::GLGizmoHollow::render_points(), Slic3r::GUI::GLGizmoSlaSupports::render_points(), Slic3r::GUI::GLGizmoCut3D::render_rotation_snapping(), Slic3r::GUI::GCodeViewer::render_shells(), Slic3r::GUI::Selection::render_sidebar_layers_hints(), Slic3r::GUI::Selection::render_sidebar_position_hints(), Slic3r::GUI::Selection::render_sidebar_rotation_hints(), Slic3r::GUI::Selection::render_sidebar_scale_hints(), Slic3r::GUI::GCodeViewer::render_toolpaths(), Slic3r::GUI::GLGizmoPainterBase::render_triangles(), Slic3r::GUI::GLGizmoMmuSegmentation::render_triangles(), Slic3r::GUI::GLGizmoSlaBase::render_volumes(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_volumes().
Here is the caller graph for this function:
|
inline |
References m_scene_box.
References m_target.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::Mouse3DController::State::apply(), and Slic3r::GUI::GLCanvas3D::on_mouse().
Here is the caller graph for this function:
|
inline |
References m_type.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::CameraUtils::ray_from_ortho_screen_pos(), Slic3r::GUI::CameraUtils::ray_from_persp_screen_pos(), Slic3r::GUI::CameraUtils::ray_from_screen_pos(), and Slic3r::GUI::GLCanvas3D::Labels::render().
Here is the caller graph for this function:| std::string Slic3r::GUI::Camera::get_type_as_string | ( | ) | const |
References m_type, Ortho, Perspective, and Unknown.
|
inline |
References m_view_matrix.
Referenced by Slic3r::GUI::GLCanvas3D::_mouse_to_3d(), Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_objects(), Slic3r::GUI::GLCanvas3D::_render_sla_slices(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), Slic3r::GUI::GLCanvas3D::_render_volumes_for_picking(), Slic3r::GUI::Selection::get_screen_space_bounding_box(), Slic3r::GUI::GLGizmoFlatten::on_render(), Slic3r::GUI::GLGizmoMeasure::on_render(), Slic3r::GUI::GLGizmoMove3D::on_render(), Slic3r::GUI::GLGizmoRotate::on_render(), Slic3r::GUI::GLGizmoScale3D::on_render(), Slic3r::GUI::GLGizmoSimplify::on_render(), Slic3r::GUI::CameraUtils::project(), Slic3r::GUI::CameraUtils::ray_from_ortho_screen_pos(), Slic3r::GUI::CameraUtils::ray_from_persp_screen_pos(), Slic3r::GLVolume::SinkingContours::render(), Slic3r::GLVolume::NonManifoldEdges::render(), Slic3r::GUI::GCodeViewer::COG::render(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render(), Slic3r::GUI::GLCanvas3D::SequentialPrintClearance::render(), Slic3r::GUI::GLCanvas3D::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::CoordAxes::render(), Slic3r::GUI::GLGizmoCut3D::PartSelection::render(), Slic3r::GUI::GLGizmoBase::Grabber::render(), Slic3r::GUI::TriangleSelectorMmGui::render(), Slic3r::GUI::Selection::render_bounding_box(), Slic3r::GUI::GLGizmoCut3D::render_connectors(), Slic3r::GUI::MeshClipper::render_contour(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_sphere(), Slic3r::GUI::MeshClipper::render_cut(), Slic3r::GUI::GLGizmoCut3D::render_cut_plane(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::TriangleSelectorGUI::render_paint_contour(), Slic3r::GUI::GLGizmoHollow::render_points(), Slic3r::GUI::GLGizmoSlaSupports::render_points(), Slic3r::GUI::GLGizmoCut3D::render_rotation_snapping(), Slic3r::GUI::GCodeViewer::render_shells(), Slic3r::GUI::Selection::render_sidebar_layers_hints(), Slic3r::GUI::Selection::render_sidebar_position_hints(), Slic3r::GUI::Selection::render_sidebar_rotation_hints(), Slic3r::GUI::Selection::render_sidebar_scale_hints(), Slic3r::GUI::GCodeViewer::render_toolpaths(), Slic3r::GUI::GLGizmoPainterBase::render_triangles(), Slic3r::GUI::GLGizmoMmuSegmentation::render_triangles(), Slic3r::GUI::GLGizmoSlaBase::render_volumes(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_volumes().
Here is the caller graph for this function:
|
inline |
References m_viewport.
Referenced by Slic3r::GUI::GLCanvas3D::_mouse_to_3d(), Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::Selection::get_screen_space_bounding_box(), Slic3r::GUI::GLGizmoMove3D::on_render(), Slic3r::GUI::GLGizmoRotate::on_render(), Slic3r::GUI::GLGizmoScale3D::on_render(), Slic3r::GUI::CameraUtils::project(), Slic3r::GUI::CameraUtils::ray_from_ortho_screen_pos(), Slic3r::GUI::CameraUtils::ray_from_persp_screen_pos(), Slic3r::GLVolume::NonManifoldEdges::render(), Slic3r::GUI::GLCanvas3D::SequentialPrintClearance::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::Selection::render_bounding_box(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::GCodeViewer::render_toolpaths(), and Slic3r::GUI::CameraUtils::screen_point().
Here is the caller graph for this function:
|
inline |
References m_frustrum_zs.
|
inline |
References m_zoom.
Referenced by Slic3r::GUI::Mouse3DController::State::apply(), Slic3r::GUI::GCodeViewer::render_toolpaths(), and Slic3r::GUI::GLCanvas3D::update_ui_from_settings().
Here is the caller graph for this function:
|
inline |
References get_dir_forward().
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), Slic3r::GUI::SceneRaycaster::hit(), and Slic3r::GUI::GLCanvas3D::render().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::GUI::Camera::look_at | ( | const Vec3d & | position, |
| const Vec3d & | target, | ||
| const Vec3d & | up | ||
| ) |
References m_distance, m_target, m_view_matrix, m_view_rotation, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::matrix(), Eigen::QuaternionBase< Derived >::normalize(), and update_zenit().
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), recover_from_free_camera(), and select_view().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
References calc_zoom_to_bounding_box_factor(), and m_scene_box.
Referenced by Slic3r::GUI::Mouse3DController::State::apply(), and set_zoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References EPSILON, get_dir_right(), get_position(), look_at(), and m_target.
Referenced by Slic3r::GUI::Mouse3DController::disconnect_device(), and Slic3r::GUI::GLCanvas3D::on_mouse().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::angle(), Eigen::QuaternionBase< Derived >::conjugate(), EPSILON, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::fromPositionOrientationScale(), m_target, m_view_matrix, m_view_rotation, Eigen::QuaternionBase< Derived >::normalize(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation(), and update_zenit().
Referenced by Slic3r::GUI::Mouse3DController::State::apply().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::GUI::Camera::rotate_on_sphere | ( | double | delta_azimut_rad, |
| double | delta_zenit_rad, | ||
| bool | apply_limits | ||
| ) |
References Slic3r::Geometry::deg2rad(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::fromPositionOrientationScale(), get_dir_right(), m_target, m_view_matrix, m_view_rotation, m_zenit, Eigen::QuaternionBase< Derived >::normalize(), Slic3r::Geometry::rad2deg(), and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translation().
Referenced by Slic3r::GUI::GLCanvas3D::on_mouse().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::GUI::Camera::select_next_type | ( | ) |
References m_type, Num_types, and set_type().
Here is the call graph for this function:References look_at(), m_distance, m_target, and set_default_orientation().
Here is the call graph for this function:
|
private |
References cos(), Slic3r::Geometry::deg2rad(), Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::fromPositionOrientationScale(), m_distance, m_target, m_view_matrix, m_view_rotation, m_zenit, Eigen::QuaternionBase< Derived >::normalize(), and sin().
Referenced by Camera(), and select_view().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References get_dir_forward(), m_distance, m_view_matrix, and Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translate().
Referenced by calc_tight_frustrum_zs_around().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_scene_box.
Referenced by Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal().
Here is the caller graph for this function:References m_target, m_view_matrix, Eigen::Transform< _Scalar, _Dim, _Mode, _Options >::translate(), and validate_target().
Referenced by Slic3r::GUI::Mouse3DController::State::apply(), Slic3r::GUI::GLCanvas3D::on_mouse(), translate_world(), zoom_to_box(), and zoom_to_volumes().
Here is the call graph for this function:
Here is the caller graph for this function:References Ortho, Perspective, and set_type().
Referenced by set_type().
Here is the call graph for this function:
Here is the caller graph for this function:References m_type, m_update_config_on_type_change_enabled, Ortho, and Perspective.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), and select_next_type().
Here is the caller graph for this function:| void Slic3r::GUI::Camera::set_viewport | ( | int | x, |
| int | y, | ||
| unsigned int | w, | ||
| unsigned int | h | ||
| ) |
References m_viewport.
Referenced by Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal(), and Slic3r::GUI::GLCanvas3D::render().
Here is the caller graph for this function:| void Slic3r::GUI::Camera::set_zoom | ( | double | zoom | ) |
References m_zoom, max_zoom(), and min_zoom().
Referenced by Slic3r::GUI::GLCanvas3D::update_ui_from_settings(), and update_zoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References Slic3r::dot(), get_dir_forward(), M_PI, m_zenit, and Slic3r::Geometry::rad2deg().
Referenced by look_at(), and rotate_local_around_target().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_zoom, and set_zoom().
Referenced by Slic3r::GUI::Mouse3DController::State::apply().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::BoundingBox3Base< PointType >::center(), m_scene_box, Slic3r::BoundingBoxBase< PointType, APointsType >::max, Slic3r::BoundingBoxBase< PointType, APointsType >::min, Slic3r::BoundingBoxBase< PointType, APointsType >::scale(), and Slic3r::BoundingBox3Base< PointType >::translate().
Referenced by set_target().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::GUI::Camera::zoom_to_box | ( | const BoundingBoxf3 & | box, |
| double | margin_factor = DefaultZoomToBoxMarginFactor |
||
| ) |
References calc_zoom_to_bounding_box_factor(), Slic3r::BoundingBox3Base< PointType >::center(), m_zoom, and set_target().
Referenced by Slic3r::GUI::GLCanvas3D::_render_thumbnail_internal().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::GUI::Camera::zoom_to_volumes | ( | const GLVolumePtrs & | volumes, |
| double | margin_factor = DefaultZoomToVolumesMarginFactor |
||
| ) |
References calc_zoom_to_volumes_factor(), m_zoom, and set_target().
Here is the call graph for this function:
|
static |
|
static |
|
static |
|
static |
Referenced by apply_projection(), and calc_tight_frustrum_zs_around().
|
static |
Referenced by calc_tight_frustrum_zs_around().
|
static |
Referenced by calc_tight_frustrum_zs_around().
|
private |
Referenced by apply_projection(), calc_tight_frustrum_zs_around(), look_at(), select_view(), set_default_orientation(), and set_distance().
|
private |
|
private |
Referenced by apply_projection(), and get_gui_scale().
|
private |
|
private |
Referenced by get_scene_box(), min_zoom(), set_scene_box(), and validate_target().
|
private |
|
private |
|
private |
Referenced by enable_update_config_on_type_change(), and set_type().
|
private |
|
private |
Referenced by look_at(), rotate_local_around_target(), rotate_on_sphere(), and set_default_orientation().
|
private |
|
private |
Referenced by rotate_on_sphere(), set_default_orientation(), and update_zenit().
|
private |
Referenced by get_inv_zoom(), get_zoom(), set_zoom(), update_zoom(), zoom_to_box(), and zoom_to_volumes().
|
static |
| bool Slic3r::GUI::Camera::requires_zoom_to_bed { false } |
Referenced by Slic3r::GUI::GLCanvas3D::render().