#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Gizmos/GLGizmosManager.hpp>
Classes | |
| struct | Layout |
Public Member Functions | |
| GLGizmosManager (GLCanvas3D &parent) | |
| void | switch_gizmos_icon_filename () |
| bool | init () |
| bool | init_icon_textures () |
| float | get_layout_scale () |
| bool | init_arrow (const std::string &filename) |
| template<class Archive> | |
| void | load (Archive &ar) |
| template<class Archive> | |
| void | save (Archive &ar) const |
| bool | is_enabled () const |
| void | set_enabled (bool enable) |
| void | set_icon_dirty () |
| void | set_overlay_icon_size (float size) |
| void | set_overlay_scale (float scale) |
| void | refresh_on_off_state () |
| void | reset_all_states () |
| bool | open_gizmo (EType type) |
| bool | check_gizmos_closed_except (EType) const |
| void | set_hover_id (int id) |
| void | update_data () |
| Distribute information about different data into active gizmo Should be called when selection changed. | |
| void | update_section_view () |
| EType | get_current_type () const |
| GLGizmoBase * | get_current () const |
| GLGizmoBase * | get_gizmo (GLGizmosManager::EType type) const |
| EType | get_gizmo_from_name (const std::string &gizmo_name) const |
| bool | is_running () const |
| bool | open_gizmo_by_shortcut (Shortcut shortcut) |
| bool | on_delete_key () |
| bool | is_dragging () const |
| void * | get_icon_texture_id (MENU_ICON_NAME icon) |
| void * | get_icon_texture_id (MENU_ICON_NAME icon) const |
| bool | is_paint_gizmo () |
| bool | is_allow_select_all () |
| bool | is_allow_multi_select_parts_or_objects () const |
| std::optional< ClippingPlane > | get_clipping_plane () const |
| bool | wants_reslice_supports_on_undo () const |
| bool | is_in_editing_mode (bool error_notification=false) const |
| bool | is_hiding_instances () const |
| void | on_change_color_mode (bool is_dark) |
| void | render_current_gizmo () const |
| void | render_painter_gizmo () |
| void | render_overlay () |
| void | render_overlay_input_window () |
| size_t | get_overlay_state_hash () const |
| void | render_arrow (const GLCanvas3D &parent, EType highlighted_type) const |
| std::string | get_tooltip () const |
| bool | on_mouse (const wxMouseEvent &mouse_event) |
| bool | on_mouse_wheel (const wxMouseEvent &evt) |
| bool | on_char (wxKeyEvent &evt) |
| bool | on_key (wxKeyEvent &evt) |
| void | update_after_undo_redo (const UndoRedo::Snapshot &snapshot) |
| int | get_selectable_icons_cnt () const |
| void | set_highlight (EType gizmo, bool highlight_shown) |
| bool | get_highlight_state () const |
| float | get_scaled_total_height () const |
| float | get_scaled_total_width () const |
| GizmoObjectManipulation & | get_object_manipulation () |
| bool | get_uniform_scaling () const |
| ObjectID | id () const |
| virtual Timestamp | timestamp () const |
Static Public Attributes | |
| static const float | Default_Icons_Size = 64 |
Protected Member Functions | |
| 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 | |
| std::vector< size_t > | get_selectable_idxs () const |
| EType | get_gizmo_from_mouse (const Vec2d &mouse_pos) const |
| bool | activate_gizmo (EType type) |
| void | on_set_color_timer (wxTimerEvent &evt) |
| bool | gizmos_toolbar_on_mouse (const wxMouseEvent &mouse_event) |
| Process mouse event on gizmo toolbar. | |
| bool | gizmo_event (SLAGizmoEventType action, const Vec2d &mouse_position=Vec2d::Zero(), bool shift_down=false, bool alt_down=false, bool control_down=false) |
| void | render_background (float left, float top, float right, float bottom, float border_w, float border_h) const |
| void | do_render_overlay (bool draw_icons) const |
| bool | generate_icons_texture () |
| void | update_hover_state (const EType &type) |
| bool | grabber_contains_mouse () const |
| 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 | |
| GLCanvas3D & | m_parent |
| bool | m_enabled |
| std::vector< std::unique_ptr< GLGizmoBase > > | m_gizmos |
| GLTexture | m_icons_texture |
| bool | m_icons_texture_dirty |
| BackgroundTexture | m_background_texture |
| GLTexture | m_arrow_texture |
| Layout | m_layout |
| EType | m_current |
| EType | m_hover |
| std::pair< EType, bool > | m_highlight |
| GizmoObjectManipulation | m_object_manipulation |
| std::string | m_tooltip |
| bool | m_serializing |
| std::unique_ptr< CommonGizmosDataPool > | m_common_gizmos_data |
| wxTimer | m_timer_set_color |
| int | m_pending_color_shortcut_tens = 0 |
| bool | m_is_dark = false |
| bool | m_restore_realistic_view_after_paint = false |
| ObjectID | m_id |
Static Private Attributes | |
| static std::map< int, void * > | icon_list = {} |
| static size_t | s_last_id = 0 |
|
inherited |
| enum Slic3r::GUI::GLGizmosManager::EType : unsigned char |
| Enumerator | |
|---|---|
| Move | |
| Rotate | |
| Scale | |
| Flatten | |
| Cut | |
| MeshBoolean | |
| FdmSupports | |
| Seam | |
| FuzzySkin | |
| MmSegmentation | |
| TextureDisplacement | |
| Emboss | |
| Svg | |
| Measure | |
| Assembly | |
| Simplify | |
| BrimEars | |
| Undefined | |
|
explicit |
References m_current, m_enabled, m_hover, m_icons_texture_dirty, m_object_manipulation, m_parent, m_serializing, m_timer_set_color, m_tooltip, on_set_color_timer(), and Undefined.
|
private |
References Slic3r::UndoRedo::EnteringGizmo, FdmSupports, FuzzySkin, Slic3r::GUI::GLGizmoBase::get_gizmo_entering_text(), Slic3r::GUI::GLGizmoBase::get_gizmo_leaving_text(), Slic3r::GUI::GLGizmoBase::get_state(), Slic3r::GUI::GLGizmoBase::is_activable(), Slic3r::UndoRedo::LeavingGizmoWithAction, m_current, m_gizmos, m_restore_realistic_view_after_paint, m_serializing, Slic3r::GUI::GLGizmoBase::Off, Slic3r::GUI::GLGizmoBase::On, Slic3r::GUI::plater(), Slic3r::GUI::GLGizmoBase::register_raycasters_for_picking(), Seam, Slic3r::GUI::GLGizmoBase::set_state(), SETTING_OPENGL_REALISTIC_MODE, Undefined, Slic3r::GUI::GLGizmoBase::unregister_raycasters_for_picking(), and Slic3r::GUI::GLGizmoBase::wants_enter_leave_snapshots().
Referenced by load(), open_gizmo(), refresh_on_off_state(), and reset_all_states().
|
inlineprotectedvirtualinherited |
Reimplemented in Slic3r::Model, Slic3r::ModelObject, and Slic3r::ModelVolume.
References set_new_unique_id().
| bool Slic3r::GUI::GLGizmosManager::check_gizmos_closed_except | ( | EType | type | ) | const |
References _u8L, Slic3r::GUI::CustomSupportsAndSeamRemovedAfterRepair, get_current_type(), Slic3r::GUI::NotificationManager::PrintInfoNotificationLevel, and Undefined.
Referenced by Slic3r::GUI::ObjectList::simplify().
|
inlineprotectedinherited |
References ObjectBase(), id(), and m_id.
Referenced by Slic3r::CutObjectBase::copy().
|
private |
References Slic3r::GUI::GLCanvas3D::CanvasAssembleView, Emboss, Slic3r::GUI::Size::get_height(), get_scaled_total_height(), get_scaled_total_width(), get_selectable_idxs(), Slic3r::GUI::GLGizmoBase::get_sprite_id(), Slic3r::GUI::Size::get_width(), Slic3r::GUI::GLGizmoBase::is_activable(), m_current, m_gizmos, m_highlight, m_hover, m_icons_texture, m_layout, m_parent, render_background(), Slic3r::GUI::GLTexture::render_sub_texture(), Svg, and Undefined.
Referenced by render_overlay(), and render_overlay_input_window().
|
private |
References m_gizmos, m_icons_texture, m_icons_texture_dirty, m_layout, and Slic3r::resources_dir().
Referenced by render_overlay().
|
inlinestaticprivateinherited |
References s_last_id.
Referenced by ObjectBase(), and set_new_unique_id().
| std::optional< ClippingPlane > Slic3r::GUI::GLGizmosManager::get_clipping_plane | ( | ) | const |
References Slic3r::GUI::ClippingPlane::ClipsNothing(), Slic3r::GUI::ClippingPlane::get_data(), Slic3r::GUI::ClippingPlane::get_normal(), and m_common_gizmos_data.
| GLGizmoBase * Slic3r::GUI::GLGizmosManager::get_current | ( | ) | const |
References m_current, m_gizmos, and Undefined.
Referenced by Slic3r::GUI::GLCanvas3D::_render_objects(), get_tooltip(), grabber_contains_mouse(), is_in_editing_mode(), on_key(), on_set_color_timer(), render_painter_gizmo(), Slic3r::GUI::Plater::priv::take_snapshot(), and update_data().
|
inline |
References m_current.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_edit_svg(), Slic3r::GUI::MenuFactory::append_menu_item_edit_text(), Slic3r::GUI::call_after_if_active(), check_gizmos_closed_except(), anonymous_namespace{EmbossJob.cpp}::create_volume(), anonymous_namespace{EmbossJob.cpp}::CreateObjectJob::finalize(), Slic3r::GUI::ObjectList::list_manipulation(), Slic3r::GUI::ObjectList::OnEditingStarted(), Slic3r::GUI::ObjectList::part_selection_changed(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render(), reset_all_states(), Slic3r::GUI::ObjectList::simplify(), and Slic3r::GUI::GLCanvas3D::toggle_model_objects_visibility().
| GLGizmoBase * Slic3r::GUI::GLGizmosManager::get_gizmo | ( | GLGizmosManager::EType | type | ) | const |
References m_gizmos, and Undefined.
Referenced by Slic3r::GUI::add_volume_with_gizmo(), Slic3r::GUI::anonymous_namespace{Plater.cpp}::emboss_svg(), and Slic3r::GUI::ObjectList::part_selection_changed().
|
private |
References Slic3r::GUI::GLCanvas3D::CanvasAssembleView, get_selectable_idxs(), m_enabled, m_layout, m_parent, Slic3r::GUI::selectable(), and Undefined.
Referenced by gizmos_toolbar_on_mouse().
| GLGizmosManager::EType Slic3r::GUI::GLGizmosManager::get_gizmo_from_name | ( | const std::string & | gizmo_name | ) | const |
References get_selectable_idxs(), m_gizmos, and Undefined.
|
inline |
References m_highlight.
|
inline |
References icon_list.
Referenced by Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), Slic3r::GUI::GLGizmoUtils::render_video_guide_button(), and Slic3r::GUI::GLGizmoUtils::render_wiki_guide_button().
|
inline |
| float Slic3r::GUI::GLGizmosManager::get_layout_scale | ( | ) |
|
inline |
References m_object_manipulation.
| size_t Slic3r::GUI::GLGizmosManager::get_overlay_state_hash | ( | ) | const |
References m_current, m_enabled, m_highlight, and m_hover.
| float Slic3r::GUI::GLGizmosManager::get_scaled_total_height | ( | ) | const |
References get_selectable_idxs(), and m_layout.
Referenced by do_render_overlay(), and render_arrow().
| float Slic3r::GUI::GLGizmosManager::get_scaled_total_width | ( | ) | const |
References get_selectable_idxs(), and m_layout.
Referenced by do_render_overlay().
|
inline |
|
private |
References Assembly, Slic3r::GUI::GLCanvas3D::CanvasAssembleView, m_gizmos, m_parent, Measure, MmSegmentation, Move, and Rotate.
Referenced by do_render_overlay(), get_gizmo_from_mouse(), get_gizmo_from_name(), get_scaled_total_height(), get_scaled_total_width(), get_selectable_icons_cnt(), and render_arrow().
| std::string Slic3r::GUI::GLGizmosManager::get_tooltip | ( | ) | const |
References get_current(), Slic3r::GUI::GLGizmoBase::get_tooltip(), and m_tooltip.
|
inline |
References m_object_manipulation.
|
private |
References Assembly, BrimEars, Cut, FdmSupports, FuzzySkin, Slic3r::GUI::GLGizmoBrimEars::gizmo_event(), Slic3r::GUI::GLGizmoCut3D::gizmo_event(), Slic3r::GUI::GLGizmoMeasure::gizmo_event(), Slic3r::GUI::GLGizmoMeshBoolean::gizmo_event(), Slic3r::GUI::GLGizmoPainterBase::gizmo_event(), m_current, m_enabled, m_gizmos, Measure, MeshBoolean, MmSegmentation, Seam, and TextureDisplacement.
Referenced by on_char(), on_delete_key(), on_key(), and on_mouse_wheel().
|
private |
Process mouse event on gizmo toolbar.
| mouse_event | Event descriptor |
References Emboss, get_gizmo_from_mouse(), m_enabled, m_gizmos, open_gizmo(), Undefined, update_hover_state(), and Slic3r::GUI::wxMouseEvent.
Referenced by on_mouse().
|
private |
References get_current(), Slic3r::GUI::GLGizmoBase::get_hover_id(), and m_enabled.
|
inlineinherited |
References m_id.
Referenced by Slic3r::CutObjectBase::CutObjectBase(), Slic3r::Model::Model(), Slic3r::ModelInstance::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::ModelVolume::ModelVolume(), Slic3r::ModelVolume::ModelVolume(), Slic3r::ModelVolume::ModelVolume(), ObjectBase(), Slic3r::PrintBase::SlicingStatus::SlicingStatus(), Slic3r::PrintBase::SlicingStatus::SlicingStatus(), Slic3r::_BBS_3MF_Exporter::_add_cut_information_file_to_archive(), Slic3r::_BBS_3MF_Exporter::_add_model_config_file_to_archive(), Slic3r::_BBS_3MF_Exporter::_add_slice_info_config_file_to_archive(), Slic3r::GUI::Plater::priv::actualize_slicing_warnings(), Slic3r::ModelObjectStatusDB::add(), Slic3r::ModelObjectStatusDB::add_if_new(), Slic3r::Model::add_object(), Slic3r::append_and_translate(), Slic3r::SLAPrint::apply(), Slic3r::GUI::calc_distance(), Slic3r::GUI::calc_surface_offset(), Slic3r::check_model_ids_equal(), Slic3r::check_model_ids_validity(), Slic3r::GUI::GLGizmoTextureDisplacement::close_image_adjust(), Slic3r::Model::collect_reusable_objects(), Slic3r::ModelObject::convert_units(), copy_id(), Slic3r::PrintObjectStatusDB::count(), anonymous_namespace{RaycastManager.cpp}::create_key(), Slic3r::GUI::create_meshes(), anonymous_namespace{EmbossJob.cpp}::create_volume(), Slic3r::GUI::Emboss::create_volume_sources(), Slic3r::GUI::GLGizmoPainterBase::data_changed(), Slic3r::GCode::do_export(), Slic3r::GUI::PartPlate::duplicate_all_instance(), Slic3r::GUI::PartPlateList::duplicate_plate(), Slic3r::GUI::PartPlate::estimate_wipe_tower_footprint(), Slic3r::Print::export_cached_data(), Slic3r::GUI::Plater::export_stl(), Slic3r::find_volume_extents(), Slic3r::PreciseSeam::detail::fragment_location(), Slic3r::GUI::Plater::priv::generate_first_layer_bbox(), Slic3r::ModelObjectStatusDB::get(), Slic3r::Model::get_backup_path(), Slic3r::GUI::GLCanvas3D::get_empty_cells(), Slic3r::ModelInstance::get_labeled_id(), Slic3r::GUI::get_model_volume(), Slic3r::PrintObjectStatusDB::get_range(), Slic3r::GUI::get_selected_volume(), Slic3r::GUI::get_volume(), Slic3r::CutObjectBase::has_same_id(), Slic3r::UndoRedo::StackImpl::immutable_object_id_impl(), Slic3r::GUI::GLGizmoFdmSupports::init_print_instance(), Slic3r::CutObjectBase::is_equal(), Slic3r::GUI::GLGizmoSVG::is_svg_object(), Slic3r::ModelVolume::is_the_only_one_part(), Slic3r::GUI::IMSlider::IsNewPrint(), Slic3r::ModelObject::load(), load_and_construct(), Slic3r::Print::load_cached_data(), Slic3r::GLVolumeCollection::load_object_auxiliary(), Slic3r::GLVolumeCollection::load_object_volume(), Slic3r::GUI::GCodeViewer::load_shells(), Slic3r::UndoRedo::StackImpl::load_snapshot(), Slic3r::GUI::GLCanvas3D::CenterOfMass::model_markers(), 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::GLGizmoSimplify::on_render_input_window(), Slic3r::GUI::GLGizmoTextureDisplacement::open_image_adjust(), Slic3r::CutObjectBase::operator<(), Slic3r::Model::operator=(), Slic3r::ModelObject::operator=(), Slic3r::ModelObject::operator=(), Slic3r::CutObjectBase::operator==(), Slic3r::outer_inner_brim_area(), Slic3r::GUI::GLGizmoTextureDisplacement::painted_area_mm2(), Slic3r::GUI::GLGizmoCut3D::perform_cut(), anonymous_namespace{GLGizmoEmboss.cpp}::prepare_volumes_to_slice(), Slic3r::GUI::GLGizmoTextureDisplacement::preview_part(), Slic3r::GCode::process_layer(), Slic3r::GUI::NotificationManager::push_slicing_warning_notification(), Slic3r::GUI::GLGizmoTextureDisplacement::queue_preview_job(), Slic3r::GUI::queue_texture_displacement_debug(), Slic3r::GUI::GLGizmoEmboss::re_emboss(), Slic3r::GUI::GLGizmoTextureDisplacement::rebuild_other_paint_overlay(), Slic3r::GUI::GLGizmoTextureDisplacement::rebuild_painted_colors(), Slic3r::GUI::GLCanvas3D::reload_scene(), Slic3r::_BBS_Backup_Manager::remove_backup(), Slic3r::Model::remove_backup_path_if_exist(), Slic3r::GUI::GLGizmoTextureDisplacement::render_image_adjust_window(), Slic3r::CLI::run(), Slic3r::GUI::GLCanvas3D::LayersEditing::select_object(), Slic3r::ModelMaterial::serialize(), Slic3r::Model::set_backup_path(), Slic3r::GUI::GLGizmoBrimEars::set_brim_data(), Slic3r::GUI::PartPlate::set_hover_id(), Slic3r::GUI::GLGizmoEmboss::set_volume_by_selection(), Slic3r::GUI::GLGizmoSVG::set_volume_by_selection(), Slic3r::sla_instances(), Slic3r::slices_to_regions(), Slic3r::ModelObject::split(), anonymous_namespace{EmbossJob.cpp}::start_create_volume_on_surface_job(), anonymous_namespace{SurfaceDrag.cpp}::start_dragging(), Slic3r::GUI::Emboss::start_update_volume(), Slic3r::UndoRedo::StackImpl::take_snapshot(), Slic3r::GUI::texture_displacement_bake_volume(), Slic3r::GUI::GLGizmoPainterBase::update_contours(), anonymous_namespace{EmbossJob.cpp}::update_name_in_list(), Slic3r::GUI::ObjectList::update_name_in_model(), Slic3r::GUI::update_object_cut_id(), Slic3r::GUI::GLGizmoTextureDisplacement::v2_recommendation(), Slic3r::verify_update_print_object_regions(), wipe_tower_instance_id, and wipe_tower_object_id.
| bool Slic3r::GUI::GLGizmosManager::init | ( | ) |
References Assembly, BrimEars, Cut, Emboss, FdmSupports, Flatten, FuzzySkin, init_icon_textures(), m_background_texture, m_common_gizmos_data, m_current, m_gizmos, m_highlight, m_hover, m_is_dark, m_object_manipulation, m_parent, Measure, MeshBoolean, MmSegmentation, Move, Slic3r::resources_dir(), Rotate, Scale, Seam, Simplify, Slic3r::GUI::GLTexture::SingleThreaded, TextureDisplacement, and Undefined.
| bool Slic3r::GUI::GLGizmosManager::init_arrow | ( | const std::string & | filename | ) |
References m_arrow_texture, and Slic3r::resources_dir().
| bool Slic3r::GUI::GLGizmosManager::init_icon_textures | ( | ) |
References IC_ALIGN_X_CENTER, IC_ALIGN_X_CENTER_DARK, IC_ALIGN_X_MAX, IC_ALIGN_X_MAX_DARK, IC_ALIGN_X_MIN, IC_ALIGN_X_MIN_DARK, IC_ALIGN_Y_CENTER, IC_ALIGN_Y_CENTER_DARK, IC_ALIGN_Y_MAX, IC_ALIGN_Y_MAX_DARK, IC_ALIGN_Y_MIN, IC_ALIGN_Y_MIN_DARK, IC_ALIGN_Z_CENTER, IC_ALIGN_Z_CENTER_DARK, IC_ALIGN_Z_MAX, IC_ALIGN_Z_MAX_DARK, IC_ALIGN_Z_MIN, IC_ALIGN_Z_MIN_DARK, IC_CANVAS_MENU, IC_CANVAS_MENU_DARK, IC_CANVAS_MENU_DARK_HOVER, IC_CANVAS_MENU_HOVER, IC_CANVAS_SECTION, IC_CANVAS_SECTION_ACTIVE, IC_CANVAS_SECTION_ACTIVE_DARK, IC_CANVAS_SECTION_ACTIVE_DARK_HOVER, IC_CANVAS_SECTION_ACTIVE_HOVER, IC_CANVAS_SECTION_DARK, IC_CANVAS_SECTION_DARK_HOVER, IC_CANVAS_SECTION_HOVER, IC_CANVAS_ZOOM, IC_CANVAS_ZOOM_DARK, IC_CANVAS_ZOOM_DARK_HOVER, IC_CANVAS_ZOOM_HOVER, IC_DISTRIBUTE_X, IC_DISTRIBUTE_X_DARK, IC_DISTRIBUTE_Y, IC_DISTRIBUTE_Y_DARK, IC_DISTRIBUTE_Z, IC_DISTRIBUTE_Z_DARK, IC_TOOLBAR_RESET, IC_TOOLBAR_RESET_HOVER, IC_TOOLBAR_RESET_ZERO, IC_TOOLBAR_RESET_ZERO_HOVER, IC_TOOLBAR_TOOLTIP, IC_TOOLBAR_VIDEO_GUIDE, IC_TOOLBAR_WIKI_GUIDE, icon_list, Slic3r::GUI::IMTexture::load_from_svg_file(), and Slic3r::resources_dir().
Referenced by init().
| bool Slic3r::GUI::GLGizmosManager::is_allow_multi_select_parts_or_objects | ( | ) | const |
| bool Slic3r::GUI::GLGizmosManager::is_allow_select_all | ( | ) |
| bool Slic3r::GUI::GLGizmosManager::is_dragging | ( | ) | const |
|
inline |
| bool Slic3r::GUI::GLGizmosManager::is_hiding_instances | ( | ) | const |
References m_common_gizmos_data.
| bool Slic3r::GUI::GLGizmosManager::is_in_editing_mode | ( | bool | error_notification = false | ) | const |
References BrimEars, get_current(), and m_current.
| bool Slic3r::GUI::GLGizmosManager::is_paint_gizmo | ( | ) |
References FdmSupports, FuzzySkin, m_current, MmSegmentation, Seam, and TextureDisplacement.
| bool Slic3r::GUI::GLGizmosManager::is_running | ( | ) | const |
References m_current, m_enabled, and Undefined.
Referenced by Slic3r::GUI::Plater::priv::set_current_panel().
|
inline |
References activate_gizmo(), m_current, m_enabled, m_gizmos, m_serializing, and Undefined.
|
inlinestaticprivateinherited |
| void Slic3r::GUI::GLGizmosManager::on_change_color_mode | ( | bool | is_dark | ) |
| bool Slic3r::GUI::GLGizmosManager::on_char | ( | wxKeyEvent & | evt | ) |
References Assembly, Slic3r::GUI::Escape, gizmo_event(), m_current, m_parent, Measure, reset_all_states(), and Undefined.
| bool Slic3r::GUI::GLGizmosManager::on_delete_key | ( | ) |
References Assembly, Cut, Slic3r::GUI::Delete, gizmo_event(), m_current, m_parent, and Measure.
| bool Slic3r::GUI::GLGizmosManager::on_key | ( | wxKeyEvent & | evt | ) |
References Slic3r::GUI::AltUp, Assembly, BrimEars, Slic3r::GUI::CtrlDown, Slic3r::GUI::CtrlUp, Cut, Slic3r::GUI::GLGizmoMmuSegmentation::EXTRUDERS_LIMIT, Slic3r::GUI::KeyChord::from_event(), get_current(), gizmo_event(), Slic3r::GUI::GLGizmoBase::is_in_editing_mode(), Slic3r::GUI::GLGizmoBrimEars::is_selection_rectangle_dragging(), m_current, m_parent, m_pending_color_shortcut_tens, m_timer_set_color, Measure, MmSegmentation, Slic3r::GUI::GLGizmoMmuSegmentation::on_number_key_down(), Slic3r::GUI::Painting, Slic3r::GUI::GLGizmoCut3D::shift_cut(), Slic3r::GUI::ShiftDown, Slic3r::GUI::ShiftUp, and Simplify.
| bool Slic3r::GUI::GLGizmosManager::on_mouse | ( | const wxMouseEvent & | mouse_event | ) |
References gizmos_toolbar_on_mouse(), m_current, m_enabled, m_gizmos, m_parent, on_mouse(), Undefined, and Slic3r::GUI::wxMouseEvent.
Referenced by on_mouse().
| bool Slic3r::GUI::GLGizmosManager::on_mouse_wheel | ( | const wxMouseEvent & | evt | ) |
References BrimEars, FdmSupports, FuzzySkin, gizmo_event(), m_current, MmSegmentation, Slic3r::GUI::MouseWheelDown, Slic3r::GUI::MouseWheelUp, Seam, and Slic3r::GUI::wxMouseEvent.
|
private |
References get_current(), m_current, m_parent, m_pending_color_shortcut_tens, MmSegmentation, and Slic3r::GUI::GLGizmoMmuSegmentation::on_number_key_down().
Referenced by GLGizmosManager().
| bool Slic3r::GUI::GLGizmosManager::open_gizmo | ( | EType | type | ) |
References activate_gizmo(), m_current, m_gizmos, m_parent, Undefined, and update_data().
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_edit_svg(), Slic3r::GUI::MenuFactory::append_menu_item_edit_text(), Slic3r::GUI::GLGizmoSimplify::close(), anonymous_namespace{EmbossJob.cpp}::create_volume(), anonymous_namespace{EmbossJob.cpp}::CreateObjectJob::finalize(), gizmos_toolbar_on_mouse(), Slic3r::GUI::ObjectList::list_manipulation(), Slic3r::GUI::ObjectList::OnEditingStarted(), open_gizmo_by_shortcut(), Slic3r::GUI::ObjectList::part_selection_changed(), reset_all_states(), and Slic3r::GUI::ObjectList::simplify().
| bool Slic3r::GUI::GLGizmosManager::open_gizmo_by_shortcut | ( | Shortcut | shortcut | ) |
References Emboss, m_enabled, m_gizmos, m_parent, and open_gizmo().
| void Slic3r::GUI::GLGizmosManager::refresh_on_off_state | ( | ) |
References activate_gizmo(), m_current, m_gizmos, m_serializing, Undefined, and update_data().
| void Slic3r::GUI::GLGizmosManager::render_arrow | ( | const GLCanvas3D & | parent, |
| EType | highlighted_type ) const |
References get_scaled_total_height(), get_selectable_idxs(), m_arrow_texture, m_icons_texture, m_layout, m_parent, and Slic3r::GUI::GLTexture::render_sub_texture().
|
private |
References m_background_texture, and Slic3r::GUI::GLTexture::render_sub_texture().
Referenced by do_render_overlay().
| void Slic3r::GUI::GLGizmosManager::render_current_gizmo | ( | ) | const |
| void Slic3r::GUI::GLGizmosManager::render_overlay | ( | ) |
References do_render_overlay(), generate_icons_texture(), m_enabled, and m_icons_texture_dirty.
| void Slic3r::GUI::GLGizmosManager::render_overlay_input_window | ( | ) |
| void Slic3r::GUI::GLGizmosManager::render_painter_gizmo | ( | ) |
References get_current(), m_current, m_enabled, and Undefined.
Referenced by Slic3r::GUI::GLCanvas3D::_render_objects().
| void Slic3r::GUI::GLGizmosManager::reset_all_states | ( | ) |
References activate_gizmo(), get_current_type(), m_enabled, m_gizmos, m_serializing, open_gizmo(), and Undefined.
Referenced by Slic3r::GUI::ObjectList::del_info_item(), Slic3r::GUI::ObjectList::list_manipulation(), on_char(), Slic3r::GUI::ObjectList::OnEditingStarted(), and Slic3r::GUI::Plater::priv::set_current_panel().
|
inline |
|
inlineprivateinherited |
|
inline |
|
inline |
References m_highlight.
| void Slic3r::GUI::GLGizmosManager::set_hover_id | ( | int | id | ) |
|
inline |
References m_icons_texture_dirty.
|
inlineprotectedinherited |
References m_id.
Referenced by Slic3r::CutObjectBase::invalidate().
|
inlineprotectedinherited |
References generate_new_id(), and m_id.
Referenced by Slic3r::ModelVolume::ModelVolume(), Slic3r::Model::assign_new_unique_ids_recursive(), Slic3r::ModelVolume::assign_new_unique_ids_recursive(), 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().
| void Slic3r::GUI::GLGizmosManager::set_overlay_icon_size | ( | float | size | ) |
References m_icons_texture_dirty, and m_layout.
| void Slic3r::GUI::GLGizmosManager::set_overlay_scale | ( | float | scale | ) |
References m_icons_texture_dirty, m_layout, and scale().
| void Slic3r::GUI::GLGizmosManager::switch_gizmos_icon_filename | ( | ) |
References Assembly, BrimEars, Cut, Emboss, FdmSupports, Flatten, FuzzySkin, m_background_texture, m_gizmos, m_is_dark, Measure, MeshBoolean, MmSegmentation, Move, Slic3r::resources_dir(), Rotate, Scale, Seam, Slic3r::GUI::GLTexture::SingleThreaded, and TextureDisplacement.
|
inlinevirtualinherited |
Reimplemented in Slic3r::ModelConfigObject, and Slic3r::ObjectWithTimestamp.
| void Slic3r::GUI::GLGizmosManager::update_after_undo_redo | ( | const UndoRedo::Snapshot & | snapshot | ) |
References m_serializing, and update_data().
Referenced by Slic3r::GUI::Plater::priv::update_after_undo_redo().
| void Slic3r::GUI::GLGizmosManager::update_data | ( | ) |
Distribute information about different data into active gizmo Should be called when selection changed.
References Flatten, get_current(), Slic3r::GUI::Selection::is_empty(), m_common_gizmos_data, m_current, m_enabled, m_gizmos, m_object_manipulation, m_parent, m_serializing, Undefined, and update_section_view().
Referenced by open_gizmo(), refresh_on_off_state(), Slic3r::GUI::GizmoObjectManipulation::set_coordinates_type(), Slic3r::GUI::Plater::priv::set_current_panel(), and update_after_undo_redo().
|
private |
References Slic3r::GUI::GLGizmoBase::get_name(), Slic3r::GUI::GLGizmoBase::is_activable(), m_enabled, m_gizmos, m_hover, m_tooltip, and Undefined.
Referenced by gizmos_toolbar_on_mouse().
| void Slic3r::GUI::GLGizmosManager::update_section_view | ( | ) |
References BrimEars, FdmSupports, FuzzySkin, m_common_gizmos_data, m_current, m_parent, MmSegmentation, Seam, and Slic3r::GUI::CommonGizmosDataObjects::ObjectClipper::set_position_by_ratio().
Referenced by update_data().
| bool Slic3r::GUI::GLGizmosManager::wants_reslice_supports_on_undo | ( | ) | const |
Referenced by Slic3r::GUI::Plater::priv::undo_redo_to().
|
static |
|
staticprivate |
Referenced by get_icon_texture_id(), get_icon_texture_id(), and init_icon_textures().
|
private |
Referenced by init_arrow(), and render_arrow().
|
private |
Referenced by init(), render_background(), and switch_gizmos_icon_filename().
|
private |
Referenced by get_clipping_plane(), init(), is_hiding_instances(), update_data(), and update_section_view().
|
private |
Referenced by GLGizmosManager(), activate_gizmo(), do_render_overlay(), get_current(), get_current_type(), get_overlay_state_hash(), gizmo_event(), init(), is_allow_multi_select_parts_or_objects(), is_allow_select_all(), is_dragging(), is_in_editing_mode(), is_paint_gizmo(), is_running(), load(), on_char(), on_delete_key(), on_key(), on_mouse(), on_mouse_wheel(), on_set_color_timer(), open_gizmo(), refresh_on_off_state(), render_current_gizmo(), render_painter_gizmo(), save(), set_hover_id(), update_data(), and update_section_view().
|
private |
Referenced by GLGizmosManager(), get_gizmo_from_mouse(), get_overlay_state_hash(), gizmo_event(), gizmos_toolbar_on_mouse(), grabber_contains_mouse(), is_dragging(), is_enabled(), is_running(), load(), on_mouse(), open_gizmo_by_shortcut(), render_current_gizmo(), render_overlay(), render_overlay_input_window(), render_painter_gizmo(), reset_all_states(), save(), set_enabled(), set_hover_id(), update_data(), and update_hover_state().
|
private |
Referenced by activate_gizmo(), do_render_overlay(), generate_icons_texture(), get_current(), get_gizmo(), get_gizmo_from_name(), get_selectable_idxs(), gizmo_event(), gizmos_toolbar_on_mouse(), init(), is_dragging(), load(), on_mouse(), open_gizmo(), open_gizmo_by_shortcut(), refresh_on_off_state(), render_current_gizmo(), reset_all_states(), save(), set_hover_id(), switch_gizmos_icon_filename(), update_data(), and update_hover_state().
|
private |
Referenced by do_render_overlay(), get_highlight_state(), get_overlay_state_hash(), init(), and set_highlight().
|
private |
Referenced by GLGizmosManager(), do_render_overlay(), get_overlay_state_hash(), init(), and update_hover_state().
|
private |
Referenced by do_render_overlay(), generate_icons_texture(), and render_arrow().
|
private |
Referenced by GLGizmosManager(), generate_icons_texture(), render_overlay(), set_icon_dirty(), set_overlay_icon_size(), and set_overlay_scale().
|
privateinherited |
Referenced by ObjectBase(), ObjectBase(), ObjectBase(), copy_id(), id(), serialize(), set_invalid_id(), and set_new_unique_id().
|
private |
Referenced by init(), on_change_color_mode(), and switch_gizmos_icon_filename().
|
private |
|
private |
Referenced by GLGizmosManager(), get_object_manipulation(), get_uniform_scaling(), init(), and update_data().
|
private |
|
private |
Referenced by on_key(), and on_set_color_timer().
|
private |
Referenced by activate_gizmo().
|
private |
Referenced by GLGizmosManager(), activate_gizmo(), load(), refresh_on_off_state(), reset_all_states(), update_after_undo_redo(), and update_data().
|
private |
Referenced by GLGizmosManager(), and on_key().
|
private |
Referenced by GLGizmosManager(), get_tooltip(), and update_hover_state().
|
staticprivateinherited |
Referenced by generate_new_id().