OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ModelConfigObject Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Model.hpp>

Inheritance diagram for Slic3r::ModelConfigObject:
Collaboration diagram for Slic3r::ModelConfigObject:

Public Types

using Timestamp = uint64_t

Public Member Functions

ObjectID id () const
void reset ()
void assign_config (const ModelConfig &rhs)
void assign_config (ModelConfig &&rhs)
void assign_config (const DynamicPrintConfig &rhs)
void assign_config (DynamicPrintConfig &&rhs)
void apply (const ModelConfig &other, bool ignore_nonexistent=false)
void apply (const ConfigBase &other, bool ignore_nonexistent=false)
void apply_only (const ModelConfig &other, const t_config_option_keys &keys, bool ignore_nonexistent=false)
void apply_only (const ConfigBase &other, const t_config_option_keys &keys, bool ignore_nonexistent=false)
bool set_key_value (const std::string &opt_key, ConfigOption *opt)
template<typename T>
void set (const std::string &opt_key, T value)
void set_deserialize (const t_config_option_key &opt_key, const std::string &str, ConfigSubstitutionContext &substitution_context, bool append=false)
bool erase (const t_config_option_key &opt_key)
const DynamicPrintConfig & get () const throw ()
bool empty () const throw ()
size_t size () const throw ()
auto cbegin () const
auto cend () const
t_config_option_keys keys () const
bool has (const t_config_option_key &opt_key) const
const ConfigOption * option (const t_config_option_key &opt_key) const
int opt_int (const t_config_option_key &opt_key) const
int extruder () const
double opt_float (const t_config_option_key &opt_key) const
double get_abs_value (const t_config_option_key &opt_key) const
std::string opt_serialize (const t_config_option_key &opt_key) const
bool timestamp_matches (const ModelConfig &rhs) const throw ()
void touch ()

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

 ModelConfigObject ()=default
 ModelConfigObject (int)
 ModelConfigObject (const ModelConfigObject &cfg)=default
 ModelConfigObject (ModelConfigObject &&cfg)=default
Timestamp timestamp () const override throw ()
bool object_id_and_timestamp_match (const ModelConfigObject &rhs) const throw ()
ModelConfigObject & operator= (const ModelConfigObject &rhs)=default
ModelConfigObject & operator= (ModelConfigObject &&rhs)=default
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

ObjectID m_id
uint64_t m_timestamp { 1 }
DynamicPrintConfig m_data

Static Private Attributes

static size_t s_last_id = 0
static uint64_t s_last_timestamp = 1

Friends

class cereal::access
class UndoRedo::StackImpl
class ModelObject
class ModelVolume
class ModelMaterial

Detailed Description

Member Typedef Documentation

◆ Timestamp

using Slic3r::ObjectBase::Timestamp = uint64_t
inherited

Constructor & Destructor Documentation

◆ ModelConfigObject() [1/4]

Slic3r::ModelConfigObject::ModelConfigObject ( )
explicitprivatedefault

Referenced by ModelConfigObject(), ModelConfigObject(), object_id_and_timestamp_match(), operator=(), and operator=().

Here is the caller graph for this function:

◆ ModelConfigObject() [2/4]

Slic3r::ModelConfigObject::ModelConfigObject ( int )
inlineexplicitprivate
100: ObjectBase(-1) {}
ObjectBase()
Definition ObjectID.hpp:79

References Slic3r::ObjectBase::ObjectBase().

Here is the call graph for this function:

◆ ModelConfigObject() [3/4]

Slic3r::ModelConfigObject::ModelConfigObject ( const ModelConfigObject & cfg)
explicitprivatedefault

References ModelConfigObject().

Here is the call graph for this function:

◆ ModelConfigObject() [4/4]

Slic3r::ModelConfigObject::ModelConfigObject ( ModelConfigObject && cfg)
explicitprivatedefault

References ModelConfigObject().

Here is the call graph for this function:

Member Function Documentation

◆ apply() [1/2]

void Slic3r::ModelConfig::apply ( const ConfigBase & other,
bool ignore_nonexistent = false )
inlineinherited
2632{ m_data.apply_only(other, other.keys(), ignore_nonexistent); this->touch(); }
void touch()
Definition PrintConfig.hpp:2670
DynamicPrintConfig m_data
Definition PrintConfig.hpp:2677

References Slic3r::ConfigBase::keys(), m_data, and touch().

Here is the call graph for this function:

◆ apply() [2/2]

void Slic3r::ModelConfig::apply ( const ModelConfig & other,
bool ignore_nonexistent = false )
inlineinherited
2631{ this->apply(other.get(), ignore_nonexistent); }
void apply(const ModelConfig &other, bool ignore_nonexistent=false)
Definition PrintConfig.hpp:2631

References apply(), and get().

Referenced by apply(), Slic3r::GUI::GLGizmoMeshBoolean::generate_new_volume(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::Plater::priv::replace_volume_with_stl(), and Slic3r::ModelObject::split().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_only() [1/2]

void Slic3r::ModelConfig::apply_only ( const ConfigBase & other,
const t_config_option_keys & keys,
bool ignore_nonexistent = false )
inlineinherited
2634{ m_data.apply_only(other, keys, ignore_nonexistent); this->touch(); }
t_config_option_keys keys() const
Definition PrintConfig.hpp:2650

References keys(), m_data, and touch().

Here is the call graph for this function:

◆ apply_only() [2/2]

void Slic3r::ModelConfig::apply_only ( const ModelConfig & other,
const t_config_option_keys & keys,
bool ignore_nonexistent = false )
inlineinherited
2633{ this->apply_only(other.get(), keys, ignore_nonexistent); }
void apply_only(const ModelConfig &other, const t_config_option_keys &keys, bool ignore_nonexistent=false)
Definition PrintConfig.hpp:2633

References apply_only(), get(), and keys().

Referenced by apply_only(), Slic3r::GUI::ObjectSettings::update_config_values(), and Slic3r::GUI::ObjectTableSettings::update_config_values().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign_config() [1/4]

void Slic3r::ModelConfig::assign_config ( const DynamicPrintConfig & rhs)
inlineinherited
2629{ if (m_data != rhs) { m_data = rhs; this->touch(); } }

References m_data, and touch().

Here is the call graph for this function:

◆ assign_config() [2/4]

void Slic3r::ModelConfig::assign_config ( const ModelConfig & rhs)
inlineinherited

◆ assign_config() [3/4]

void Slic3r::ModelConfig::assign_config ( DynamicPrintConfig && rhs)
inlineinherited
2630{ if (m_data != rhs) { m_data = std::move(rhs); this->touch(); } }

References m_data, and touch().

Here is the call graph for this function:

◆ assign_config() [4/4]

void Slic3r::ModelConfig::assign_config ( ModelConfig && rhs)
inlineinherited
2618 {
2619 if (m_timestamp != rhs.m_timestamp) {
2620 m_data = std::move(rhs.m_data);
2621 m_timestamp = rhs.m_timestamp;
2622 rhs.reset();
2623 }
2624 }

References m_data, and m_timestamp.

◆ assign_new_unique_ids_recursive()

virtual void Slic3r::ObjectBase::assign_new_unique_ids_recursive ( )
inlineprotectedvirtualinherited

Reimplemented in Slic3r::Model, Slic3r::ModelObject, and Slic3r::ModelVolume.

95{ this->set_new_unique_id(); }
void set_new_unique_id()
Definition ObjectID.hpp:89

References set_new_unique_id().

Here is the call graph for this function:

◆ cbegin()

auto Slic3r::ModelConfig::cbegin ( ) const
inlineinherited
2648{ return m_data.cbegin(); }

References m_data.

◆ cend()

auto Slic3r::ModelConfig::cend ( ) const
inlineinherited
2649{ return m_data.cend(); }

References m_data.

◆ copy_id()

void Slic3r::ObjectBase::copy_id ( const ObjectBase & rhs)
inlineprotectedinherited
92{ m_id = rhs.id(); }
ObjectID m_id
Definition ObjectID.hpp:98

References ObjectBase(), id(), and m_id.

Referenced by Slic3r::CutObjectBase::copy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

bool Slic3r::ModelConfig::empty ( ) const
throw ( )
inlineinherited
2646{ return m_data.empty(); }

References m_data.

◆ erase()

bool Slic3r::ModelConfig::erase ( const t_config_option_key & opt_key)
inlineinherited
2640{ bool out = m_data.erase(opt_key); if (out) this->touch(); return out; }

References m_data, and touch().

Referenced by Slic3r::GUI::ObjectGridTable::construct_object_configs(), Slic3r::GUI::ObjectGridTable::reload_part_data(), Slic3r::GUI::ObjectTableSettings::resetAllValues(), Slic3r::GUI::ObjectList::set_extruder_for_selected_items(), Slic3r::GUI::ObjectGridTable::update_value_to_config(), and Slic3r::GUI::ObjectGridTable::update_volume_values_from_object().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extruder()

int Slic3r::ModelConfig::extruder ( ) const
inlineinherited
2654{ return opt_int("extruder"); }
int opt_int(const t_config_option_key &opt_key) const
Definition PrintConfig.hpp:2653

References opt_int().

Referenced by Slic3r::Model::add_object(), Slic3r::Model::add_object(), Slic3r::Model::add_object(), Slic3r::GUI::ObjectList::add_volumes_to_object_in_list(), Slic3r::GUI::ObjectDataViewModel::AddObject(), Slic3r::GUI::MenuFactory::append_menu_item_change_extruder(), Slic3r::GUI::MenuFactory::append_menu_item_change_filament(), Slic3r::GUI::Plater::priv::apply_textured_mesh_import_result(), Slic3r::GUI::PartPlate::check_single_extruder_mixed_filament_risk(), Slic3r::GUI::ObjectList::delete_from_model_and_list(), Slic3r::GUI::Plater::priv::load_files(), merge_or_add_object(), Slic3r::Print::process(), Slic3r::CLI::run(), and Slic3r::GUI::ObjectList::split().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_new_id()

ObjectID Slic3r::ObjectBase::generate_new_id ( )
inlinestaticprivateinherited
100{ return ObjectID(++ s_last_id); }
static size_t s_last_id
Definition ObjectID.hpp:101

References s_last_id.

Referenced by ObjectBase(), and set_new_unique_id().

Here is the caller graph for this function:

◆ get()

◆ get_abs_value()

double Slic3r::ModelConfig::get_abs_value ( const t_config_option_key & opt_key) const
inlineinherited
2658 {
2659 return m_data.get_abs_value(opt_key);
2660 }

References m_data.

◆ has()

◆ id()

ObjectID Slic3r::ObjectBase::id ( ) const
inlineinherited
69{ return m_id; }

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.

◆ keys()

◆ load_and_construct()

template<class Archive>
void Slic3r::ObjectBase::load_and_construct ( Archive & ar,
cereal::construct< ObjectBase > & construct )
inlinestaticprivateinherited
109{ ObjectID id; ar(id); construct(id); }
ObjectID id() const
Definition ObjectID.hpp:69

References id().

Here is the call graph for this function:

◆ object_id_and_timestamp_match()

bool Slic3r::ModelConfigObject::object_id_and_timestamp_match ( const ModelConfigObject & rhs) const
throw ( )
inlineprivate
107{ return this->id() == rhs.id() && this->timestamp() == rhs.timestamp(); }
Timestamp timestamp() const override
Definition Model.hpp:106
size_t id
Definition ObjectID.hpp:39

References ModelConfigObject(), Slic3r::ObjectBase::id(), Slic3r::ObjectID::id, and timestamp().

Here is the call graph for this function:

◆ operator=() [1/2]

ModelConfigObject & Slic3r::ModelConfigObject::operator= ( const ModelConfigObject & rhs)
privatedefault

References ModelConfigObject().

Here is the call graph for this function:

◆ operator=() [2/2]

ModelConfigObject & Slic3r::ModelConfigObject::operator= ( ModelConfigObject && rhs)
privatedefault

References ModelConfigObject().

Here is the call graph for this function:

◆ opt_float()

double Slic3r::ModelConfig::opt_float ( const t_config_option_key & opt_key) const
inlineinherited
2655 {
2656 return m_data.opt_float(opt_key);
2657 }

References m_data.

Referenced by Slic3r::GUI::ObjectList::get_default_layer_config().

Here is the caller graph for this function:

◆ opt_int()

int Slic3r::ModelConfig::opt_int ( const t_config_option_key & opt_key) const
inlineinherited
2653{ return m_data.opt_int(opt_key); }

References m_data.

Referenced by extruder(), Slic3r::GUI::ObjectList::get_default_layer_config(), Slic3r::GUI::ObjectList::load_generic_subobject(), and Slic3r::GUI::ObjectList::load_modifier().

Here is the caller graph for this function:

◆ opt_serialize()

std::string Slic3r::ModelConfig::opt_serialize ( const t_config_option_key & opt_key) const
inlineinherited
2661{ return m_data.opt_serialize(opt_key); }

References m_data.

Referenced by Slic3r::_3MF_Exporter::_add_layer_config_ranges_file_to_archive(), Slic3r::_BBS_3MF_Exporter::_add_layer_config_ranges_file_to_archive(), Slic3r::_3MF_Exporter::_add_model_config_file_to_archive(), and Slic3r::_BBS_3MF_Exporter::_add_model_config_file_to_archive().

Here is the caller graph for this function:

◆ option()

◆ reset()

void Slic3r::ModelConfig::reset ( )
inlineinherited
2610{ m_data.clear(); touch(); }

References m_data, and touch().

Referenced by Slic3r::GUI::ObjectList::last_volume_is_deleted(), Slic3r::GUI::Plater::priv::load_files(), Slic3r::ModelObject::split(), and Slic3r::GUI::ObjectTableSettings::update_config_values().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

template<class Archive>
void Slic3r::ModelConfigObject::serialize ( Archive & ar)
inlineprivate
113 {
114 ar(cereal::base_class<ModelConfig>(this));
115 }

◆ set()

template<typename T>
void Slic3r::ModelConfig::set ( const std::string & opt_key,
T value )
inlineinherited
2637{ m_data.set(opt_key, value, true); this->touch(); }

References m_data, and touch().

Referenced by Slic3r::GUI::Plater::priv::apply_textured_mesh_import_result(), Slic3r::Print::auto_assign_extruders(), Slic3r::GUI::Plater::priv::load_files(), and Slic3r::GUI::GLGizmoMmuSegmentation::remap_filament_assignments().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_deserialize()

void Slic3r::ModelConfig::set_deserialize ( const t_config_option_key & opt_key,
const std::string & str,
ConfigSubstitutionContext & substitution_context,
bool append = false )
inlineinherited
2639 { m_data.set_deserialize(opt_key, str, substitution_context, append); this->touch(); }
void append(std::vector< T, Alloc > &dest, const std::vector< T, Alloc2 > &src)
Definition libslic3r.h:157

References Slic3r::append(), m_data, and touch().

Referenced by Slic3r::_3MF_Importer::_generate_volumes(), Slic3r::_BBS_3MF_Importer::_generate_volumes_new(), Slic3r::_3MF_Importer::_load_model_from_file(), and construct_assemble_list().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_invalid_id()

void Slic3r::ObjectBase::set_invalid_id ( )
inlineprotectedinherited
90{ m_id = 0; }

References m_id.

Referenced by Slic3r::CutObjectBase::invalidate().

Here is the caller graph for this function:

◆ set_key_value()

bool Slic3r::ModelConfig::set_key_value ( const std::string & opt_key,
ConfigOption * opt )
inlineinherited
2635{ bool out = m_data.set_key_value(opt_key, opt); this->touch(); return out; }

References m_data, and touch().

Referenced by Slic3r::GUI::Plater::_calib_apply_belt_mode(), Slic3r::GUI::Plater::_calib_pa_pattern(), Slic3r::GUI::Plater::_calib_temp_belt_sectioned(), Slic3r::GUI::ObjectSettings::add_missed_options(), Slic3r::GUI::ObjectTableSettings::add_missed_options(), Slic3r::Model::add_object(), Slic3r::Model::add_object(), Slic3r::Model::add_object(), Slic3r::GUI::MenuFactory::append_menu_items_flush_options(), Slic3r::GUI::Plater::calib_retraction(), Slic3r::GUI::Plater::calib_temp(), construct_assemble_list(), Slic3r::GUI::ObjectGridTable::construct_object_configs(), anonymous_namespace{EmbossJob.cpp}::create_volume(), Slic3r::GUI::ensure_belt_purge_tower(), anonymous_namespace{EmbossJob.cpp}::CreateObjectJob::finalize(), Slic3r::GUI::ObjectList::last_volume_is_deleted(), Slic3r::GUI::ObjectList::load_generic_subobject(), Slic3r::GUI::ObjectList::load_mesh_object(), Slic3r::GUI::ObjectList::load_modifier(), Slic3r::GUI::ObjectList::merge(), merge_or_add_object(), Slic3r::CLI::run(), anonymous_namespace{OrcaSlicer_profile_validator.cpp}::slice_two_color_cube_and_export(), Slic3r::GUI::ObjectGridTable::update_filament_to_config(), and Slic3r::GUI::ObjectGridTable::update_value_to_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_new_unique_id()

void Slic3r::ObjectBase::set_new_unique_id ( )
inlineprotectedinherited
89{ m_id = generate_new_id(); }
static ObjectID generate_new_id()
Definition ObjectID.hpp:100

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

size_t Slic3r::ModelConfig::size ( ) const
throw ( )
inlineinherited
2647{ return m_data.size(); }

References m_data.

◆ timestamp()

Timestamp Slic3r::ModelConfigObject::timestamp ( ) const
throw ( )
inlineoverrideprivatevirtual

Reimplemented from Slic3r::ObjectBase.

106{ return this->ModelConfig::timestamp(); }
virtual uint64_t timestamp() const
Definition PrintConfig.hpp:2667

References Slic3r::ModelConfig::timestamp().

Referenced by object_id_and_timestamp_match().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timestamp_matches()

bool Slic3r::ModelConfig::timestamp_matches ( const ModelConfig & rhs) const
throw ( )
inlineinherited
2668{ return m_timestamp == rhs.m_timestamp; }

References m_timestamp.

Referenced by Slic3r::SLAPrint::apply().

Here is the caller graph for this function:

◆ touch()

void Slic3r::ModelConfig::touch ( )
inlineinherited
static uint64_t s_last_timestamp
Definition PrintConfig.hpp:2679

References m_timestamp, and s_last_timestamp.

Referenced by apply(), apply_only(), assign_config(), assign_config(), erase(), reset(), set(), set_deserialize(), set_key_value(), Slic3r::GUI::ObjectGridTable::update_filament_to_config(), and Slic3r::GUI::ObjectGridTable::update_value_to_config().

Here is the caller graph for this function:

◆ cereal::access

friend class cereal::access
friend

References cereal::access.

Referenced by cereal::access.

◆ ModelMaterial

friend class ModelMaterial
friend

References ModelMaterial.

Referenced by ModelMaterial.

◆ ModelObject

friend class ModelObject
friend

References ModelObject.

Referenced by ModelObject.

◆ ModelVolume

friend class ModelVolume
friend

References ModelVolume.

Referenced by ModelVolume.

◆ UndoRedo::StackImpl

friend class UndoRedo::StackImpl
friend

Member Data Documentation

◆ m_data

◆ m_id

ObjectID Slic3r::ObjectBase::m_id
privateinherited

◆ m_timestamp

uint64_t Slic3r::ModelConfig::m_timestamp { 1 }
privateinherited

◆ s_last_id

size_t Slic3r::ObjectBase::s_last_id = 0
staticprivateinherited

Referenced by generate_new_id().

◆ s_last_timestamp

uint64_t Slic3r::ModelConfig::s_last_timestamp = 1
staticprivateinherited

Referenced by touch().


The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Model.hpp