#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Selection.hpp>
Classes | |
| struct | VolumeCache |
| class | Clipboard |
| struct | Cache |
| struct | Planes |
Public Types | |
| enum | EMode : unsigned char { Volume , Instance } |
| enum | EType : unsigned char { Invalid , Empty , WipeTower , SingleModifier , MultipleModifier , SingleVolume , MultipleVolume , SingleFullObject , MultipleFullObject , SingleFullInstance , MultipleFullInstance , Mixed } |
| enum class | SyncRotationType { NONE = 0 , GENERAL = 1 , RESET = 2 } |
| typedef std::set< unsigned int > | IndicesList |
| typedef std::map< unsigned int, VolumeCache > | VolumesCache |
| typedef std::set< int > | InstanceIdxsList |
| typedef std::map< int, InstanceIdxsList > | ObjectIdxsToInstanceIdxsMap |
Public Member Functions | |
| Selection () | |
| void | set_volumes (GLVolumePtrs *volumes) |
| bool | init () |
| bool | is_enabled () const |
| void | set_enabled (bool enable) |
| Model * | get_model () const |
| void | set_model (Model *model) |
| EMode | get_mode () const |
| void | set_mode (EMode mode) |
| int | query_real_volume_idx_from_other_view (unsigned int object_idx, unsigned int instance_idx, unsigned int model_volume_idx) |
| void | add (unsigned int volume_idx, bool as_single_selection=true, bool check_for_already_contained=false) |
| void | remove (unsigned int volume_idx) |
| void | add_object (unsigned int object_idx, bool as_single_selection=true) |
| void | remove_object (unsigned int object_idx) |
| void | add_instance (unsigned int object_idx, unsigned int instance_idx, bool as_single_selection=true) |
| void | remove_instance (unsigned int object_idx, unsigned int instance_idx) |
| void | add_volume (unsigned int object_idx, unsigned int volume_idx, int instance_idx, bool as_single_selection=true) |
| void | remove_volume (unsigned int object_idx, unsigned int volume_idx) |
| void | add_volumes (EMode mode, const std::vector< unsigned int > &volume_idxs, bool as_single_selection=true) |
| void | remove_volumes (EMode mode, const std::vector< unsigned int > &volume_idxs) |
| ModelVolume * | get_selected_single_volume (int &out_object_idx, int &out_volume_idx) const |
| ModelObject * | get_selected_single_object (int &out_object_idx) const |
| const ModelInstance * | get_selected_single_intance () const |
| void | add_curr_plate () |
| void | add_object_from_idx (std::vector< int > &object_idxs) |
| void | remove_curr_plate () |
| void | clone (int numbers=1) |
| void | center () |
| void | drop () |
| bool | can_drop () const |
| double | get_drop_min_z () const |
| void | center_plate (const int plate_idx) |
| void | set_printable (bool printable) |
| bool | get_auto_drop () const |
| void | set_auto_drop (bool enabled) |
| void | add_all () |
| void | remove_all () |
| void | set_deserialized (EMode mode, const std::vector< std::pair< size_t, size_t > > &volumes_and_instances) |
| void | instances_changed (const std::vector< size_t > &instance_ids_selected) |
| void | volumes_changed (const std::vector< size_t > &map_volume_old_to_new) |
| void | clear () |
| bool | is_empty () const |
| bool | is_wipe_tower () const |
| bool | is_any_modifier () const |
| bool | is_single_modifier () const |
| bool | is_multiple_modifier () const |
| bool | is_single_full_instance () const |
| bool | is_multiple_full_instance () const |
| bool | is_single_full_object () const |
| bool | is_multiple_full_object () const |
| bool | is_single_volume () const |
| bool | is_multiple_volume () const |
| bool | is_any_volume () const |
| bool | is_any_connector () const |
| bool | is_any_cut_volume () const |
| bool | is_mixed () const |
| bool | is_from_single_instance () const |
| bool | is_from_single_object () const |
| bool | is_sla_compliant () const |
| bool | is_instance_mode () const |
| bool | is_single_volume_or_modifier () const |
| bool | is_single_volume_instance () const |
| bool | is_single_text () const |
| bool | contains_volume (unsigned int volume_idx) const |
| bool | contains_all_volumes (const std::vector< unsigned int > &volume_idxs) const |
| bool | contains_any_volume (const std::vector< unsigned int > &volume_idxs) const |
| bool | contains_sinking_volumes (bool ignore_modifiers=true) const |
| bool | matches (const std::vector< unsigned int > &volume_idxs) const |
| bool | requires_uniform_scale () const |
| int | get_object_idx () const |
| int | get_instance_idx () const |
| const InstanceIdxsList & | get_instance_idxs () const |
| const IndicesList & | get_volume_idxs () const |
| const GLVolume * | get_volume (unsigned int volume_idx) const |
| const GLVolume * | get_first_volume () const |
| GLVolume * | get_volume (unsigned int volume_idx) |
| const ObjectIdxsToInstanceIdxsMap & | get_content () const |
| unsigned int | volumes_count () const |
| const BoundingBoxf3 & | get_bounding_box () const |
| const BoundingBoxf3 & | get_unscaled_instance_bounding_box () const |
| const BoundingBoxf3 & | get_scaled_instance_bounding_box () const |
| const BoundingBoxf3 & | get_full_unscaled_instance_bounding_box () const |
| const BoundingBoxf3 & | get_full_scaled_instance_bounding_box () const |
| const BoundingBoxf3 & | get_full_unscaled_instance_local_bounding_box () const |
| const std::pair< BoundingBoxf3, Transform3d > & | get_bounding_box_in_current_reference_system () const |
| std::pair< BoundingBoxf3, Transform3d > | get_bounding_box_in_reference_system (ECoordinatesType type) const |
| const std::pair< Vec3d, double > | get_bounding_sphere () const |
| void | setup_cache () |
| void | translate (const Vec3d &displacement, TransformationType transformation_type) |
| void | move_to_center (const Vec3d &displacement, bool local=false) |
| void | rotate (const Vec3d &rotation, TransformationType transformation_type) |
| void | flattening_rotate (const Vec3d &normal) |
| void | scale (const Vec3d &scale, TransformationType transformation_type) |
| void | scale_to_fit_print_volume (const DynamicPrintConfig &config) |
| void | scale_and_translate (const Vec3d &scale, const Vec3d &world_translation, TransformationType transformation_type) |
| void | mirror (Axis axis, TransformationType transformation_type) |
| void | translate (unsigned int object_idx, const Vec3d &displacement) |
| void | translate (unsigned int object_idx, unsigned int instance_idx, const Vec3d &displacement) |
| void | translate (unsigned int object_idx, unsigned int instance_idx, unsigned int volume_idx, const Vec3d &displacement, bool local=true) |
| void | rotate (unsigned int object_idx, unsigned int instance_idx, const Transform3d &overwrite_tran) |
| void | rotate (unsigned int object_idx, unsigned int instance_idx, unsigned int volume_idx, const Transform3d &overwrite_tran) |
| void | notify_instance_update (int object_idx, int instance_idx) |
| EMode | get_volume_selection_mode () |
| void | set_volume_selection_mode (EMode mode) |
| void | lock_volume_selection_mode () |
| void | unlock_volume_selection_mode () |
| void | erase () |
| void | render (float scale_factor=1.0) |
| void | render_sidebar_hints (const std::string &sidebar_field, bool uniform_scale) |
| bool | requires_local_axes () const |
| void | render_bounding_box (const BoundingBoxf3 &box, const ColorRGB &color, float scale) |
| void | render_bounding_box (const BoundingBoxf3 &box, const Transform3d &trafo, const ColorRGB &color, float scale) |
| void | cut_to_clipboard () |
| void | copy_to_clipboard () |
| void | paste_from_clipboard () |
| std::set< std::pair< int, int > > | get_selected_object_instances () |
| const Clipboard & | get_clipboard () const |
| void | fill_color (int extruder_id) |
| std::vector< unsigned int > | get_volume_idxs_from_object (unsigned int object_idx) const |
| std::vector< unsigned int > | get_volume_idxs_from_instance (unsigned int object_idx, unsigned int instance_idx) const |
| std::vector< unsigned int > | get_volume_idxs_from_volume (unsigned int object_idx, unsigned int instance_idx, unsigned int volume_idx) const |
| std::vector< unsigned int > | get_volume_idxs_from_plate (const int plate_idx) const |
| std::vector< unsigned int > | get_missing_volume_idxs_from (const std::vector< unsigned int > &volume_idxs) const |
| std::vector< unsigned int > | get_unselected_volume_idxs_from (const std::vector< unsigned int > &volume_idxs) const |
| void | synchronize_unselected_instances (SyncRotationType sync_rotation_type) |
| void | synchronize_unselected_volumes () |
Private Member Functions | |
| void | update_valid () |
| void | update_type () |
| void | set_caches () |
| void | do_add_volume (unsigned int volume_idx) |
| void | do_add_volumes (const std::vector< unsigned int > &volume_idxs) |
| void | do_remove_volume (unsigned int volume_idx) |
| void | do_remove_instance (unsigned int object_idx, unsigned int instance_idx) |
| void | do_remove_object (unsigned int object_idx) |
| void | set_bounding_boxes_dirty () |
| void | render_synchronized_volumes () |
| void | render_bounding_box (const BoundingBoxf3 &box, const Transform3d &trafo, const bool auto_drop, const ColorRGB &color) |
| void | render_sidebar_position_hints (const std::string &sidebar_field, GLShaderProgram &shader, const Transform3d &matrix) |
| void | render_sidebar_rotation_hints (const std::string &sidebar_field, GLShaderProgram &shader, const Transform3d &matrix) |
| void | render_sidebar_scale_hints (const std::string &sidebar_field, bool gizmo_uniform_scale, GLShaderProgram &shader, const Transform3d &matrix) |
| void | render_sidebar_layers_hints (const std::string &sidebar_field, GLShaderProgram &shader) |
| void | ensure_on_bed () |
| void | ensure_not_below_bed () |
| bool | is_from_fully_selected_instance (unsigned int volume_idx) const |
| void | paste_volumes_from_clipboard () |
| void | paste_objects_from_clipboard () |
| void | transform_instance_relative (GLVolume &volume, const VolumeCache &volume_data, TransformationType transformation_type, const Transform3d &transform, const Vec3d &world_pivot) |
| void | transform_volume_relative (GLVolume &volume, const VolumeCache &volume_data, TransformationType transformation_type, const Transform3d &transform, const Vec3d &world_pivot) |
Private Attributes | |
| GLVolumePtrs * | m_volumes |
| Model * | m_model |
| bool | m_enabled |
| bool | m_valid |
| EMode | m_mode |
| EType | m_type |
| IndicesList | m_list |
| Cache | m_cache |
| Clipboard | m_clipboard |
| std::optional< BoundingBoxf3 > | m_bounding_box |
| std::optional< BoundingBoxf3 > | m_unscaled_instance_bounding_box |
| std::optional< BoundingBoxf3 > | m_scaled_instance_bounding_box |
| std::optional< BoundingBoxf3 > | m_full_unscaled_instance_bounding_box |
| std::optional< BoundingBoxf3 > | m_full_scaled_instance_bounding_box |
| std::optional< BoundingBoxf3 > | m_full_unscaled_instance_local_bounding_box |
| std::optional< std::pair< BoundingBoxf3, Transform3d > > | m_bounding_box_in_current_reference_system |
| std::optional< std::pair< Vec3d, double > > | m_bounding_sphere |
| GLModel | m_arrow |
| GLModel | m_curved_arrow |
| GLModel | m_box |
| bool | m_auto_drop = true |
| Planes | m_planes |
| float | m_scale_factor |
| EMode | m_volume_selection_mode { Instance } |
| bool | m_volume_selection_locked { false } |
| struct Slic3r::GUI::Selection::Cache |
| Class Members | ||
|---|---|---|
| ObjectIdxsToInstanceIdxsMap | content | |
| Vec3d | dragging_center | |
| Vec3d | rotation_pivot | |
| vector< unsigned int > | sinking_volumes | |
| VolumesCache | volumes_data | |
| struct Slic3r::GUI::Selection::Planes |
| typedef std::set<unsigned int> Slic3r::GUI::Selection::IndicesList |
| typedef std::set<int> Slic3r::GUI::Selection::InstanceIdxsList |
| typedef std::map<int, InstanceIdxsList> Slic3r::GUI::Selection::ObjectIdxsToInstanceIdxsMap |
| typedef std::map<unsigned int, VolumeCache> Slic3r::GUI::Selection::VolumesCache |
| enum Slic3r::GUI::Selection::EMode : unsigned char |
| enum Slic3r::GUI::Selection::EType : unsigned char |
| Enumerator | |
|---|---|
| Invalid | |
| Empty | |
| WipeTower | |
| SingleModifier | |
| MultipleModifier | |
| SingleVolume | |
| MultipleVolume | |
| SingleFullObject | |
| MultipleFullObject | |
| SingleFullInstance | |
| MultipleFullInstance | |
| Mixed | |
|
strong |
| Slic3r::GUI::Selection::Selection | ( | ) |
References Empty, Instance, m_enabled, m_mode, m_model, m_scale_factor, m_type, m_valid, m_volumes, and set_bounding_boxes_dirty().
| void Slic3r::GUI::Selection::add | ( | unsigned int | volume_idx, |
| bool | as_single_selection = true, | ||
| bool | check_for_already_contained = false ) |
References add_instance(), clear(), contains_volume(), do_add_volume(), get_instance_idx(), Instance, Slic3r::GLVolume::instance_idx(), is_any_modifier(), is_any_volume(), is_empty(), is_wipe_tower(), m_list, m_mode, m_valid, m_volume_selection_mode, m_volumes, Slic3r::GLVolume::object_idx(), Slic3r::GUI::plater(), Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), update_type(), Volume, and Slic3r::GLVolume::volume_idx().
Referenced by Slic3r::GUI::Plater::priv::reload_all_from_disk(), and Slic3r::GUI::Plater::priv::set_current_panel().
| void Slic3r::GUI::Selection::add_all | ( | ) |
References clear(), count, do_add_volume(), Instance, is_wipe_tower(), m_list, m_mode, m_valid, m_volumes, Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), and update_type().
| void Slic3r::GUI::Selection::add_curr_plate | ( | ) |
References clear(), do_add_volumes(), get_volume_idxs_from_plate(), Instance, m_mode, m_valid, Slic3r::GUI::plater(), set_bounding_boxes_dirty(), and update_type().
| void Slic3r::GUI::Selection::add_instance | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| bool | as_single_selection = true ) |
References clear(), contains_all_volumes(), do_add_volumes(), get_volume_idxs_from_instance(), Instance, m_mode, m_valid, matches(), Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), and update_type().
Referenced by add().
| void Slic3r::GUI::Selection::add_object | ( | unsigned int | object_idx, |
| bool | as_single_selection = true ) |
References clear(), contains_all_volumes(), do_add_volumes(), get_volume_idxs_from_object(), Instance, m_mode, m_valid, matches(), Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), and update_type().
Referenced by Slic3r::GUI::Plater::_calib_pa_select_added_objects(), Slic3r::GUI::GLGizmoSimplify::add_simplify_suggestion_notification(), Slic3r::GUI::Plater::apply_cut_object_to_model(), Slic3r::GUI::Plater::convert_unit(), and Slic3r::GUI::Plater::priv::split_object().
| void Slic3r::GUI::Selection::add_object_from_idx | ( | std::vector< int > & | object_idxs | ) |
References clear(), do_add_volumes(), get_volume_idxs_from_object(), Instance, m_mode, m_valid, set_bounding_boxes_dirty(), and update_type().
| void Slic3r::GUI::Selection::add_volume | ( | unsigned int | object_idx, |
| unsigned int | volume_idx, | ||
| int | instance_idx, | ||
| bool | as_single_selection = true ) |
References clear(), contains_all_volumes(), do_add_volumes(), get_volume_idxs_from_volume(), m_mode, m_valid, matches(), set_bounding_boxes_dirty(), update_type(), and Volume.
Referenced by Slic3r::GUI::Plater::convert_unit().
| void Slic3r::GUI::Selection::add_volumes | ( | EMode | mode, |
| const std::vector< unsigned int > & | volume_idxs, | ||
| bool | as_single_selection = true ) |
References clear(), contains_all_volumes(), do_add_volume(), m_mode, m_valid, m_volumes, matches(), set_bounding_boxes_dirty(), and update_type().
Referenced by Slic3r::GUI::ObjectList::update_selections_on_canvas().
| bool Slic3r::GUI::Selection::can_drop | ( | ) | const |
References get_drop_min_z(), and Slic3r::SINKING_Z_THRESHOLD.
Referenced by Slic3r::GUI::anonymous_namespace{NativeCommands.cpp}::build_command_catalog(), and Slic3r::GUI::GizmoObjectManipulation::update_reset_buttons_visibility().
| void Slic3r::GUI::Selection::center | ( | ) |
References Slic3r::BoundingBox3Base< PointType >::center(), get_bounding_box(), Slic3r::GUI::PartPlate::get_center_origin(), L, and move_to_center().
Referenced by get_bounding_box_in_reference_system(), render_sidebar_hints(), and scale_to_fit_print_volume().
| void Slic3r::GUI::Selection::center_plate | ( | const int | plate_idx | ) |
References Slic3r::BoundingBox3Base< PointType >::center(), get_bounding_box(), Slic3r::GUI::PartPlate::get_center_origin(), L, and move_to_center().
| void Slic3r::GUI::Selection::clear | ( | ) |
References Slic3r::GLVolume::color, Slic3r::ColorRGBA::is_transparent(), m_list, m_valid, set_bounding_boxes_dirty(), Slic3r::GLVolume::set_render_color(), and update_type().
Referenced by Slic3r::GUI::Plater::_calib_pa_select_added_objects(), add(), add_all(), add_curr_plate(), add_instance(), add_object(), add_object_from_idx(), Slic3r::GUI::GLGizmoSimplify::add_simplify_suggestion_notification(), add_volume(), add_volumes(), Slic3r::GUI::Plater::priv::reload_all_from_disk(), remove_all(), remove_curr_plate(), Slic3r::GUI::Plater::priv::set_current_panel(), Slic3r::GUI::Plater::priv::update_after_undo_redo(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
| void Slic3r::GUI::Selection::clone | ( | int | numbers = 1 | ) |
References copy_to_clipboard(), and paste_from_clipboard().
| bool Slic3r::GUI::Selection::contains_all_volumes | ( | const std::vector< unsigned int > & | volume_idxs | ) | const |
References m_list.
Referenced by add_instance(), add_object(), add_volume(), add_volumes(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
| bool Slic3r::GUI::Selection::contains_any_volume | ( | const std::vector< unsigned int > & | volume_idxs | ) | const |
| bool Slic3r::GUI::Selection::contains_sinking_volumes | ( | bool | ignore_modifiers = true | ) | const |
|
inline |
| void Slic3r::GUI::Selection::copy_to_clipboard | ( | ) |
References Slic3r::ModelObject::add_instance(), Slic3r::ModelObject::add_volume(), Slic3r::LayerHeightProfile::assign(), Slic3r::ModelConfig::assign_config(), Slic3r::ModelObject::brim_points, Slic3r::ModelObject::config, Slic3r::ModelObject::input_file, Slic3r::GLVolume::instance_idx(), Slic3r::ModelObject::instances, Slic3r::ModelObject::layer_config_ranges, Slic3r::ModelObject::layer_height_profile, m_cache, m_clipboard, m_list, m_mode, m_model, m_valid, Slic3r::ModelObject::name, Slic3r::GLVolume::object_idx(), Slic3r::ModelObject::origin_translation, Slic3r::ModelVolume::set_new_unique_id(), Slic3r::ModelObject::sla_drain_holes, Slic3r::ModelObject::sla_points_status, Slic3r::ModelObject::sla_support_points, Slic3r::GLVolume::volume_idx(), and Slic3r::ModelObject::volumes.
Referenced by Slic3r::GUI::CloneDialog::CloneDialog(), clone(), and cut_to_clipboard().
| void Slic3r::GUI::Selection::cut_to_clipboard | ( | ) |
References copy_to_clipboard(), and erase().
|
private |
References Slic3r::GLVolume::hover, Slic3r::GLVolume::HS_Deselect, Slic3r::GLVolume::HS_Hover, Slic3r::GLVolume::HS_Select, and m_list.
Referenced by add(), add_all(), add_volumes(), do_add_volumes(), instances_changed(), and set_deserialized().
|
private |
References do_add_volume(), and m_volumes.
Referenced by add_curr_plate(), add_instance(), add_object(), add_object_from_idx(), add_volume(), and remove_curr_plate().
|
private |
References do_remove_volume(), Slic3r::GLVolume::instance_idx(), m_volumes, and Slic3r::GLVolume::object_idx().
Referenced by remove(), and remove_instance().
|
private |
References do_remove_volume(), m_volumes, and Slic3r::GLVolume::object_idx().
Referenced by remove_object().
|
private |
References m_list.
Referenced by do_remove_instance(), do_remove_object(), remove(), remove_volume(), and remove_volumes().
| void Slic3r::GUI::Selection::drop | ( | ) |
References get_drop_min_z(), L, Slic3r::GUI::TransformationType::set_relative(), setup_cache(), Slic3r::SINKING_Z_THRESHOLD, and translate().
|
private |
References Slic3r::GLVolume::get_volume_offset(), Slic3r::GLVolume::instance_idx(), is_any_volume(), m_list, m_volumes, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::max, Slic3r::GLVolume::object_idx(), Slic3r::GLVolume::set_volume_offset(), Slic3r::SINKING_MIN_Z_THRESHOLD, Slic3r::GLVolume::transformed_convex_hull_bounding_box(), and Slic3r::Z.
Referenced by erase(), and translate().
|
private |
References Slic3r::ModelObject::auto_drop, Slic3r::GLVolume::instance_idx(), m_cache, m_model, m_volumes, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::min, Slic3r::GLVolume::object_idx(), Slic3r::GLVolume::transformed_convex_hull_bounding_box(), and Slic3r::Z.
| void Slic3r::GUI::Selection::erase | ( | ) |
References ensure_not_below_bed(), get_instance_idx(), get_object_idx(), is_mixed(), is_multiple_full_instance(), is_multiple_full_object(), is_single_full_instance(), is_single_full_object(), Slic3r::GUI::itInstance, Slic3r::GUI::itObject, Slic3r::GUI::itVolume, m_cache, m_list, m_model, m_valid, Slic3r::GLVolume::object_idx(), and Slic3r::GLVolume::volume_idx().
Referenced by cut_to_clipboard(), and remove_curr_plate().
| void Slic3r::GUI::Selection::fill_color | ( | int | extruder_id | ) |
| void Slic3r::GUI::Selection::flattening_rotate | ( | const Vec3d & | normal | ) |
References GENERAL, Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::Geometry::Transformation::get_offset_matrix(), Instance, Slic3r::is_approx(), Slic3r::lay_on_face_rotation(), m_list, m_mode, m_valid, Slic3r::normal(), set_bounding_boxes_dirty(), Slic3r::GLVolume::set_instance_transformation(), and synchronize_unselected_instances().
Referenced by Slic3r::GUI::GLGizmoFlatten::on_mouse().
| bool Slic3r::GUI::Selection::get_auto_drop | ( | ) | const |
References Slic3r::ModelObject::auto_drop, is_wipe_tower(), m_cache, m_model, and m_valid.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_set_auto_drop(), render(), render_bounding_box(), render_bounding_box(), and render_synchronized_volumes().
| const BoundingBoxf3 & Slic3r::GUI::Selection::get_bounding_box | ( | ) | const |
References m_bounding_box, m_list, m_valid, and m_volumes.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_center(), Slic3r::GUI::MenuFactory::append_menu_items_flush_options(), center(), center_plate(), get_drop_min_z(), Slic3r::GUI::GLGizmoMove3D::get_tooltip(), render_sidebar_hints(), render_sidebar_layers_hints(), scale_to_fit_print_volume(), set_caches(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
| const std::pair< BoundingBoxf3, Transform3d > & Slic3r::GUI::Selection::get_bounding_box_in_current_reference_system | ( | ) | const |
References get_bounding_box_in_reference_system(), Instance, is_empty(), Slic3r::GUI::Local, m_bounding_box_in_current_reference_system, m_mode, and Slic3r::GUI::World.
Referenced by Slic3r::GUI::GLGizmoRotate::init_data_from_selection(), Slic3r::GUI::GLGizmoMove3D::on_render(), render(), render_sidebar_hints(), scale_and_translate(), Slic3r::GUI::GLGizmoScale3D::update_grabbers_data(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
| std::pair< BoundingBoxf3, Transform3d > Slic3r::GUI::Selection::get_bounding_box_in_reference_system | ( | ECoordinatesType | type | ) | const |
References center(), Slic3r::GLVolume::convex_hull(), get_first_volume(), Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::Geometry::Transformation::get_matrix_no_scaling_factor(), get_volume(), Slic3r::GUI::Instance, Slic3r::TriangleMesh::its, Slic3r::GUI::Local, m_list, m_model, Slic3r::GLVolume::object_idx(), Slic3r::Geometry::Transformation::reset_scaling_factor(), Slic3r::Geometry::Transformation::set_offset(), Slic3r::GLVolume::volume_idx(), Slic3r::GUI::World, and Slic3r::GLVolume::world_matrix().
Referenced by get_bounding_box_in_current_reference_system(), and Slic3r::GUI::GLGizmoRotate::init_data_from_selection().
| const std::pair< Vec3d, double > Slic3r::GUI::Selection::get_bounding_sphere | ( | ) | const |
References Slic3r::GLVolume::convex_hull(), Slic3r::TriangleMesh::its, Slic3r::GUI::K, m_bounding_sphere, m_list, m_model, m_valid, Slic3r::GLVolume::object_idx(), Slic3r::GLVolume::volume_idx(), and Slic3r::GLVolume::world_matrix().
Referenced by Slic3r::GUI::GLGizmoRotate::init_data_from_selection(), and set_caches().
|
inline |
References m_clipboard.
Referenced by Slic3r::GUI::Plater::can_paste_from_clipboard().
|
inline |
References m_cache.
Referenced by Slic3r::GUI::GLGizmoAlignment::get_items_count(), Slic3r::GUI::GLGizmoAlignment::get_parent_box(), Slic3r::GUI::GLGizmoAlignment::get_selected_objects_info(), Slic3r::GUI::GLGizmoAlignment::is_parts_selection(), Slic3r::GUI::Plater::show_object_info(), and Slic3r::GUI::ObjectList::update_selections().
| double Slic3r::GUI::Selection::get_drop_min_z | ( | ) | const |
References get_bounding_box(), m_cache, m_mode, m_model, m_valid, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::min, and Volume.
Referenced by can_drop(), and drop().
|
inline |
References get_volume(), and m_list.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_edit_svg(), Slic3r::GUI::MenuFactory::append_menu_item_edit_text(), Slic3r::GUI::calc_angle(), Slic3r::GUI::GLGizmoSVG::calculate_scale(), Slic3r::GUI::GLGizmoRotate3D::data_changed(), Slic3r::GUI::do_local_z_rotate(), Slic3r::GUI::dragging_rotate_gizmo(), Slic3r::GUI::Plater::export_stl(), get_bounding_box_in_reference_system(), Slic3r::GUI::GLGizmoCut3D::get_cut_matrix(), get_selected_single_object(), get_selected_single_volume(), Slic3r::GUI::GLGizmoScale3D::get_tooltip(), Slic3r::GUI::SceneRaycaster::hit(), anonymous_namespace{GLGizmoEmboss.cpp}::init_text_lines(), Slic3r::GUI::ObjectList::load_generic_subobject(), Slic3r::GUI::ObjectList::load_modifier(), Slic3r::GUI::GLGizmoFlatten::on_register_raycasters_for_picking(), Slic3r::GUI::GLGizmoFlatten::on_render(), Slic3r::GUI::GLGizmoMove3D::on_render(), Slic3r::GUI::Plater::priv::on_right_click(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::on_update(), Slic3r::GUI::GLGizmoAlignment::reference_basis(), Slic3r::GUI::Plater::priv::replace_with_stl(), Slic3r::GUI::GizmoObjectManipulation::reset_position_value(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), Slic3r::GUI::GLGizmoCut3D::transformed_bounding_box(), Slic3r::GUI::GLGizmoPainterBase::update_contours(), Slic3r::GUI::GLGizmoScale3D::update_grabbers_data(), Slic3r::GUI::GizmoObjectManipulation::update_reset_buttons_visibility(), Slic3r::GUI::ObjectList::update_selections(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
| const BoundingBoxf3 & Slic3r::GUI::Selection::get_full_scaled_instance_bounding_box | ( | ) | const |
References Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::GLVolume::get_sla_shift_z(), Slic3r::GLVolume::get_volume_transformation(), is_single_full_instance(), m_full_scaled_instance_bounding_box, m_list, m_valid, and Slic3r::GLVolume::transformed_convex_hull_bounding_box().
| const BoundingBoxf3 & Slic3r::GUI::Selection::get_full_unscaled_instance_bounding_box | ( | ) | const |
References Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::Geometry::Transformation::get_matrix_no_scaling_factor(), Slic3r::GLVolume::get_sla_shift_z(), Slic3r::GLVolume::get_volume_transformation(), is_single_full_instance(), m_full_unscaled_instance_bounding_box, m_list, m_valid, and Slic3r::GLVolume::transformed_convex_hull_bounding_box().
Referenced by Slic3r::GUI::GizmoObjectManipulation::change_size_value(), and scale_and_translate().
| const BoundingBoxf3 & Slic3r::GUI::Selection::get_full_unscaled_instance_local_bounding_box | ( | ) | const |
References Slic3r::Geometry::Transformation::get_matrix(), Slic3r::GLVolume::get_sla_shift_z(), Slic3r::GLVolume::get_volume_transformation(), is_single_full_instance(), m_full_unscaled_instance_local_bounding_box, m_list, m_valid, and Slic3r::GLVolume::transformed_convex_hull_bounding_box().
Referenced by Slic3r::GUI::GizmoObjectManipulation::change_size_value(), scale_and_translate(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
| int Slic3r::GUI::Selection::get_instance_idx | ( | ) | const |
References m_cache.
Referenced by add(), Slic3r::GUI::GLGizmoTextureDisplacement::apply_projection_frame(), Slic3r::GUI::GLGizmoTextureDisplacement::capture_view_projection(), Slic3r::GUI::GLGizmoFlatten::data_changed(), erase(), Slic3r::GUI::Plater::export_stl(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::get_active_instance(), Slic3r::GUI::GLGizmoCut3D::get_cut_matrix(), Slic3r::GUI::GLGizmoAlignment::get_parent_box(), Slic3r::GUI::GLGizmoPainterBase::get_projected_height_range(), get_selected_single_intance(), Slic3r::GUI::GLGizmoPainterBase::gizmo_event(), is_from_single_instance(), is_single_full_instance(), Slic3r::GUI::GLGizmoPainterBase::mesh_trafo_matrices(), Slic3r::GUI::GLGizmoTextureDisplacement::on_mouse_adjust_texture(), Slic3r::GUI::GLGizmoBrimEars::on_render(), paste_volumes_from_clipboard(), Slic3r::GUI::GLGizmoCut3D::perform_cut(), Slic3r::GUI::GLGizmoCut3D::process_contours(), Slic3r::GUI::GLGizmoTextureDisplacement::render_adjust_texture_gizmo(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_height_range(), Slic3r::GUI::GLGizmoTextureDisplacement::render_island_overlay(), Slic3r::GUI::GLGizmoTextureDisplacement::render_paint_overlay(), Slic3r::GUI::GLGizmoTextureDisplacement::render_painted_colors(), Slic3r::GUI::GLGizmoTextureDisplacement::render_painter_gizmo(), Slic3r::GUI::GLGizmoTextureDisplacement::render_preview_mesh(), Slic3r::GUI::GLGizmoTextureDisplacement::render_seam_overlay(), Slic3r::GUI::GLGizmoTextureDisplacement::render_shaded_preview_mesh(), Slic3r::GUI::GLGizmoTextureDisplacement::render_subdivide_preview(), Slic3r::GUI::GLGizmoPainterBase::render_triangles(), Slic3r::GUI::GLGizmoTextureDisplacement::render_uvcheck_mesh(), Slic3r::GUI::GLGizmoTextureDisplacement::render_wireframe_overlay(), Slic3r::GUI::GLGizmoTextureDisplacement::seam_edge_at(), Slic3r::GUI::GLGizmoTextureDisplacement::seam_vertex_at(), Slic3r::GUI::GLGizmoFdmSupports::select_facets_by_angle(), Slic3r::GUI::GLGizmoTextureDisplacement::select_visible_faces(), Slic3r::GUI::Plater::show_object_info(), Slic3r::GUI::ObjectList::split_instances(), Slic3r::GUI::GLGizmoCut3D::toggle_model_objects_visibility(), Slic3r::GUI::GLGizmoPainterBase::update_contours(), Slic3r::GUI::ObjectList::update_selections(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
| const Selection::InstanceIdxsList & Slic3r::GUI::Selection::get_instance_idxs | ( | ) | const |
References m_cache.
Referenced by Slic3r::GUI::ObjectList::load_generic_subobject(), Slic3r::GUI::ObjectList::load_modifier(), Slic3r::GUI::ObjectList::split_instances(), and Slic3r::GUI::ObjectList::update_selections().
| std::vector< unsigned int > Slic3r::GUI::Selection::get_missing_volume_idxs_from | ( | const std::vector< unsigned int > & | volume_idxs | ) | const |
References m_list.
Referenced by Slic3r::GUI::ObjectList::update_selections_on_canvas().
|
inline |
References m_mode.
Referenced by Slic3r::GUI::Plater::can_paste_from_clipboard(), Slic3r::GUI::Plater::export_stl(), Slic3r::GUI::GLGizmoAlignment::get_items_count(), Slic3r::GUI::GLGizmoAlignment::get_selected_part_volumes(), Slic3r::GUI::GLGizmoAlignment::is_parts_selection(), Slic3r::GUI::Plater::show_object_info(), Slic3r::UndoRedo::StackImpl::take_snapshot(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
|
inline |
References m_model.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_edit_svg(), Slic3r::GUI::MenuFactory::append_menu_item_edit_text(), Slic3r::GUI::calc_angle(), Slic3r::GUI::calc_surface_offset(), Slic3r::GUI::GLGizmoSVG::calculate_scale(), Slic3r::GUI::GLGizmoFlatten::data_changed(), Slic3r::GUI::do_local_z_rotate(), Slic3r::GUI::GLGizmoCut3D::get_cut_matrix(), anonymous_namespace{SurfaceDrag.cpp}::get_fix_transformation(), Slic3r::GUI::GLGizmoAlignment::get_items_count(), Slic3r::GUI::GLGizmoAlignment::get_parent_box(), Slic3r::GUI::GLGizmoAlignment::get_selected_objects_info(), Slic3r::GUI::GLGizmoAlignment::get_selected_part_volumes(), get_selected_single_object(), get_selected_single_volume(), Slic3r::GUI::get_selected_volume(), Slic3r::GUI::get_selected_volume(), Slic3r::GUI::get_volume(), Slic3r::GUI::GLGizmoMeasure::init_plane_glmodel(), anonymous_namespace{GLGizmoEmboss.cpp}::init_text_lines(), Slic3r::GUI::GLGizmoBrimEars::on_render(), Slic3r::GUI::GLGizmoEmboss::on_render(), Slic3r::GUI::Plater::priv::on_right_click(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::on_update(), Slic3r::GUI::GLGizmoCut3D::process_contours(), Slic3r::GUI::GLGizmoMeasure::register_single_mesh_pick(), Slic3r::GUI::Plater::priv::replace_all_with_stl(), Slic3r::GUI::GLGizmoSVG::set_volume_by_selection(), Slic3r::GUI::ObjectList::set_volume_type(), Slic3r::GUI::Emboss::start_create_volume_without_position(), Slic3r::GUI::GLGizmoCut3D::toggle_model_objects_visibility(), and Slic3r::GUI::world_matrix_fixed().
| int Slic3r::GUI::Selection::get_object_idx | ( | ) | const |
References m_cache.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_settings(), Slic3r::GUI::MenuFactory::append_menu_items_flush_options(), Slic3r::GUI::GLGizmoSimplify::apply_simplify(), Slic3r::GUI::GLGizmoFlatten::data_changed(), erase(), Slic3r::GUI::Plater::export_stl(), Slic3r::GUI::GLGizmoCut3D::get_cut_matrix(), Slic3r::GUI::Plater::priv::get_export_file_path(), Slic3r::GUI::GLGizmoAlignment::get_parent_box(), Slic3r::GUI::get_selected_gl_volume(), Slic3r::GUI::Plater::priv::get_selected_object_idx(), Slic3r::GUI::GLGizmoAlignment::get_selected_part_volumes(), is_any_connector(), is_any_cut_volume(), is_from_single_object(), is_single_full_instance(), Slic3r::GUI::ObjectList::layers_editing(), Slic3r::GUI::ObjectList::load_generic_subobject(), Slic3r::GUI::ObjectList::load_modifier(), Slic3r::GUI::ObjectList::load_shape_object(), Slic3r::GUI::GLGizmoCut3D::on_is_activable(), Slic3r::GUI::GLGizmoBrimEars::on_mouse(), Slic3r::GUI::GLGizmoPainterBase::on_mouse(), Slic3r::GUI::GLGizmoBrimEars::on_render(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::on_update(), Slic3r::GUI::ObjectList::part_selection_changed(), paste_volumes_from_clipboard(), Slic3r::GUI::GLGizmoCut3D::perform_cut(), Slic3r::GUI::GLGizmoCut3D::process_contours(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_height_range(), Slic3r::GUI::Plater::show_object_info(), Slic3r::GUI::ObjectList::split_instances(), Slic3r::GUI::Emboss::start_create_volume_without_position(), Slic3r::GUI::GLGizmoCut3D::toggle_model_objects_visibility(), Slic3r::GUI::GLGizmoPainterBase::update_contours(), Slic3r::GUI::ObjectList::update_selections(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
| const BoundingBoxf3 & Slic3r::GUI::Selection::get_scaled_instance_bounding_box | ( | ) | const |
References Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::GLVolume::get_sla_shift_z(), Slic3r::GLVolume::get_volume_transformation(), is_single_full_instance(), m_list, m_scaled_instance_bounding_box, m_valid, and Slic3r::GLVolume::transformed_convex_hull_bounding_box().
| std::set< std::pair< int, int > > Slic3r::GUI::Selection::get_selected_object_instances | ( | ) |
References is_multiple_full_object(), and m_cache.
| const ModelInstance * Slic3r::GUI::Selection::get_selected_single_intance | ( | ) | const |
References get_instance_idx(), and get_selected_single_object().
| ModelObject * Slic3r::GUI::Selection::get_selected_single_object | ( | int & | out_object_idx | ) | const |
References get_first_volume(), get_model(), is_single_full_object(), is_single_modifier(), is_single_volume(), Slic3r::GLVolume::object_idx(), and Slic3r::Model::objects.
Referenced by get_selected_single_intance().
| ModelVolume * Slic3r::GUI::Selection::get_selected_single_volume | ( | int & | out_object_idx, |
| int & | out_volume_idx ) const |
References get_first_volume(), get_model(), is_single_modifier(), is_single_volume(), Slic3r::GLVolume::object_idx(), Slic3r::Model::objects, Slic3r::GLVolume::volume_idx(), and Slic3r::ModelObject::volumes.
| const BoundingBoxf3 & Slic3r::GUI::Selection::get_unscaled_instance_bounding_box | ( | ) | const |
References Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::Geometry::Transformation::get_matrix_no_scaling_factor(), Slic3r::GLVolume::get_sla_shift_z(), Slic3r::GLVolume::get_volume_transformation(), is_single_full_instance(), m_list, m_unscaled_instance_bounding_box, m_valid, and Slic3r::GLVolume::transformed_convex_hull_bounding_box().
Referenced by Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
| std::vector< unsigned int > Slic3r::GUI::Selection::get_unselected_volume_idxs_from | ( | const std::vector< unsigned int > & | volume_idxs | ) | const |
References m_list.
Referenced by Slic3r::GUI::ObjectList::update_selections_on_canvas().
| GLVolume * Slic3r::GUI::Selection::get_volume | ( | unsigned int | volume_idx | ) |
| const GLVolume * Slic3r::GUI::Selection::get_volume | ( | unsigned int | volume_idx | ) | const |
References m_valid, and m_volumes.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_set_visible(), Slic3r::GUI::GLGizmoBrimEars::auto_generate(), Slic3r::GUI::GLGizmoCut3D::bounding_box(), Slic3r::GUI::GLGizmoPainterBase::bounding_box(), anonymous_namespace{GLGizmoEmboss.cpp}::calc_fine_position(), Slic3r::GUI::Plater::priv::can_reload_from_disk(), anonymous_namespace{EmbossJob.cpp}::find_closest(), Slic3r::GUI::GLGizmoBrimEars::find_single(), Slic3r::GUI::GLGizmoBrimEars::first_layer_slicer(), get_bounding_box_in_reference_system(), get_first_volume(), Slic3r::GUI::get_model_volume(), Slic3r::GUI::get_selected_gl_volume(), Slic3r::GUI::GLGizmoAlignment::get_selected_part_volumes(), Slic3r::GUI::get_selected_volume(), Slic3r::GUI::GLGizmoBrimEars::gizmo_event(), Slic3r::GUI::GLGizmoCut3D::has_valid_groove(), Slic3r::GUI::GLGizmoMeshBoolean::on_render(), Slic3r::GUI::GLGizmoBrimEars::register_single_mesh_pick(), Slic3r::GUI::GLGizmoMeasure::register_single_mesh_pick(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::GLGizmoBrimEars::render_points(), Slic3r::GUI::Plater::priv::replace_all_with_stl(), Slic3r::GUI::GizmoObjectManipulation::reset_position_value(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), Slic3r::GUI::selection_transform(), Slic3r::GUI::Plater::priv::set_current_panel(), Slic3r::GUI::ObjectList::set_volume_type(), Slic3r::GUI::GLGizmoCut3D::set_volumes_picking_state(), Slic3r::UndoRedo::StackImpl::take_snapshot(), Slic3r::GUI::GLGizmoCut3D::transformed_bounding_box(), Slic3r::GUI::GLGizmoBrimEars::unproject_on_mesh(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
References m_list.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_set_visible(), Slic3r::GUI::GLGizmoBrimEars::auto_generate(), Slic3r::GUI::GLGizmoCut3D::bounding_box(), Slic3r::GUI::GLGizmoPainterBase::bounding_box(), anonymous_namespace{GLGizmoEmboss.cpp}::calc_fine_position(), Slic3r::GUI::Plater::priv::can_reload_from_disk(), Slic3r::GUI::Plater::priv::can_replace_all_with_stl(), Slic3r::GUI::Plater::priv::can_replace_with_stl(), anonymous_namespace{EmbossJob.cpp}::find_closest(), Slic3r::GUI::GLGizmoBrimEars::find_single(), Slic3r::GUI::GLGizmoBrimEars::first_layer_slicer(), Slic3r::GUI::get_model_volume(), Slic3r::GUI::get_selected_gl_volume(), Slic3r::GUI::GLGizmoAlignment::get_selected_part_volumes(), Slic3r::GUI::get_selected_volume(), Slic3r::GUI::GLGizmoBrimEars::gizmo_event(), Slic3r::GUI::GLGizmoCut3D::has_valid_groove(), Slic3r::GUI::SceneRaycaster::hit(), Slic3r::GUI::GLGizmoPainterBase::on_is_activable(), Slic3r::GUI::GLGizmoMeshBoolean::on_render(), Slic3r::GUI::GLGizmoBrimEars::register_single_mesh_pick(), Slic3r::GUI::GLGizmoMeasure::register_single_mesh_pick(), Slic3r::GUI::Plater::priv::reload_all_from_disk(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::GLGizmoBrimEars::render_points(), Slic3r::GUI::Plater::priv::replace_all_with_stl(), Slic3r::GUI::GizmoObjectManipulation::reset_position_value(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), Slic3r::GUI::selection_transform(), Slic3r::GUI::Plater::priv::set_current_panel(), Slic3r::GUI::ObjectList::set_volume_type(), Slic3r::GUI::GLGizmoCut3D::set_volumes_picking_state(), Slic3r::GUI::Plater::show_object_info(), Slic3r::UndoRedo::StackImpl::take_snapshot(), Slic3r::GUI::GLGizmoCut3D::transformed_bounding_box(), Slic3r::GUI::GLGizmoBrimEars::unproject_on_mesh(), and Slic3r::GUI::ObjectList::update_selections().
| std::vector< unsigned int > Slic3r::GUI::Selection::get_volume_idxs_from_instance | ( | unsigned int | object_idx, |
| unsigned int | instance_idx ) const |
References Slic3r::GLVolume::instance_idx(), m_volumes, and Slic3r::GLVolume::object_idx().
Referenced by add_instance(), get_volume_idxs_from_plate(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
| std::vector< unsigned int > Slic3r::GUI::Selection::get_volume_idxs_from_object | ( | unsigned int | object_idx | ) | const |
References m_volumes.
Referenced by add_object(), add_object_from_idx(), Slic3r::GUI::Plater::priv::replace_all_with_stl(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
| std::vector< unsigned int > Slic3r::GUI::Selection::get_volume_idxs_from_plate | ( | const int | plate_idx | ) | const |
References Slic3r::GUI::PartPlate::contain_instance(), get_volume_idxs_from_instance(), Slic3r::ModelObject::instances, Slic3r::GUI::PartPlate::intersect_instance(), and m_model.
Referenced by add_curr_plate(), and remove_curr_plate().
| std::vector< unsigned int > Slic3r::GUI::Selection::get_volume_idxs_from_volume | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| unsigned int | volume_idx ) const |
References Slic3r::GLVolume::instance_idx(), m_volumes, Slic3r::GLVolume::object_idx(), and Slic3r::GLVolume::volume_idx().
Referenced by add_volume(), and Slic3r::GUI::ObjectList::update_selections_on_canvas().
|
inline |
References m_volume_selection_mode.
| bool Slic3r::GUI::Selection::init | ( | ) |
References Slic3r::GUI::circular_arrow(), Slic3r::its_make_sphere(), m_arrow, m_curved_arrow, PI, and Slic3r::GUI::straight_arrow().
| void Slic3r::GUI::Selection::instances_changed | ( | const std::vector< size_t > & | instance_ids_selected | ) |
References do_add_volume(), Slic3r::GLVolume::geometry_id, Instance, m_list, m_mode, m_valid, m_volumes, set_bounding_boxes_dirty(), and update_type().
| bool Slic3r::GUI::Selection::is_any_connector | ( | ) | const |
References get_object_idx(), is_any_modifier(), is_any_volume(), is_mixed(), m_model, and m_volumes.
| bool Slic3r::GUI::Selection::is_any_cut_volume | ( | ) | const |
References get_object_idx(), is_any_volume(), and m_model.
|
inline |
References is_multiple_modifier(), and is_single_modifier().
Referenced by add(), is_any_connector(), Slic3r::GUI::ObjectList::part_selection_changed(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
References is_multiple_volume(), and is_single_volume().
Referenced by add(), ensure_not_below_bed(), is_any_connector(), is_any_cut_volume(), Slic3r::GUI::GLGizmoMmuSegmentation::on_is_activable(), Slic3r::GUI::ObjectList::part_selection_changed(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
Referenced by add(), Slic3r::GUI::Plater::priv::can_delete(), Slic3r::GUI::do_local_z_move(), Slic3r::GUI::do_local_z_rotate(), get_bounding_box_in_current_reference_system(), Slic3r::GUI::GLGizmoAlignment::get_selected_objects_info(), Slic3r::GUI::GLGizmoMmuSegmentation::on_is_activable(), Slic3r::GUI::GLGizmoScale3D::on_is_activable(), Slic3r::GUI::GLGizmoEmboss::on_render(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::on_update(), Slic3r::GUI::GLGizmoAlignment::reference_basis(), remove_all(), render(), Slic3r::GUI::Plater::priv::replace_all_with_stl(), scale_to_fit_print_volume(), Slic3r::GUI::Emboss::start_create_volume_without_position(), Slic3r::GUI::GLGizmosManager::update_data(), and Slic3r::GUI::GLGizmoBase::use_grabbers().
|
inline |
|
private |
References Slic3r::GUI::GLCanvas3D::CanvasAssembleView, count, Instance, Slic3r::GLVolume::instance_idx(), m_list, m_mode, m_model, m_volumes, Slic3r::GLVolume::object_idx(), and Slic3r::GUI::plater().
Referenced by move_to_center(), rotate(), and translate().
|
inline |
References get_instance_idx().
Referenced by Slic3r::GUI::Plater::priv::can_mirror(), Slic3r::GUI::Plater::can_paste_from_clipboard(), Slic3r::GUI::GLGizmoPainterBase::data_changed(), Slic3r::GUI::GLGizmoBrimEars::on_render(), paste_from_clipboard(), requires_local_axes(), transform_instance_relative(), and Slic3r::GUI::ObjectList::update_selections().
| bool Slic3r::GUI::Selection::is_from_single_object | ( | ) | const |
References get_object_idx().
Referenced by Slic3r::GUI::GLGizmoFlatten::data_changed().
|
inline |
|
inline |
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_settings(), erase(), is_any_connector(), Slic3r::GUI::ObjectList::part_selection_changed(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
References m_type, and MultipleFullInstance.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_export_drc(), Slic3r::GUI::MenuFactory::append_menu_item_export_stl(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::MenuFactory::append_menu_item_settings(), Slic3r::GUI::ObjectList::can_split_instances(), erase(), Slic3r::GUI::Plater::priv::on_right_click(), Slic3r::GUI::ObjectList::part_selection_changed(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
References m_type, and MultipleFullObject.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_export_drc(), Slic3r::GUI::MenuFactory::append_menu_item_export_stl(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), erase(), Slic3r::GUI::Plater::export_stl(), get_selected_object_instances(), Slic3r::GUI::ObjectList::part_selection_changed(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
References m_type, and MultipleModifier.
Referenced by is_any_modifier().
|
inline |
References m_type, and MultipleVolume.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::MenuFactory::append_menu_item_settings(), and is_any_volume().
| bool Slic3r::GUI::Selection::is_single_full_instance | ( | ) | const |
References get_instance_idx(), get_object_idx(), Slic3r::GLVolume::instance_idx(), m_list, m_model, m_type, m_valid, m_volumes, Slic3r::GLVolume::object_idx(), SingleFullInstance, SingleFullObject, and Slic3r::GLVolume::volume_idx().
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_export_drc(), Slic3r::GUI::MenuFactory::append_menu_item_export_stl(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_settings(), Slic3r::GUI::ObjectList::can_split_instances(), Slic3r::GUI::GizmoObjectManipulation::change_absolute_rotation_value(), Slic3r::GUI::GizmoObjectManipulation::change_rotation_value(), Slic3r::GUI::GizmoObjectManipulation::change_scale_value(), Slic3r::GUI::GizmoObjectManipulation::change_size_value(), Slic3r::GUI::GLGizmoFlatten::data_changed(), Slic3r::GUI::GLGizmoRotate3D::data_changed(), Slic3r::GUI::GLGizmoScale3D::data_changed(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), erase(), Slic3r::GUI::face_selected_volume_to_camera(), get_full_scaled_instance_bounding_box(), get_full_unscaled_instance_bounding_box(), get_full_unscaled_instance_local_bounding_box(), get_scaled_instance_bounding_box(), Slic3r::GUI::GLGizmoMove3D::get_tooltip(), Slic3r::GUI::GLGizmoScale3D::get_tooltip(), get_unscaled_instance_bounding_box(), anonymous_namespace{SurfaceDrag.cpp}::is_embossed_object(), Slic3r::GUI::ObjectList::is_instance_or_object_selected(), is_single_volume_instance(), Slic3r::GUI::GLGizmoBrimEars::on_is_activable(), Slic3r::GUI::GLGizmoCut3D::on_is_activable(), Slic3r::GUI::GLGizmoMmuSegmentation::on_is_activable(), Slic3r::GUI::GLGizmoPainterBase::on_is_activable(), Slic3r::GUI::GLGizmoFlatten::on_mouse(), Slic3r::GUI::GLGizmoFlatten::on_render(), Slic3r::GUI::Plater::priv::on_right_click(), Slic3r::GUI::ObjectList::part_selection_changed(), render_sidebar_hints(), requires_uniform_scale(), Slic3r::GUI::GizmoObjectManipulation::reset_position_value(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), scale_and_translate(), Slic3r::GUI::selection_transform(), Slic3r::GUI::Plater::show_object_info(), Slic3r::GUI::GLGizmoScale3D::update_grabbers_data(), Slic3r::GUI::GizmoObjectManipulation::update_reset_buttons_visibility(), Slic3r::GUI::ObjectList::update_selections(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
|
inline |
References m_type, and SingleFullObject.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_export_drc(), Slic3r::GUI::MenuFactory::append_menu_item_export_stl(), Slic3r::GUI::MenuFactory::append_menu_item_instance_to_object(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_settings(), Slic3r::GUI::MenuFactory::append_menu_item_settings(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), erase(), Slic3r::GUI::Plater::export_stl(), Slic3r::GUI::Plater::priv::get_export_file_path(), get_selected_single_object(), anonymous_namespace{SurfaceDrag.cpp}::is_embossed_object(), Slic3r::GUI::ObjectList::is_instance_or_object_selected(), Slic3r::GUI::ObjectList::layers_editing(), Slic3r::GUI::Plater::priv::on_right_click(), Slic3r::GUI::ObjectList::part_selection_changed(), Slic3r::GUI::Plater::show_object_info(), Slic3r::GUI::ObjectList::split_instances(), Slic3r::GUI::ObjectList::update_selections(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
|
inline |
References m_type, and SingleModifier.
Referenced by get_selected_single_object(), get_selected_single_volume(), Slic3r::GUI::SceneRaycaster::hit(), is_any_modifier(), is_single_volume_or_modifier(), Slic3r::GUI::Plater::priv::on_right_click(), requires_uniform_scale(), Slic3r::GUI::GizmoObjectManipulation::reset_position_value(), and Slic3r::GUI::GLGizmoScale3D::update_grabbers_data().
| bool Slic3r::GUI::Selection::is_single_text | ( | ) | const |
References is_single_volume_or_modifier(), m_list, m_model, Slic3r::GLVolume::object_idx(), Slic3r::ModelVolume::text_configuration, and Slic3r::GLVolume::volume_idx().
|
inline |
References m_type, and SingleVolume.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::MenuFactory::append_menu_item_per_object_settings(), get_selected_single_object(), get_selected_single_volume(), Slic3r::GUI::SceneRaycaster::hit(), is_any_volume(), is_single_volume_or_modifier(), Slic3r::GUI::Plater::priv::on_right_click(), requires_uniform_scale(), Slic3r::GUI::GizmoObjectManipulation::reset_position_value(), Slic3r::GUI::Plater::show_object_info(), Slic3r::GUI::GLGizmoScale3D::update_grabbers_data(), and Slic3r::GUI::ObjectList::update_selections().
|
inline |
References is_single_full_instance(), and m_list.
Referenced by Slic3r::GUI::GLGizmoEmboss::on_render().
|
inline |
References is_single_modifier(), and is_single_volume().
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_per_object_process(), Slic3r::GUI::GizmoObjectManipulation::change_scale_value(), Slic3r::GUI::GizmoObjectManipulation::change_size_value(), Slic3r::GUI::GLGizmoScale3D::data_changed(), Slic3r::GUI::GizmoObjectManipulation::do_scale(), Slic3r::GUI::GLGizmoScale3D::get_tooltip(), is_single_text(), Slic3r::GUI::GLGizmoEmboss::on_render(), render_sidebar_hints(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), rotate(), scale_and_translate(), Slic3r::GUI::GLGizmoScale3D::update_grabbers_data(), Slic3r::GUI::GizmoObjectManipulation::update_reset_buttons_visibility(), and Slic3r::GUI::GizmoObjectManipulation::update_settings_value().
| bool Slic3r::GUI::Selection::is_sla_compliant | ( | ) | const |
References m_list, m_mode, m_volumes, and Volume.
Referenced by Slic3r::GUI::Plater::can_copy_to_clipboard().
|
inline |
References m_type, and WipeTower.
Referenced by add(), add_all(), Slic3r::GUI::Plater::priv::can_delete(), Slic3r::GUI::GLGizmoRotate3D::data_changed(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::Plater::export_stl(), get_auto_drop(), Slic3r::GUI::GLGizmoAssembly::on_is_activable(), Slic3r::GUI::GLGizmoCut3D::on_is_activable(), Slic3r::GUI::GLGizmoMeasure::on_is_activable(), Slic3r::GUI::GLGizmoRotate3D::on_is_activable(), Slic3r::GUI::GLGizmoScale3D::on_is_activable(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::Plater::priv::replace_all_with_stl(), Slic3r::GUI::Plater::priv::replace_with_stl(), rotate(), translate(), Slic3r::GUI::GizmoObjectManipulation::update_settings_value(), and update_type().
|
inline |
References m_volume_selection_locked.
| bool Slic3r::GUI::Selection::matches | ( | const std::vector< unsigned int > & | volume_idxs | ) | const |
Referenced by add_instance(), add_object(), add_volume(), and add_volumes().
| void Slic3r::GUI::Selection::mirror | ( | Axis | axis, |
| TransformationType | transformation_type ) |
References mirror(), scale_and_translate(), Slic3r::X, Slic3r::Y, and Slic3r::Z.
Referenced by Slic3r::GUI::GLGizmoEmboss::do_mirror(), Slic3r::GUI::GLGizmoSVG::draw_mirroring(), and mirror().
| void Slic3r::GUI::Selection::move_to_center | ( | const Vec3d & | displacement, |
| bool | local = false ) |
References Instance, is_from_fully_selected_instance(), m_cache, m_list, m_mode, m_valid, set_bounding_boxes_dirty(), set_caches(), Slic3r::GLVolume::set_instance_offset(), Slic3r::GLVolume::set_volume_offset(), and Volume.
Referenced by center(), and center_plate().
| void Slic3r::GUI::Selection::notify_instance_update | ( | int | object_idx, |
| int | instance_idx ) |
References m_list, m_model, and Slic3r::GUI::PartPlateList::notify_instance_update().
Referenced by Slic3r::GUI::Plater::_calib_pa_select_added_objects().
| void Slic3r::GUI::Selection::paste_from_clipboard | ( | ) |
References Instance, is_from_single_instance(), m_clipboard, m_mode, m_valid, paste_objects_from_clipboard(), paste_volumes_from_clipboard(), and Volume.
Referenced by Slic3r::GUI::CloneDialog::CloneDialog(), and clone().
|
private |
References Slic3r::BoundingBox3Base< PointType >::center(), Slic3r::check_model_ids_validity(), Slic3r::GUI::PartPlate::get_build_volume(), Slic3r::ModelInstance::get_transformation(), Slic3r::ModelObject::instance_convex_hull_bounding_box(), Slic3r::ModelObject::instances, Slic3r::GUI::PartPlate::intersects(), m_clipboard, m_model, Slic3r::BoundingBox3Base< PointType >::merge(), Slic3r::ModelInstance::set_assemble_transformation(), Slic3r::ModelInstance::set_offset(), and Slic3r::BoundingBox3Base< PointType >::size().
Referenced by paste_from_clipboard().
|
private |
References Slic3r::ModelObject::add_volume(), Slic3r::TriangleMesh::bounding_box(), Slic3r::BoundingBox3Base< PointType >::center(), Slic3r::check_model_ids_validity(), get_instance_idx(), Slic3r::ModelVolume::get_matrix(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), get_object_idx(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::ModelInstance::get_transformation(), Slic3r::ModelObject::input_file, Slic3r::ModelObject::instance_bounding_box(), Slic3r::ModelObject::instances, m_clipboard, m_model, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::max, Slic3r::BoundingBox3Base< PointType >::merge(), Slic3r::ModelVolume::mesh(), Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::min, Slic3r::ModelVolume::set_new_unique_id(), Slic3r::BoundingBox3Base< PointType >::size(), Slic3r::BoundingBoxf3::transformed(), and Slic3r::ModelObject::volumes.
Referenced by paste_from_clipboard().
| int Slic3r::GUI::Selection::query_real_volume_idx_from_other_view | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| unsigned int | model_volume_idx ) |
References m_volumes.
Referenced by Slic3r::GUI::Plater::priv::set_current_panel().
| void Slic3r::GUI::Selection::remove | ( | unsigned int | volume_idx | ) |
References contains_volume(), do_remove_instance(), do_remove_volume(), Instance, Slic3r::GLVolume::instance_idx(), m_mode, m_valid, m_volumes, Slic3r::GLVolume::object_idx(), Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), update_type(), and Volume.
| void Slic3r::GUI::Selection::remove_all | ( | ) |
References clear(), Instance, is_empty(), m_mode, m_valid, and Slic3r::UndoRedo::Selection.
Referenced by Slic3r::GUI::ObjectList::update_selections_on_canvas().
| void Slic3r::GUI::Selection::remove_curr_plate | ( | ) |
References clear(), do_add_volumes(), erase(), get_volume_idxs_from_plate(), Instance, m_mode, m_valid, Slic3r::GUI::plater(), set_bounding_boxes_dirty(), and update_type().
| void Slic3r::GUI::Selection::remove_instance | ( | unsigned int | object_idx, |
| unsigned int | instance_idx ) |
References do_remove_instance(), m_valid, Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), and update_type().
| void Slic3r::GUI::Selection::remove_object | ( | unsigned int | object_idx | ) |
References do_remove_object(), m_valid, Slic3r::UndoRedo::Selection, set_bounding_boxes_dirty(), and update_type().
| void Slic3r::GUI::Selection::remove_volume | ( | unsigned int | object_idx, |
| unsigned int | volume_idx ) |
References do_remove_volume(), m_valid, m_volumes, Slic3r::GLVolume::object_idx(), set_bounding_boxes_dirty(), update_type(), and Slic3r::GLVolume::volume_idx().
| void Slic3r::GUI::Selection::remove_volumes | ( | EMode | mode, |
| const std::vector< unsigned int > & | volume_idxs ) |
References do_remove_volume(), m_mode, m_valid, m_volumes, set_bounding_boxes_dirty(), and update_type().
Referenced by Slic3r::GUI::ObjectList::update_selections_on_canvas().
| void Slic3r::GUI::Selection::render | ( | float | scale_factor = 1.0 | ) |
References Slic3r::GUI::GLCanvas3D::CanvasAssembleView, get_auto_drop(), get_bounding_box_in_current_reference_system(), is_empty(), m_scale_factor, m_valid, Slic3r::GUI::plater(), render_bounding_box(), render_synchronized_volumes(), Slic3r::ColorRGB::WHITE(), and Slic3r::ColorRGB::YELLOW().
|
inline |
References get_auto_drop(), m_scale_factor, render_bounding_box(), and scale().
Referenced by render(), render_bounding_box(), render_bounding_box(), and render_synchronized_volumes().
|
private |
References Slic3r::GUI::GLModel::Geometry::add_index(), Slic3r::GUI::GLModel::Geometry::add_vertex(), Slic3r::GUI::GLModel::Geometry::format, Slic3r::GUI::OpenGLManager::get_gl_info(), Slic3r::GUI::Camera::get_projection_matrix(), Slic3r::GUI::Camera::get_view_matrix(), Slic3r::GUI::Camera::get_viewport(), GL_DEPTH_TEST, glEnable, glLineWidth, glsafe, Slic3r::is_approx(), Slic3r::GUI::OpenGLManager::GLInfo::is_core_profile(), Slic3r::GUI::GLModel::Geometry::Lines, m_auto_drop, m_box, m_scale_factor, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::max, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::min, Slic3r::GUI::GLModel::Geometry::P3, Slic3r::GUI::GLModel::Geometry::reserve_indices(), Slic3r::GUI::GLModel::Geometry::reserve_vertices(), Slic3r::GLShaderProgram::set_uniform(), Slic3r::BoundingBox3Base< PointType >::size(), Slic3r::GLShaderProgram::start_using(), Slic3r::GLShaderProgram::stop_using(), Slic3r::to_rgba(), and Slic3r::GUI::GLModel::Geometry::vertices_count().
|
inline |
References get_auto_drop(), m_scale_factor, render_bounding_box(), and scale().
| void Slic3r::GUI::Selection::render_sidebar_hints | ( | const std::string & | sidebar_field, |
| bool | uniform_scale ) |
References Slic3r::Geometry::assemble_transform(), Slic3r::BoundingBox3Base< PointType >::center(), center(), get_bounding_box(), get_bounding_box_in_current_reference_system(), GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, glClear, glEnable, glsafe, is_single_full_instance(), is_single_volume_or_modifier(), m_list, render_sidebar_layers_hints(), render_sidebar_position_hints(), render_sidebar_rotation_hints(), render_sidebar_scale_hints(), requires_local_axes(), Slic3r::GLShaderProgram::set_uniform(), Slic3r::GLShaderProgram::start_using(), and Slic3r::GLShaderProgram::stop_using().
|
private |
References Slic3r::GUI::GLModel::Geometry::add_triangle(), Slic3r::GUI::GLModel::Geometry::add_vertex(), Slic3r::GUI::GLModel::Geometry::format, get_bounding_box(), Slic3r::GUI::Camera::get_projection_matrix(), Slic3r::GUI::Camera::get_view_matrix(), GL_BLEND, GL_CULL_FACE, GL_DEPTH_TEST, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, glBlendFunc, glDisable, glEnable, glsafe, Slic3r::is_approx(), m_planes, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::max, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::min, Slic3r::GUI::GLModel::Geometry::P3, Slic3r::GUI::GLModel::Geometry::reserve_indices(), Slic3r::GUI::GLModel::Geometry::reserve_vertices(), Slic3r::GLShaderProgram::set_uniform(), SOLID_PLANE_COLOR, Slic3r::string_to_double_decimal_point(), TRANSPARENT_PLANE_COLOR, and Slic3r::GUI::GLModel::Geometry::Triangles.
Referenced by render_sidebar_hints().
|
private |
References Slic3r::Geometry::assemble_transform(), Slic3r::GUI::get_color(), Slic3r::GUI::Camera::get_projection_matrix(), Slic3r::GUI::Camera::get_view_matrix(), m_arrow, PI, Slic3r::GLShaderProgram::set_uniform(), Slic3r::X, Slic3r::Y, and Slic3r::Z.
Referenced by render_sidebar_hints().
|
private |
References Slic3r::Geometry::assemble_transform(), Slic3r::GUI::get_color(), Slic3r::GUI::Camera::get_projection_matrix(), Slic3r::GUI::Camera::get_view_matrix(), m_curved_arrow, PI, Slic3r::GLShaderProgram::set_uniform(), Slic3r::X, Slic3r::Y, and Slic3r::Z.
Referenced by render_sidebar_hints().
|
private |
References Slic3r::Geometry::assemble_transform(), Slic3r::GUI::get_color(), Slic3r::GUI::Camera::get_projection_matrix(), Slic3r::GUI::Camera::get_view_matrix(), m_arrow, PI, requires_uniform_scale(), Slic3r::GLShaderProgram::set_uniform(), UNIFORM_SCALE_COLOR, Slic3r::X, Slic3r::Y, and Slic3r::Z.
Referenced by render_sidebar_hints().
|
private |
References Slic3r::GLVolume::bounding_box(), get_auto_drop(), Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::GLVolume::get_volume_transformation(), Instance, Slic3r::GUI::Local, m_list, m_mode, m_volumes, Slic3r::GLVolume::object_idx(), render_bounding_box(), Slic3r::GLVolume::transformed_convex_hull_bounding_box(), Slic3r::GLVolume::volume_idx(), Slic3r::GUI::World, Slic3r::GLVolume::world_matrix(), and Slic3r::ColorRGB::YELLOW().
Referenced by render().
| bool Slic3r::GUI::Selection::requires_local_axes | ( | ) | const |
References is_from_single_instance(), m_mode, and Volume.
Referenced by render_sidebar_hints().
| bool Slic3r::GUI::Selection::requires_uniform_scale | ( | ) | const |
References is_single_full_instance(), is_single_modifier(), and is_single_volume().
Referenced by render_sidebar_scale_hints().
| void Slic3r::GUI::Selection::rotate | ( | const Vec3d & | rotation, |
| TransformationType | transformation_type ) |
References Slic3r::GUI::TransformationType::absolute(), Slic3r::GUI::GLCanvas3D::CanvasAssembleView, EPSILON, GENERAL, Slic3r::GUI::Selection::VolumeCache::get_instance_transform(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::Geometry::Transformation::get_rotation_matrix(), Slic3r::Geometry::Transformation::get_scaling_factor_matrix(), Slic3r::GUI::Selection::VolumeCache::get_volume_transform(), Instance, Slic3r::GUI::TransformationType::instance(), is_from_fully_selected_instance(), Slic3r::Geometry::Transformation::is_left_handed(), is_single_volume_or_modifier(), is_wipe_tower(), Slic3r::GUI::TransformationType::local(), m_cache, m_list, m_mode, m_valid, NONE, Slic3r::GUI::plater(), Slic3r::GUI::TransformationType::relative(), Slic3r::Geometry::rotation_transform(), set_bounding_boxes_dirty(), synchronize_unselected_instances(), synchronize_unselected_volumes(), transform_instance_relative(), transform_volume_relative(), Slic3r::Geometry::translation_transform(), Slic3r::Geometry::TransformationSVD::u, Slic3r::Geometry::TransformationSVD::v, Volume, and Slic3r::GUI::TransformationType::world().
Referenced by Slic3r::GUI::GizmoObjectManipulation::change_absolute_rotation_value(), Slic3r::GUI::GizmoObjectManipulation::change_rotation_value(), Slic3r::GUI::do_local_z_rotate(), and Slic3r::GUI::dragging_rotate_gizmo().
| void Slic3r::GUI::Selection::rotate | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| const Transform3d & | overwrite_tran ) |
References Slic3r::GLVolume::instance_idx(), m_list, m_valid, m_volumes, Slic3r::GLVolume::object_idx(), set_bounding_boxes_dirty(), and Slic3r::GLVolume::set_instance_transformation().
| void Slic3r::GUI::Selection::rotate | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| unsigned int | volume_idx, | ||
| const Transform3d & | overwrite_tran ) |
References Slic3r::GLVolume::instance_idx(), m_list, m_valid, Slic3r::GLVolume::object_idx(), set_bounding_boxes_dirty(), Slic3r::GLVolume::set_volume_transformation(), and Slic3r::GLVolume::volume_idx().
| void Slic3r::GUI::Selection::scale | ( | const Vec3d & | scale, |
| TransformationType | transformation_type ) |
References scale(), and scale_and_translate().
Referenced by Slic3r::GUI::adjust_settings_for_flowrate_calib(), Slic3r::GUI::GizmoObjectManipulation::do_scale(), Slic3r::GUI::GLGizmoSVG::draw_size(), render_bounding_box(), render_bounding_box(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), scale(), scale_and_translate(), and scale_to_fit_print_volume().
| void Slic3r::GUI::Selection::scale_and_translate | ( | const Vec3d & | scale, |
| const Vec3d & | world_translation, | ||
| TransformationType | transformation_type ) |
References Slic3r::GUI::TransformationType::absolute(), Slic3r::Geometry::assemble_transform(), Slic3r::GUI::GLCanvas3D::CanvasAssembleView, GENERAL, get_bounding_box_in_current_reference_system(), get_full_unscaled_instance_bounding_box(), get_full_unscaled_instance_local_bounding_box(), Slic3r::GLVolume::get_instance_scaling_factor(), Slic3r::GUI::Selection::VolumeCache::get_instance_transform(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::GUI::Selection::VolumeCache::get_volume_transform(), Instance, Slic3r::GUI::TransformationType::instance(), Slic3r::GLVolume::instance_idx(), is_single_full_instance(), is_single_volume_or_modifier(), Slic3r::GUI::TransformationType::local(), m_cache, m_list, m_mode, m_model, m_valid, Slic3r::GLVolume::object_idx(), Slic3r::GUI::plater(), scale(), Slic3r::Geometry::scale_transform(), set_bounding_boxes_dirty(), Slic3r::GUI::TransformationType::set_independent(), Slic3r::GLVolume::set_instance_transformation(), Slic3r::GUI::TransformationType::set_relative(), Slic3r::BoundingBox3Base< PointType >::size(), synchronize_unselected_instances(), synchronize_unselected_volumes(), transform_instance_relative(), transform_volume_relative(), Slic3r::Geometry::translation_transform(), Volume, and Slic3r::GUI::TransformationType::world().
Referenced by mirror(), Slic3r::GUI::GLGizmoScale3D::on_mouse(), and scale().
| void Slic3r::GUI::Selection::scale_to_fit_print_volume | ( | const DynamicPrintConfig & | config | ) |
References center(), get_bounding_box(), Slic3r::get_extents(), is_empty(), m_mode, Slic3r::BoundingBoxBase< PointType, APointsType >::max, Slic3r::BoundingBoxBase< PointType, APointsType >::min, Slic3r::Polygon::new_scale(), Slic3r::DynamicConfig::opt_float(), Slic3r::ConfigBase::option(), scale(), Slic3r::GUI::TransformationType::set_joint(), Slic3r::GUI::TransformationType::set_relative(), Slic3r::GUI::TransformationType::set_world(), Slic3r::BoundingBox3Base< PointType >::size(), translate(), Slic3r::unscale(), and Volume.
Referenced by Slic3r::GUI::Plater::priv::scale_selection_to_fit_print_volume().
| void Slic3r::GUI::Selection::set_auto_drop | ( | bool | enabled | ) |
References m_cache, m_model, and m_valid.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_set_auto_drop().
|
inlineprivate |
References m_bounding_box, m_bounding_box_in_current_reference_system, m_bounding_sphere, m_full_scaled_instance_bounding_box, m_full_unscaled_instance_bounding_box, m_full_unscaled_instance_local_bounding_box, m_scaled_instance_bounding_box, and m_unscaled_instance_bounding_box.
Referenced by Selection(), add(), add_all(), add_curr_plate(), add_instance(), add_object(), add_object_from_idx(), add_volume(), add_volumes(), clear(), flattening_rotate(), instances_changed(), move_to_center(), remove(), remove_curr_plate(), remove_instance(), remove_object(), remove_volume(), remove_volumes(), rotate(), rotate(), rotate(), scale_and_translate(), set_deserialized(), translate(), translate(), translate(), translate(), and volumes_changed().
|
private |
References Slic3r::BoundingBox3Base< PointType >::center(), get_bounding_box(), get_bounding_sphere(), Slic3r::GLVolume::get_instance_transformation(), Slic3r::GLVolume::get_volume_transformation(), Slic3r::GLVolume::is_sinking(), m_cache, and m_volumes.
Referenced by move_to_center(), and setup_cache().
| void Slic3r::GUI::Selection::set_deserialized | ( | EMode | mode, |
| const std::vector< std::pair< size_t, size_t > > & | volumes_and_instances ) |
References do_add_volume(), m_list, m_mode, m_valid, m_volumes, set_bounding_boxes_dirty(), and update_type().
Referenced by Slic3r::GUI::Plater::priv::update_after_undo_redo().
|
inline |
| void Slic3r::GUI::Selection::set_model | ( | Model * | model | ) |
References m_model, and update_valid().
| void Slic3r::GUI::Selection::set_printable | ( | bool | printable | ) |
References Slic3r::ModelObject::instances, m_cache, m_model, and m_valid.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_set_printable().
|
inline |
References m_volume_selection_locked, and m_volume_selection_mode.
| void Slic3r::GUI::Selection::set_volumes | ( | GLVolumePtrs * | volumes | ) |
| void Slic3r::GUI::Selection::setup_cache | ( | ) |
References m_valid, and set_caches().
Referenced by Slic3r::GUI::adjust_settings_for_flowrate_calib(), Slic3r::GUI::GLGizmoAlignment::align_objects_generic(), Slic3r::GUI::GLGizmoAlignment::align_to_center(), Slic3r::GUI::GizmoObjectManipulation::change_absolute_rotation_value(), Slic3r::GUI::GizmoObjectManipulation::change_position_value(), Slic3r::GUI::GizmoObjectManipulation::change_rotation_value(), Slic3r::GUI::GLGizmoAlignment::distribute_objects_generic(), Slic3r::GUI::do_local_z_move(), Slic3r::GUI::do_local_z_rotate(), Slic3r::GUI::GLGizmoEmboss::do_mirror(), Slic3r::GUI::GizmoObjectManipulation::do_scale(), Slic3r::GUI::GLGizmoSVG::draw_mirroring(), Slic3r::GUI::GLGizmoSVG::draw_size(), drop(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), Slic3r::GUI::selection_transform(), Slic3r::GUI::GLGizmoMeasure::set_distance(), Slic3r::GUI::GLGizmoMeasure::set_parallel_distance(), Slic3r::GUI::GLGizmoMeasure::set_to_around_center_of_faces(), Slic3r::GUI::GLGizmoMeasure::set_to_parallel(), Slic3r::GUI::GLGizmoMeasure::set_to_reverse_rotation(), and Slic3r::GUI::GLGizmoBase::use_grabbers().
| void Slic3r::GUI::Selection::synchronize_unselected_instances | ( | SyncRotationType | sync_rotation_type | ) |
References Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::GLVolume::instance_idx(), Slic3r::GUI::is_left_handed(), Slic3r::GUI::is_rotation_xy_synchronized(), m_cache, m_list, m_model, m_volumes, NONE, Slic3r::GLVolume::object_idx(), Slic3r::ptSLA, RESET, Slic3r::Geometry::Transformation::reset_rotation(), Slic3r::GLVolume::set_instance_transformation(), and Slic3r::GUI::verify_instances_rotation_synchronized().
Referenced by Slic3r::GUI::face_selected_volume_to_camera(), flattening_rotate(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), rotate(), scale_and_translate(), Slic3r::GUI::selection_transform(), and translate().
| void Slic3r::GUI::Selection::synchronize_unselected_volumes | ( | ) |
References Slic3r::GLVolume::get_volume_transformation(), m_list, m_volumes, Slic3r::GLVolume::object_idx(), Slic3r::GLVolume::set_volume_transformation(), and Slic3r::GLVolume::volume_idx().
Referenced by Slic3r::GUI::GLGizmoAlignment::finish_operation(), Slic3r::GUI::GizmoObjectManipulation::reset_rotation_value(), rotate(), scale_and_translate(), and translate().
|
private |
References Slic3r::GUI::Selection::VolumeCache::get_instance_transform(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::GUI::TransformationType::independent(), Slic3r::GUI::TransformationType::instance(), is_from_single_instance(), Slic3r::GUI::TransformationType::relative(), Slic3r::GLVolume::set_instance_transformation(), Slic3r::transform(), Slic3r::Geometry::translation_transform(), and Slic3r::GUI::TransformationType::world().
Referenced by rotate(), scale_and_translate(), and translate().
|
private |
References Slic3r::GUI::Selection::VolumeCache::get_instance_transform(), Slic3r::Geometry::Transformation::get_matrix(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::GUI::Selection::VolumeCache::get_volume_transform(), Slic3r::GUI::TransformationType::independent(), Slic3r::GUI::TransformationType::instance(), Slic3r::GUI::TransformationType::local(), Slic3r::GUI::TransformationType::relative(), Slic3r::GLVolume::set_volume_transformation(), Slic3r::transform(), Slic3r::Geometry::translation_transform(), and Slic3r::GUI::TransformationType::world().
Referenced by rotate(), scale_and_translate(), and translate().
| void Slic3r::GUI::Selection::translate | ( | const Vec3d & | displacement, |
| TransformationType | transformation_type ) |
References Slic3r::GUI::TransformationType::absolute(), Slic3r::GLVolume::bounding_box(), Slic3r::GUI::GLCanvas3D::CanvasAssembleView, ensure_not_below_bed(), Slic3r::GUI::Selection::VolumeCache::get_instance_transform(), Slic3r::Geometry::Transformation::get_offset(), Slic3r::Geometry::Transformation::get_rotation_matrix(), Slic3r::Geometry::Transformation::get_scaling_factor_matrix(), Slic3r::GUI::Selection::VolumeCache::get_volume_transform(), Instance, Slic3r::GUI::TransformationType::instance(), is_from_fully_selected_instance(), is_wipe_tower(), Slic3r::GUI::TransformationType::local(), m_cache, m_list, m_mode, m_valid, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::max, Slic3r::BoundingBoxBase< PointType, std::vector< PointType > >::min, Slic3r::WipeTower::move_box_inside_polygon(), NONE, Slic3r::GLVolume::object_idx(), Slic3r::offset(), Slic3r::GUI::plater(), Slic3r::scaled(), set_bounding_boxes_dirty(), Slic3r::GLVolume::set_instance_offset(), Slic3r::GLVolume::set_volume_offset(), synchronize_unselected_instances(), synchronize_unselected_volumes(), transform_instance_relative(), transform_volume_relative(), Slic3r::BoundingBox3Base< PointType >::translate(), Slic3r::Geometry::translation_transform(), Volume, WIPE_TOWER_MARGIN, and Slic3r::GUI::TransformationType::world().
Referenced by Slic3r::GUI::GLGizmoAlignment::align_objects_generic(), Slic3r::GUI::GLGizmoAlignment::align_to_center(), Slic3r::GUI::GLGizmoAlignment::apply_transformation(), Slic3r::GUI::GizmoObjectManipulation::change_position_value(), Slic3r::GUI::GLGizmoAlignment::distribute_objects_generic(), Slic3r::GUI::do_local_z_move(), drop(), Slic3r::GUI::GLGizmoMove3D::on_dragging(), and scale_to_fit_print_volume().
| void Slic3r::GUI::Selection::translate | ( | unsigned int | object_idx, |
| const Vec3d & | displacement ) |
References Slic3r::GLVolume::get_instance_offset(), m_list, m_valid, m_volumes, Slic3r::GLVolume::object_idx(), set_bounding_boxes_dirty(), and Slic3r::GLVolume::set_instance_offset().
| void Slic3r::GUI::Selection::translate | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| const Vec3d & | displacement ) |
References m_valid, m_volumes, and set_bounding_boxes_dirty().
| void Slic3r::GUI::Selection::translate | ( | unsigned int | object_idx, |
| unsigned int | instance_idx, | ||
| unsigned int | volume_idx, | ||
| const Vec3d & | displacement, | ||
| bool | local = true ) |
References Slic3r::GLVolume::get_instance_transformation(), Slic3r::Geometry::Transformation::get_matrix_no_offset(), Slic3r::GLVolume::get_volume_offset(), Slic3r::GLVolume::instance_idx(), m_list, m_valid, Slic3r::GLVolume::object_idx(), set_bounding_boxes_dirty(), Slic3r::GLVolume::set_volume_offset(), and Slic3r::GLVolume::volume_idx().
|
inline |
References m_volume_selection_locked.
|
private |
References Empty, Instance, Slic3r::GLVolume::instance_idx(), Slic3r::ModelObject::instances, Invalid, is_wipe_tower(), m_cache, m_list, m_mode, m_model, m_type, m_valid, m_volumes, Mixed, MultipleFullInstance, MultipleFullObject, MultipleModifier, MultipleVolume, Slic3r::GLVolume::object_idx(), SingleFullInstance, SingleFullObject, SingleModifier, SingleVolume, Volume, Slic3r::ModelObject::volumes, volumes_count(), and WipeTower.
Referenced by add(), add_all(), add_curr_plate(), add_instance(), add_object(), add_object_from_idx(), add_volume(), add_volumes(), clear(), instances_changed(), remove(), remove_curr_plate(), remove_instance(), remove_object(), remove_volume(), remove_volumes(), set_deserialized(), and volumes_changed().
|
private |
References m_model, m_valid, and m_volumes.
Referenced by set_model(), and set_volumes().
| void Slic3r::GUI::Selection::volumes_changed | ( | const std::vector< size_t > & | map_volume_old_to_new | ) |
References m_list, m_mode, m_valid, set_bounding_boxes_dirty(), update_type(), and Volume.
|
inline |
References m_list.
Referenced by Slic3r::GUI::MenuFactory::append_menu_item_edit_svg(), Slic3r::GUI::MenuFactory::append_menu_item_edit_text(), Slic3r::GUI::do_local_z_rotate(), anonymous_namespace{SurfaceDrag.cpp}::is_embossed_object(), Slic3r::GUI::GLGizmoAssembly::on_is_activable(), Slic3r::GUI::GLGizmoMeasure::on_is_activable(), and update_type().
|
private |
Referenced by init(), render_sidebar_position_hints(), and render_sidebar_scale_hints().
|
private |
Referenced by render_bounding_box().
|
private |
Referenced by get_bounding_box(), and set_bounding_boxes_dirty().
|
private |
Referenced by get_bounding_box_in_current_reference_system(), and set_bounding_boxes_dirty().
|
private |
Referenced by get_bounding_sphere(), and set_bounding_boxes_dirty().
|
private |
Referenced by render_bounding_box().
|
private |
Referenced by copy_to_clipboard(), ensure_on_bed(), erase(), get_auto_drop(), get_content(), get_drop_min_z(), get_instance_idx(), get_instance_idxs(), get_object_idx(), get_selected_object_instances(), move_to_center(), rotate(), scale_and_translate(), set_auto_drop(), set_caches(), set_printable(), synchronize_unselected_instances(), translate(), and update_type().
|
private |
|
private |
Referenced by init(), and render_sidebar_rotation_hints().
|
private |
Referenced by Selection(), is_enabled(), and set_enabled().
|
private |
Referenced by get_full_scaled_instance_bounding_box(), and set_bounding_boxes_dirty().
|
private |
Referenced by get_full_unscaled_instance_bounding_box(), and set_bounding_boxes_dirty().
|
private |
Referenced by get_full_unscaled_instance_local_bounding_box(), and set_bounding_boxes_dirty().
|
private |
Referenced by add(), add_all(), clear(), contains_all_volumes(), contains_any_volume(), contains_volume(), copy_to_clipboard(), do_add_volume(), do_remove_volume(), ensure_not_below_bed(), erase(), flattening_rotate(), get_bounding_box(), get_bounding_box_in_reference_system(), get_bounding_sphere(), get_first_volume(), get_full_scaled_instance_bounding_box(), get_full_unscaled_instance_bounding_box(), get_full_unscaled_instance_local_bounding_box(), get_missing_volume_idxs_from(), get_scaled_instance_bounding_box(), get_unscaled_instance_bounding_box(), get_unselected_volume_idxs_from(), get_volume_idxs(), instances_changed(), is_from_fully_selected_instance(), is_single_full_instance(), is_single_text(), is_single_volume_instance(), is_sla_compliant(), matches(), move_to_center(), notify_instance_update(), render_sidebar_hints(), render_synchronized_volumes(), rotate(), rotate(), rotate(), scale_and_translate(), set_deserialized(), synchronize_unselected_instances(), synchronize_unselected_volumes(), translate(), translate(), translate(), update_type(), volumes_changed(), and volumes_count().
|
private |
Referenced by Selection(), add(), add_all(), add_curr_plate(), add_instance(), add_object(), add_object_from_idx(), add_volume(), add_volumes(), copy_to_clipboard(), flattening_rotate(), get_bounding_box_in_current_reference_system(), get_drop_min_z(), get_mode(), instances_changed(), is_from_fully_selected_instance(), is_instance_mode(), is_sla_compliant(), move_to_center(), paste_from_clipboard(), remove(), remove_all(), remove_curr_plate(), remove_volumes(), render_synchronized_volumes(), requires_local_axes(), rotate(), scale_and_translate(), scale_to_fit_print_volume(), set_deserialized(), set_mode(), translate(), update_type(), and volumes_changed().
|
private |
Referenced by Selection(), copy_to_clipboard(), ensure_on_bed(), erase(), get_auto_drop(), get_bounding_box_in_reference_system(), get_bounding_sphere(), get_drop_min_z(), get_model(), get_volume_idxs_from_plate(), is_any_connector(), is_any_cut_volume(), is_from_fully_selected_instance(), is_single_full_instance(), is_single_text(), notify_instance_update(), paste_objects_from_clipboard(), paste_volumes_from_clipboard(), scale_and_translate(), set_auto_drop(), set_model(), set_printable(), synchronize_unselected_instances(), update_type(), and update_valid().
|
private |
Referenced by render_sidebar_layers_hints().
|
private |
Referenced by Selection(), render(), render_bounding_box(), render_bounding_box(), and render_bounding_box().
|
private |
Referenced by get_scaled_instance_bounding_box(), and set_bounding_boxes_dirty().
|
private |
|
private |
Referenced by get_unscaled_instance_bounding_box(), and set_bounding_boxes_dirty().
|
private |
Referenced by Selection(), add(), add_all(), add_curr_plate(), add_instance(), add_object(), add_object_from_idx(), add_volume(), add_volumes(), clear(), copy_to_clipboard(), erase(), flattening_rotate(), get_auto_drop(), get_bounding_box(), get_bounding_sphere(), get_drop_min_z(), get_full_scaled_instance_bounding_box(), get_full_unscaled_instance_bounding_box(), get_full_unscaled_instance_local_bounding_box(), get_scaled_instance_bounding_box(), get_unscaled_instance_bounding_box(), get_volume(), get_volume(), instances_changed(), is_single_full_instance(), move_to_center(), paste_from_clipboard(), remove(), remove_all(), remove_curr_plate(), remove_instance(), remove_object(), remove_volume(), remove_volumes(), render(), rotate(), rotate(), rotate(), scale_and_translate(), set_auto_drop(), set_deserialized(), set_printable(), setup_cache(), translate(), translate(), translate(), translate(), update_type(), update_valid(), and volumes_changed().
|
private |
Referenced by lock_volume_selection_mode(), set_volume_selection_mode(), and unlock_volume_selection_mode().
Referenced by add(), get_volume_selection_mode(), and set_volume_selection_mode().
|
private |
Referenced by Selection(), add(), add_all(), add_volumes(), contains_sinking_volumes(), do_add_volumes(), do_remove_instance(), do_remove_object(), ensure_not_below_bed(), ensure_on_bed(), get_bounding_box(), get_volume(), get_volume(), get_volume_idxs_from_instance(), get_volume_idxs_from_object(), get_volume_idxs_from_volume(), instances_changed(), is_any_connector(), is_from_fully_selected_instance(), is_single_full_instance(), is_sla_compliant(), query_real_volume_idx_from_other_view(), remove(), remove_volume(), remove_volumes(), render_synchronized_volumes(), rotate(), set_caches(), set_deserialized(), set_volumes(), synchronize_unselected_instances(), synchronize_unselected_volumes(), translate(), translate(), update_type(), and update_valid().