#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Gizmos/GizmoObjectManipulation.hpp>
Classes | |
| struct | Cache |
Public Types | |
| enum class | RotateType { None , Relative , Absolute } |
Public Member Functions | |
| GizmoObjectManipulation (GLCanvas3D &glcanvas) | |
| ~GizmoObjectManipulation () | |
| bool | IsShown () |
| void | UpdateAndShow (const bool show) |
| void | update_ui_from_settings () |
| void | set_dirty () |
| void | update_if_dirty () |
| void | set_uniform_scaling (const bool uniform_scale) |
| bool | get_uniform_scaling () const |
| void | set_use_object_cs (bool flag) |
| bool | get_use_object_cs () |
| void | set_coordinates_type (ECoordinatesType type) |
| ECoordinatesType | get_coordinates_type () const |
| bool | is_world_coordinates () const |
| bool | is_instance_coordinates () const |
| bool | is_local_coordinates () const |
| const Cache & | get_cache () |
| void | reset_cache () |
| void | limit_scaling_ratio (Vec3d &scaling_factor) const |
| void | on_change (const std::string &opt_key, int axis, double new_value) |
| bool | render_combo (ImGuiWrapper *imgui_wrapper, const std::string &label, const std::vector< std::string > &lines, size_t &selection_idx, float label_width, float item_width) |
| void | do_render_move_window (ImGuiWrapper *imgui_wrapper, std::string window_name, float x, float y, float bottom_limit) |
| void | do_render_rotate_window (ImGuiWrapper *imgui_wrapper, std::string window_name, float x, float y, float bottom_limit) |
| void | do_render_scale_input_window (ImGuiWrapper *imgui_wrapper, std::string window_name, float x, float y, float bottom_limit) |
| float | max_unit_size (int number, Vec3d &vec1, Vec3d &vec2, std::string str) |
| bool | reset_button (ImGuiWrapper *imgui_wrapper, bool enabled) |
| bool | reset_zero_button (ImGuiWrapper *imgui_wrapper, bool enabled) |
| bool | bbl_checkbox (const wxString &label, bool &value) |
| void | set_init_rotation (const Geometry::Transformation &value) |
| const GLGizmoAlignment & | get_alignment_helper () const |
| GLGizmoAlignment::AlignType | get_hovered_align_type () const |
| bool | get_align_to_parent () const |
| void | reset_align_state () |
Public Attributes | |
| Cache | m_cache |
| bool | m_imperial_units { false } |
| bool | m_use_object_cs {false} |
| bool | m_dirty = false |
| std::string | m_new_title_string |
| std::string | m_new_move_label_string |
| std::string | m_new_rotate_label_string |
| std::string | m_new_scale_label_string |
| std::string | m_new_unit_string |
| Vec3d | m_new_position |
| Vec3d | m_new_rotation |
| Vec3d | m_new_absolute_rotation |
| Vec3d | m_new_scale |
| Vec3d | m_new_size |
| Vec3d | m_unscale_size |
| Vec3d | m_buffered_position |
| Vec3d | m_buffered_rotation |
| Vec3d | m_buffered_absolute_rotation |
| Vec3d | m_buffered_scale |
| Vec3d | m_buffered_size |
| Vec3d | cs_center |
| bool | m_new_enabled {true} |
| bool | m_uniform_scale {true} |
| ECoordinatesType | m_coordinates_type {ECoordinatesType::World} |
| bool | m_show_reset_0_rotation {false} |
| bool | m_show_clear_rotation { false } |
| bool | m_show_clear_scale { false } |
| bool | m_enable_drop_to_bed { false } |
| RotateType | m_last_rotate_type {RotateType::None} |
Static Public Attributes | |
| static const double | in_to_mm = 25.4 |
| static const double | mm_to_in = 0.0393700787 |
| static const double | g_to_oz = 0.035274 |
| static const double | oz_to_g = 28.34952 |
Protected Attributes | |
| float | last_move_input_window_width = 0.0f |
| float | last_rotate_input_window_width = 0.0f |
| float | last_scale_input_window_width = 0.0f |
Private Member Functions | |
| void | reset_settings_value () |
| void | update_settings_value (const Selection &selection) |
| void | update_buffered_value () |
| void | update_reset_buttons_visibility () |
| void | change_position_value (int axis, double value) |
| void | change_rotation_value (int axis, double value) |
| void | change_absolute_rotation_value (int axis, double value) |
| void | change_scale_value (int axis, double value) |
| void | change_size_value (int axis, double value) |
| void | do_scale (int axis, const Vec3d &scale) const |
| void | reset_position_value () |
| void | reset_rotation_value (bool reset_relative) |
| void | reset_scale_value () |
Private Attributes | |
| GLCanvas3D & | m_glcanvas |
| unsigned int | m_last_active_item { 0 } |
| GLGizmoAlignment | m_alignment_helper |
| GLGizmoAlignment::AlignType | m_hovered_align_type {GLGizmoAlignment::AlignType::NONE} |
| bool | m_align_to_parent {false} |
| bool | m_can_align_within {false} |
| std::vector< std::pair< wxString, wxString > > | m_shortcuts_move |
| std::vector< std::pair< wxString, wxString > > | m_shortcuts_rotate |
| std::vector< std::pair< wxString, wxString > > | m_shortcuts_scale |
| Vec3d | m_init_rotation |
| Transform3d | m_init_rotation_scale_tran |
|
strong |
| Enumerator | |
|---|---|
| None | |
| Relative | |
| Absolute | |
| Slic3r::GUI::GizmoObjectManipulation::GizmoObjectManipulation | ( | GLCanvas3D & | glcanvas | ) |
References _L, L, L_CONTEXT, m_alignment_helper, m_glcanvas, m_imperial_units, m_new_unit_string, m_shortcuts_move, m_shortcuts_rotate, m_shortcuts_scale, Slic3r::GUI::shortkey_alt_prefix(), Slic3r::GUI::shortkey_ctrl_prefix(), and Slic3r::GUI::shortkey_shift_prefix().
|
inline |
| bool Slic3r::GUI::GizmoObjectManipulation::bbl_checkbox | ( | const wxString & | label, |
| bool & | value ) |
References Slic3r::GUI::into_u8().
|
private |
References Slic3r::GUI::TransformationType::absolute(), EPSILON, Slic3r::UndoRedo::GizmoAction, is_instance_coordinates(), is_local_coordinates(), Slic3r::GUI::Selection::is_single_full_instance(), m_cache, m_glcanvas, M_PI, Slic3r::GUI::Selection::rotate(), Slic3r::GUI::TransformationType::set_independent(), Slic3r::GUI::TransformationType::set_instance(), Slic3r::GUI::TransformationType::set_local(), Slic3r::GUI::TransformationType::set_relative(), Slic3r::GUI::Selection::setup_cache(), and UpdateAndShow().
Referenced by on_change().
|
private |
References EPSILON, Slic3r::UndoRedo::GizmoAction, Slic3r::GUI::Instance, Slic3r::GUI::Local, m_cache, m_coordinates_type, m_glcanvas, Slic3r::GUI::TransformationType::set_instance(), Slic3r::GUI::TransformationType::set_local(), Slic3r::GUI::TransformationType::set_relative(), Slic3r::GUI::Selection::setup_cache(), Slic3r::GUI::Selection::translate(), and UpdateAndShow().
Referenced by on_change().
|
private |
References _u8L, Slic3r::GUI::TransformationType::absolute(), EPSILON, Slic3r::UndoRedo::GizmoAction, is_instance_coordinates(), is_local_coordinates(), Slic3r::GUI::Selection::is_single_full_instance(), m_cache, m_glcanvas, M_PI, Slic3r::GUI::Selection::rotate(), Slic3r::GUI::TransformationType::set_independent(), Slic3r::GUI::TransformationType::set_instance(), Slic3r::GUI::TransformationType::set_local(), Slic3r::GUI::TransformationType::set_relative(), Slic3r::GUI::Selection::setup_cache(), and UpdateAndShow().
Referenced by on_change().
|
private |
References do_scale(), EPSILON, Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_single_volume_or_modifier(), m_cache, m_glcanvas, m_show_clear_scale, scale(), and UpdateAndShow().
Referenced by on_change(), and reset_scale_value().
|
private |
References do_scale(), EPSILON, Slic3r::GUI::Selection::get_full_unscaled_instance_bounding_box(), Slic3r::GUI::Selection::get_full_unscaled_instance_local_bounding_box(), Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_single_volume_or_modifier(), is_world_coordinates(), m_cache, m_glcanvas, Slic3r::BoundingBox3Base< PointType >::size(), and UpdateAndShow().
Referenced by on_change().
| void Slic3r::GUI::GizmoObjectManipulation::do_render_move_window | ( | ImGuiWrapper * | imgui_wrapper, |
| std::string | window_name, | ||
| float | x, | ||
| float | y, | ||
| float | bottom_limit ) |
References _L, _u8L, Slic3r::GUI::ImGuiWrapper::begin(), Slic3r::GUI::GLGizmoUtils::begin_right_aligned_buttons(), Slic3r::GUI::ImGuiWrapper::button(), Slic3r::GUI::ImGuiWrapper::calc_text_size(), Slic3r::GUI::GLCanvas3D::CanvasView3D, Slic3r::GUI::ImGuiWrapper::disabled_begin(), Slic3r::GUI::ImGuiWrapper::disabled_end(), Slic3r::GUI::DPI_DEFAULT, Slic3r::GUI::ImGuiWrapper::end(), Slic3r::GUI::from_u8(), Slic3r::GUI::get_dpi_for_window(), Slic3r::GUI::ImGuiWrapper::get_style_scaling(), Slic3r::GUI::GLGizmosManager::IC_ALIGN_X_CENTER, Slic3r::GUI::GLGizmosManager::IC_ALIGN_X_CENTER_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_X_MAX, Slic3r::GUI::GLGizmosManager::IC_ALIGN_X_MAX_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_X_MIN, Slic3r::GUI::GLGizmosManager::IC_ALIGN_X_MIN_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Y_CENTER, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Y_CENTER_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Y_MAX, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Y_MAX_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Y_MIN, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Y_MIN_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Z_CENTER, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Z_CENTER_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Z_MAX, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Z_MAX_DARK, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Z_MIN, Slic3r::GUI::GLGizmosManager::IC_ALIGN_Z_MIN_DARK, Slic3r::GUI::GLGizmosManager::IC_DISTRIBUTE_X, Slic3r::GUI::GLGizmosManager::IC_DISTRIBUTE_X_DARK, Slic3r::GUI::GLGizmosManager::IC_DISTRIBUTE_Y, Slic3r::GUI::GLGizmosManager::IC_DISTRIBUTE_Y_DARK, Slic3r::GUI::GLGizmosManager::IC_DISTRIBUTE_Z, Slic3r::GUI::GLGizmosManager::IC_DISTRIBUTE_Z_DARK, is_instance_coordinates(), Slic3r::GUI::Selection::is_multiple_full_object(), Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_wipe_tower(), Slic3r::GUI::label_values, last_move_input_window_width, m_align_to_parent, m_alignment_helper, m_buffered_position, m_can_align_within, m_coordinates_type, m_enable_drop_to_bed, m_glcanvas, m_hovered_align_type, m_imperial_units, m_last_active_item, m_new_position, m_new_title_string, m_new_unit_string, m_shortcuts_move, MAX_NUM, MAX_SIZE, mm_to_in, on_change(), Slic3r::GUI::ImGuiWrapper::pop_combo_style(), Slic3r::GUI::ImGuiWrapper::pop_toolbar_style(), Slic3r::GUI::ImGuiWrapper::push_combo_style(), Slic3r::GUI::ImGuiWrapper::push_toolbar_style(), render_combo(), Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), scale(), Slic3r::GUI::ImGuiWrapper::scaled(), set_coordinates_type(), Slic3r::GUI::ImGuiWrapper::set_next_window_pos(), style, Slic3r::GUI::ImGuiWrapper::text(), Slic3r::GUI::ImGuiWrapper::to_ImVec4(), Slic3r::GUI::ImGuiWrapper::TOOLBAR_WINDOW_FLAGS, Slic3r::GUI::ImGuiWrapper::tooltip(), UpdateAndShow(), Slic3r::GUI::World, Slic3r::ColorRGBA::X(), Slic3r::ColorRGBA::Y(), and Slic3r::ColorRGBA::Z().
| void Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window | ( | ImGuiWrapper * | imgui_wrapper, |
| std::string | window_name, | ||
| float | x, | ||
| float | y, | ||
| float | bottom_limit ) |
References _L, _u8L, Absolute, Slic3r::GUI::ImGuiWrapper::begin(), Slic3r::GUI::GLGizmoUtils::begin_right_aligned_buttons(), Slic3r::GUI::ImGuiWrapper::button(), Slic3r::GUI::ImGuiWrapper::calc_text_size(), Slic3r::GUI::ImGuiWrapper::end(), Slic3r::GUI::ImGuiWrapper::get_style_scaling(), Slic3r::GUI::label_values, last_rotate_input_window_width, m_buffered_absolute_rotation, m_buffered_position, m_buffered_rotation, m_glcanvas, m_imperial_units, m_last_active_item, m_last_rotate_type, m_new_absolute_rotation, m_new_position, m_new_rotation, m_new_title_string, m_shortcuts_rotate, m_show_clear_rotation, m_show_reset_0_rotation, MAX_SIZE, mm_to_in, None, on_change(), Slic3r::GUI::ImGuiWrapper::pop_toolbar_style(), Slic3r::GUI::ImGuiWrapper::push_toolbar_style(), Relative, Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), reset_button(), reset_rotation_value(), reset_zero_button(), Slic3r::GUI::ImGuiWrapper::set_next_window_pos(), Slic3r::GUI::ImGuiWrapper::text(), Slic3r::GUI::ImGuiWrapper::to_ImVec4(), Slic3r::GUI::ImGuiWrapper::TOOLBAR_WINDOW_FLAGS, Slic3r::GUI::ImGuiWrapper::tooltip(), Slic3r::ColorRGBA::X(), Slic3r::ColorRGBA::Y(), and Slic3r::ColorRGBA::Z().
| void Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window | ( | ImGuiWrapper * | imgui_wrapper, |
| std::string | window_name, | ||
| float | x, | ||
| float | y, | ||
| float | bottom_limit ) |
References _L, _L_CONTEXT, _u8L, Slic3r::GUI::ImGuiWrapper::bbl_checkbox(), Slic3r::GUI::ImGuiWrapper::begin(), Slic3r::GUI::GLGizmoUtils::begin_right_aligned_buttons(), Slic3r::GUI::ImGuiWrapper::button(), Slic3r::GUI::ImGuiWrapper::calc_text_size(), Slic3r::GUI::ImGuiWrapper::end(), Slic3r::GUI::ImGuiWrapper::get_style_scaling(), Slic3r::GUI::Selection::is_multiple_full_object(), Slic3r::GUI::Selection::is_single_full_object(), Slic3r::GUI::label_scale_values, last_scale_input_window_width, m_buffered_position, m_buffered_scale, m_buffered_size, m_coordinates_type, m_glcanvas, m_imperial_units, m_last_active_item, m_new_scale, m_new_size, m_new_title_string, m_new_unit_string, m_shortcuts_scale, m_show_clear_scale, m_uniform_scale, MAX_NUM, MAX_SIZE, mm_to_in, on_change(), Slic3r::GUI::ImGuiWrapper::pop_combo_style(), Slic3r::GUI::ImGuiWrapper::pop_toolbar_style(), Slic3r::GUI::ImGuiWrapper::push_combo_style(), Slic3r::GUI::ImGuiWrapper::push_toolbar_style(), render_combo(), Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), reset_button(), reset_scale_value(), scale(), Slic3r::GUI::ImGuiWrapper::scaled(), set_coordinates_type(), Slic3r::GUI::ImGuiWrapper::set_next_window_pos(), set_uniform_scaling(), Slic3r::GUI::ImGuiWrapper::text(), Slic3r::GUI::ImGuiWrapper::to_ImVec4(), Slic3r::GUI::ImGuiWrapper::TOOLBAR_WINDOW_FLAGS, Slic3r::GUI::ImGuiWrapper::tooltip(), UpdateAndShow(), Slic3r::GUI::World, Slic3r::ColorRGBA::X(), Slic3r::ColorRGBA::Y(), and Slic3r::ColorRGBA::Z().
|
private |
References is_instance_coordinates(), is_local_coordinates(), Slic3r::GUI::Selection::is_single_volume_or_modifier(), L, limit_scaling_ratio(), m_glcanvas, m_uniform_scale, scale(), Slic3r::GUI::Selection::scale(), Slic3r::GUI::TransformationType::set_instance(), Slic3r::GUI::TransformationType::set_local(), Slic3r::GUI::TransformationType::set_relative(), and Slic3r::GUI::Selection::setup_cache().
Referenced by change_scale_value(), and change_size_value().
|
inline |
References m_align_to_parent.
|
inline |
References m_alignment_helper.
|
inline |
|
inline |
References m_coordinates_type.
|
inline |
References m_hovered_align_type.
|
inline |
References m_uniform_scale.
|
inline |
References m_use_object_cs.
|
inline |
References Slic3r::GUI::Instance, and m_coordinates_type.
Referenced by change_absolute_rotation_value(), change_rotation_value(), do_render_move_window(), do_scale(), and update_settings_value().
|
inline |
References Slic3r::GUI::Local, and m_coordinates_type.
Referenced by change_absolute_rotation_value(), change_rotation_value(), do_scale(), and update_settings_value().
|
inline |
References m_coordinates_type, and Slic3r::GUI::World.
Referenced by change_size_value(), and update_settings_value().
| bool Slic3r::GUI::GizmoObjectManipulation::IsShown | ( | ) |
| void Slic3r::GUI::GizmoObjectManipulation::limit_scaling_ratio | ( | Vec3d & | scaling_factor | ) | const |
References m_unscale_size, and MAX_NUM.
Referenced by do_scale().
| float Slic3r::GUI::GizmoObjectManipulation::max_unit_size | ( | int | number, |
| Vec3d & | vec1, | ||
| Vec3d & | vec2, | ||
| std::string | str ) |
| void Slic3r::GUI::GizmoObjectManipulation::on_change | ( | const std::string & | opt_key, |
| int | axis, | ||
| double | new_value ) |
References change_absolute_rotation_value(), change_position_value(), change_rotation_value(), change_scale_value(), change_size_value(), in_to_mm, m_cache, and m_imperial_units.
Referenced by do_render_move_window(), do_render_rotate_window(), and do_render_scale_input_window().
| bool Slic3r::GUI::GizmoObjectManipulation::render_combo | ( | ImGuiWrapper * | imgui_wrapper, |
| const std::string & | label, | ||
| const std::vector< std::string > & | lines, | ||
| size_t & | selection_idx, | ||
| float | label_width, | ||
| float | item_width ) |
References Slic3r::GUI::ImGuiWrapper::text().
Referenced by do_render_move_window(), and do_render_scale_input_window().
| void Slic3r::GUI::GizmoObjectManipulation::reset_align_state | ( | ) |
References m_align_to_parent, m_alignment_helper, m_can_align_within, m_hovered_align_type, Slic3r::GUI::GLGizmoAlignment::NONE, and Slic3r::GUI::GLGizmoAlignment::X_MIN.
| bool Slic3r::GUI::GizmoObjectManipulation::reset_button | ( | ImGuiWrapper * | imgui_wrapper, |
| bool | enabled ) |
References Slic3r::GUI::ImGuiWrapper::disabled_begin(), Slic3r::GUI::ImGuiWrapper::disabled_end(), Slic3r::GUI::DPI_DEFAULT, Slic3r::GUI::get_dpi_for_window(), Slic3r::GUI::GLGizmosManager::IC_TOOLBAR_RESET, Slic3r::GUI::GLGizmosManager::IC_TOOLBAR_RESET_HOVER, m_glcanvas, and scale().
Referenced by do_render_rotate_window(), and do_render_scale_input_window().
|
inline |
|
private |
References _u8L, Slic3r::GUI::Selection::get_first_volume(), Slic3r::GUI::Selection::get_volume(), Slic3r::GUI::Selection::get_volume_idxs(), Slic3r::UndoRedo::GizmoAction, Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_single_modifier(), Slic3r::GUI::Selection::is_single_volume(), m_glcanvas, Slic3r::GLVolume::set_instance_offset(), Slic3r::GLVolume::set_volume_offset(), and UpdateAndShow().
|
private |
References Slic3r::GUI::Selection::get_first_volume(), Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::GUI::Selection::get_volume(), Slic3r::GUI::Selection::get_volume_idxs(), Slic3r::GLVolume::get_volume_transformation(), Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_single_volume_or_modifier(), L, m_glcanvas, m_init_rotation_scale_tran, Slic3r::offset(), Slic3r::GUI::Selection::RESET, Slic3r::Geometry::Transformation::reset_rotation(), Slic3r::GLVolume::set_instance_transformation(), Slic3r::Geometry::Transformation::set_matrix(), Slic3r::Geometry::Transformation::set_offset(), Slic3r::GLVolume::set_volume_transformation(), Slic3r::GUI::Selection::setup_cache(), Slic3r::GUI::Selection::synchronize_unselected_instances(), Slic3r::GUI::Selection::synchronize_unselected_volumes(), and UpdateAndShow().
Referenced by do_render_rotate_window().
|
private |
References change_scale_value(), and Slic3r::GUI::plater().
Referenced by do_render_scale_input_window().
|
private |
References m_new_absolute_rotation, m_new_enabled, m_new_position, m_new_rotation, m_new_scale, and m_new_size.
Referenced by update_settings_value().
| bool Slic3r::GUI::GizmoObjectManipulation::reset_zero_button | ( | ImGuiWrapper * | imgui_wrapper, |
| bool | enabled ) |
References Slic3r::GUI::ImGuiWrapper::disabled_begin(), Slic3r::GUI::ImGuiWrapper::disabled_end(), Slic3r::GUI::DPI_DEFAULT, Slic3r::GUI::get_dpi_for_window(), Slic3r::GUI::GLGizmosManager::IC_TOOLBAR_RESET_ZERO, Slic3r::GUI::GLGizmosManager::IC_TOOLBAR_RESET_ZERO_HOVER, m_glcanvas, and scale().
Referenced by do_render_rotate_window().
| void Slic3r::GUI::GizmoObjectManipulation::set_coordinates_type | ( | ECoordinatesType | type | ) |
References Slic3r::GUI::GLCanvas3D::get_gizmos_manager(), m_coordinates_type, Slic3r::GUI::GLCanvas3D::request_extra_frame(), Slic3r::GUI::GLCanvas3D::set_as_dirty(), Slic3r::GUI::GLGizmosManager::update_data(), and UpdateAndShow().
Referenced by do_render_move_window(), and do_render_scale_input_window().
|
inline |
References m_dirty.
Referenced by set_uniform_scaling(), and UpdateAndShow().
| void Slic3r::GUI::GizmoObjectManipulation::set_init_rotation | ( | const Geometry::Transformation & | value | ) |
References Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::Geometry::Transformation::get_rotation(), m_init_rotation, and m_init_rotation_scale_tran.
| void Slic3r::GUI::GizmoObjectManipulation::set_uniform_scaling | ( | const bool | uniform_scale | ) |
References m_uniform_scale, set_dirty(), and UpdateAndShow().
Referenced by do_render_scale_input_window().
|
inline |
References m_use_object_cs.
|
private |
References m_buffered_absolute_rotation, m_buffered_position, m_buffered_rotation, m_buffered_scale, m_buffered_size, m_imperial_units, m_new_absolute_rotation, m_new_position, m_new_rotation, m_new_scale, m_new_size, and mm_to_in.
Referenced by update_if_dirty(), and update_ui_from_settings().
| void Slic3r::GUI::GizmoObjectManipulation::update_if_dirty | ( | ) |
References _, EPSILON, m_cache, m_dirty, m_glcanvas, m_new_absolute_rotation, m_new_move_label_string, m_new_position, m_new_rotate_label_string, m_new_rotation, m_new_scale, m_new_scale_label_string, m_new_size, update_buffered_value(), update_reset_buttons_visibility(), and update_settings_value().
Referenced by UpdateAndShow().
|
private |
References Slic3r::GUI::Selection::can_drop(), Slic3r::GUI::GLCanvas3D::CanvasView3D, Slic3r::GUI::Selection::get_first_volume(), Slic3r::GLVolume::get_instance_rotation(), Slic3r::GLVolume::get_instance_scaling_factor(), Slic3r::GLVolume::get_volume_rotation(), Slic3r::GLVolume::get_volume_scaling_factor(), Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_single_volume_or_modifier(), m_cache, m_enable_drop_to_bed, m_glcanvas, m_init_rotation, m_show_clear_rotation, m_show_clear_scale, m_show_reset_0_rotation, and scale().
Referenced by update_if_dirty().
|
private |
References Slic3r::BoundingBox3Base< PointType >::center(), cs_center, Slic3r::GUI::delete_negative_sign(), Slic3r::GUI::Selection::get_bounding_box(), Slic3r::GUI::Selection::get_bounding_box_in_current_reference_system(), Slic3r::GUI::Selection::get_first_volume(), Slic3r::GUI::Selection::get_full_unscaled_instance_local_bounding_box(), Slic3r::GLVolume::get_instance_offset(), Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::Geometry::Transformation::get_rotation_by_quaternion(), Slic3r::GUI::Selection::get_unscaled_instance_bounding_box(), Slic3r::GLVolume::get_volume_offset(), Slic3r::GLVolume::get_volume_scaling_factor(), Slic3r::GLVolume::get_volume_transformation(), is_instance_coordinates(), is_local_coordinates(), Slic3r::GUI::Selection::is_single_full_instance(), Slic3r::GUI::Selection::is_single_full_object(), Slic3r::GUI::Selection::is_single_volume_or_modifier(), Slic3r::GUI::Selection::is_wipe_tower(), is_world_coordinates(), Slic3r::GUI::itInstanceRoot, Slic3r::GUI::itObject, L, m_new_absolute_rotation, m_new_enabled, m_new_move_label_string, m_new_position, m_new_rotate_label_string, m_new_rotation, m_new_scale, m_new_scale_label_string, m_new_size, m_new_title_string, M_PI, m_unscale_size, Slic3r::GUI::obj_list(), Slic3r::offset(), reset_settings_value(), Slic3r::BoundingBox3Base< PointType >::size(), and Slic3r::GLVolume::world_matrix().
Referenced by update_if_dirty().
| void Slic3r::GUI::GizmoObjectManipulation::update_ui_from_settings | ( | ) |
References L, L_CONTEXT, m_imperial_units, m_new_unit_string, and update_buffered_value().
| void Slic3r::GUI::GizmoObjectManipulation::UpdateAndShow | ( | const bool | show | ) |
References set_dirty(), and update_if_dirty().
Referenced by change_absolute_rotation_value(), change_position_value(), change_rotation_value(), change_scale_value(), change_size_value(), do_render_move_window(), do_render_scale_input_window(), reset_position_value(), reset_rotation_value(), set_coordinates_type(), and set_uniform_scaling().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::cs_center |
Referenced by update_settings_value().
|
static |
|
static |
Referenced by Slic3r::GUI::GLGizmoEmboss::draw_advanced(), Slic3r::GUI::GLGizmoSVG::draw_depth(), Slic3r::GUI::GLGizmoSVG::draw_distance(), Slic3r::GUI::Emboss::StyleManager::init_style_images(), on_change(), Slic3r::GUI::GCodeViewer::render_all_plates_stats(), Slic3r::GUI::GLGizmoCut3D::render_double_input(), Slic3r::GUI::GLGizmoCut3D::render_move_center_input(), Slic3r::GUI::GLGizmoCut3D::render_slider_input(), Slic3r::GUI::GLGizmoCut3D::render_slider_two_input(), and Slic3r::GUI::GLGizmoEmboss::rev_input_mm().
|
protected |
Referenced by do_render_move_window().
|
protected |
Referenced by do_render_rotate_window().
|
protected |
Referenced by do_render_scale_input_window().
|
private |
Referenced by do_render_move_window(), get_align_to_parent(), and reset_align_state().
|
private |
Referenced by GizmoObjectManipulation(), do_render_move_window(), get_alignment_helper(), and reset_align_state().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_buffered_absolute_rotation |
Referenced by do_render_rotate_window(), and update_buffered_value().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_buffered_position |
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_buffered_rotation |
Referenced by do_render_rotate_window(), and update_buffered_value().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_buffered_scale |
Referenced by do_render_scale_input_window(), and update_buffered_value().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_buffered_size |
Referenced by do_render_scale_input_window(), and update_buffered_value().
| Cache Slic3r::GUI::GizmoObjectManipulation::m_cache |
|
private |
Referenced by do_render_move_window(), and reset_align_state().
| ECoordinatesType Slic3r::GUI::GizmoObjectManipulation::m_coordinates_type {ECoordinatesType::World} |
| bool Slic3r::GUI::GizmoObjectManipulation::m_dirty = false |
Referenced by set_dirty(), and update_if_dirty().
| bool Slic3r::GUI::GizmoObjectManipulation::m_enable_drop_to_bed { false } |
Referenced by do_render_move_window(), and update_reset_buttons_visibility().
|
private |
Referenced by GizmoObjectManipulation(), change_absolute_rotation_value(), change_position_value(), change_rotation_value(), change_scale_value(), change_size_value(), do_render_move_window(), do_render_rotate_window(), do_render_scale_input_window(), do_scale(), reset_button(), reset_position_value(), reset_rotation_value(), reset_zero_button(), update_if_dirty(), and update_reset_buttons_visibility().
|
private |
Referenced by do_render_move_window(), get_hovered_align_type(), and reset_align_state().
| bool Slic3r::GUI::GizmoObjectManipulation::m_imperial_units { false } |
Referenced by GizmoObjectManipulation(), do_render_move_window(), do_render_rotate_window(), do_render_scale_input_window(), on_change(), update_buffered_value(), and update_ui_from_settings().
|
private |
Referenced by set_init_rotation(), and update_reset_buttons_visibility().
|
private |
Referenced by reset_rotation_value(), and set_init_rotation().
|
private |
Referenced by do_render_move_window(), do_render_rotate_window(), and do_render_scale_input_window().
| RotateType Slic3r::GUI::GizmoObjectManipulation::m_last_rotate_type {RotateType::None} |
Referenced by do_render_rotate_window().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_new_absolute_rotation |
| bool Slic3r::GUI::GizmoObjectManipulation::m_new_enabled {true} |
Referenced by reset_settings_value(), and update_settings_value().
| std::string Slic3r::GUI::GizmoObjectManipulation::m_new_move_label_string |
Referenced by update_if_dirty(), and update_settings_value().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_new_position |
| std::string Slic3r::GUI::GizmoObjectManipulation::m_new_rotate_label_string |
Referenced by update_if_dirty(), and update_settings_value().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_new_rotation |
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_new_scale |
| std::string Slic3r::GUI::GizmoObjectManipulation::m_new_scale_label_string |
Referenced by update_if_dirty(), and update_settings_value().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_new_size |
| std::string Slic3r::GUI::GizmoObjectManipulation::m_new_title_string |
| std::string Slic3r::GUI::GizmoObjectManipulation::m_new_unit_string |
|
private |
Referenced by GizmoObjectManipulation(), and do_render_move_window().
|
private |
Referenced by GizmoObjectManipulation(), and do_render_rotate_window().
|
private |
Referenced by GizmoObjectManipulation(), and do_render_scale_input_window().
| bool Slic3r::GUI::GizmoObjectManipulation::m_show_clear_rotation { false } |
Referenced by do_render_rotate_window(), and update_reset_buttons_visibility().
| bool Slic3r::GUI::GizmoObjectManipulation::m_show_clear_scale { false } |
Referenced by change_scale_value(), do_render_scale_input_window(), and update_reset_buttons_visibility().
| bool Slic3r::GUI::GizmoObjectManipulation::m_show_reset_0_rotation {false} |
Referenced by do_render_rotate_window(), and update_reset_buttons_visibility().
| bool Slic3r::GUI::GizmoObjectManipulation::m_uniform_scale {true} |
Referenced by do_render_scale_input_window(), do_scale(), get_uniform_scaling(), and set_uniform_scaling().
| Vec3d Slic3r::GUI::GizmoObjectManipulation::m_unscale_size |
Referenced by limit_scaling_ratio(), and update_settings_value().
| bool Slic3r::GUI::GizmoObjectManipulation::m_use_object_cs {false} |
Referenced by get_use_object_cs(), and set_use_object_cs().
|
static |
Referenced by do_render_move_window(), do_render_rotate_window(), do_render_scale_input_window(), Slic3r::GUI::GLGizmoEmboss::draw_advanced(), Slic3r::GUI::GLGizmoSVG::draw_depth(), Slic3r::GUI::GLGizmoSVG::draw_distance(), Slic3r::GUI::GLGizmoSVG::draw_size(), Slic3r::GUI::GLGizmoCut3D::get_tooltip(), Slic3r::GUI::GLGizmoCut3D::render_build_size(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::GLGizmoCut3D::render_double_input(), Slic3r::GUI::GLGizmoCut3D::render_move_center_input(), Slic3r::GUI::GLGizmoCut3D::render_slider_input(), Slic3r::GUI::GLGizmoCut3D::render_slider_two_input(), Slic3r::GUI::GLGizmoEmboss::rev_input_mm(), Slic3r::GUI::GLGizmoMeasure::show_distance_xyz_ui(), Slic3r::GUI::Plater::show_object_info(), Slic3r::GUI::GLGizmoMeasure::show_selection_ui(), update_buffered_value(), and Slic3r::GUI::GLGizmoMeasure::update_measurement_result().
|
static |
Referenced by Slic3r::GUI::format_compact_weight().