Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::ModelConfigObject Class Reference

#include <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)
 
void set_deserialize_strict (const t_config_option_key &opt_key, const std::string &str, bool append=false)
 
bool erase (const t_config_option_key &opt_key)
 
const DynamicPrintConfigget () 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 ConfigOptionoption (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
 
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 ()
 
ModelConfigObjectoperator= (const ModelConfigObject &rhs)=default
 
ModelConfigObjectoperator= (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

Constructor & Destructor Documentation

◆ ModelConfigObject() [1/4]

Slic3r::ModelConfigObject::ModelConfigObject ( )
explicitprivatedefault

◆ ModelConfigObject() [2/4]

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

◆ ModelConfigObject() [3/4]

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

◆ ModelConfigObject() [4/4]

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

Member Function Documentation

◆ apply() [1/2]

void Slic3r::ModelConfig::apply ( const ConfigBase other,
bool  ignore_nonexistent = false 
)
inlineinherited
1253{ m_data.apply_only(other, other.keys(), ignore_nonexistent); this->touch(); }
void apply_only(const ConfigBase &other, const t_config_option_keys &keys, bool ignore_nonexistent=false)
Definition Config.cpp:466
void touch()
Definition PrintConfig.hpp:1288
DynamicPrintConfig m_data
Definition PrintConfig.hpp:1295

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

+ Here is the call graph for this function:

◆ apply() [2/2]

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

References Slic3r::ModelConfig::apply(), and Slic3r::ModelConfig::get().

Referenced by Slic3r::ModelConfig::apply(), Slic3r::GUI::Plater::priv::reload_from_disk(), and Slic3r::GUI::Plater::priv::replace_volume_with_stl().

+ 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
1255{ m_data.apply_only(other, keys, ignore_nonexistent); this->touch(); }
t_config_option_keys keys() const
Definition PrintConfig.hpp:1273

References Slic3r::ConfigBase::apply_only(), Slic3r::ModelConfig::keys(), Slic3r::ModelConfig::m_data, and Slic3r::ModelConfig::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
1254{ 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:1254

References Slic3r::ModelConfig::apply_only(), Slic3r::ModelConfig::get(), and Slic3r::ModelConfig::keys().

Referenced by Slic3r::ModelConfig::apply_only(), and Slic3r::GUI::ObjectSettings::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
1250{ if (m_data != rhs) { m_data = rhs; this->touch(); } }

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

+ Here is the call graph for this function:

◆ assign_config() [2/4]

void Slic3r::ModelConfig::assign_config ( const ModelConfig rhs)
inlineinherited
1233 {
1234 if (m_timestamp != rhs.m_timestamp) {
1235 m_data = rhs.m_data;
1236 m_timestamp = rhs.m_timestamp;
1237 }
1238 }
uint64_t m_timestamp
Definition PrintConfig.hpp:1294

References Slic3r::ModelConfig::m_data, and Slic3r::ModelConfig::m_timestamp.

Referenced by Slic3r::Print::apply(), Slic3r::SLAPrint::apply(), Slic3r::ModelObject::convert_units(), Slic3r::GUI::Selection::copy_to_clipboard(), Slic3r::model_volume_list_copy_configs(), and Slic3r::ModelObject::split().

+ Here is the caller graph for this function:

◆ assign_config() [3/4]

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

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

+ Here is the call graph for this function:

◆ assign_config() [4/4]

void Slic3r::ModelConfig::assign_config ( ModelConfig &&  rhs)
inlineinherited
1239 {
1240 if (m_timestamp != rhs.m_timestamp) {
1241 m_data = std::move(rhs.m_data);
1242 m_timestamp = rhs.m_timestamp;
1243 rhs.reset();
1244 }
1245 }

References Slic3r::ModelConfig::m_data, and Slic3r::ModelConfig::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.

79{ this->set_new_unique_id(); }
void set_new_unique_id()
Definition ObjectID.hpp:73

References Slic3r::ObjectBase::set_new_unique_id().

+ Here is the call graph for this function:

◆ cbegin()

auto Slic3r::ModelConfig::cbegin ( ) const
inlineinherited
1271{ return m_data.cbegin(); }
std::map< t_config_option_key, std::unique_ptr< ConfigOption > >::const_iterator cbegin() const
Definition Config.hpp:2453

References Slic3r::DynamicConfig::cbegin(), and Slic3r::ModelConfig::m_data.

+ Here is the call graph for this function:

◆ cend()

auto Slic3r::ModelConfig::cend ( ) const
inlineinherited
1272{ return m_data.cend(); }
std::map< t_config_option_key, std::unique_ptr< ConfigOption > >::const_iterator cend() const
Definition Config.hpp:2454

References Slic3r::DynamicConfig::cend(), and Slic3r::ModelConfig::m_data.

+ Here is the call graph for this function:

◆ copy_id()

void Slic3r::ObjectBase::copy_id ( const ObjectBase rhs)
inlineprotectedinherited
76{ m_id = rhs.id(); }
ObjectID m_id
Definition ObjectID.hpp:82
size_t id
Definition ObjectID.hpp:37

References Slic3r::ObjectBase::id(), and Slic3r::ObjectBase::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
1269{ return m_data.empty(); }
bool empty() const
Definition Config.hpp:2426

References Slic3r::DynamicConfig::empty(), and Slic3r::ModelConfig::m_data.

+ Here is the call graph for this function:

◆ erase()

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

References Slic3r::DynamicConfig::erase(), Slic3r::ModelConfig::m_data, and Slic3r::ModelConfig::touch().

Referenced by Slic3r::GUI::ObjectList::add_category_to_settings_from_selection(), and Slic3r::GUI::ObjectList::set_extruder_for_selected_items().

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

◆ extruder()

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

References Slic3r::ModelConfig::opt_int().

Referenced by Slic3r::GUI::MenuFactory::append_menu_item_change_extruder(), Slic3r::GUI::ObjectList::del_settings_from_config(), Slic3r::GUI::ObjectList::del_subobject_from_object(), Slic3r::GUI::ObjectList::delete_from_model_and_list(), Slic3r::GUI::ObjectList::set_extruder_for_selected_items(), and Slic3r::GUI::ObjectList::update_extruder_values_for_items().

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

◆ generate_new_id()

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

References Slic3r::ObjectBase::s_last_id.

Referenced by Slic3r::ObjectBase::set_new_unique_id().

+ Here is the caller graph for this function:

◆ get()

◆ has()

bool Slic3r::ModelConfig::has ( const t_config_option_key opt_key) const
inlineinherited
1274{ return m_data.has(opt_key); }
bool has(const t_config_option_key &opt_key) const
Definition Config.hpp:2105

References Slic3r::ConfigOptionResolver::has(), and Slic3r::ModelConfig::m_data.

Referenced by Slic3r::GUI::ObjectList::add_layer_item(), Slic3r::GUI::ObjectSettings::add_missed_options(), Slic3r::GUI::MenuFactory::append_menu_item_change_extruder(), Slic3r::GUI::ObjectList::del_settings_from_config(), Slic3r::GUI::ObjectList::delete_from_model_and_list(), Slic3r::GUI::ObjectList::get_default_layer_config(), Slic3r::GUI::ObjectList::set_extruder_for_selected_items(), Slic3r::ModelObject::split(), and Slic3r::GUI::ObjectList::update_extruder_values_for_items().

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

◆ id()

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

References Slic3r::ObjectBase::m_id.

Referenced by 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::_3MF_Importer::_load_model_from_file(), Slic3r::GUI::Plater::priv::actualize_slicing_warnings(), Slic3r::ModelObjectStatusDB::add(), Slic3r::ModelObjectStatusDB::add_if_new(), Slic3r::Print::apply(), Slic3r::SLAPrint::apply(), Slic3r::GUI::GLGizmoFdmSupports::apply_data_from_backend(), Slic3r::ModelVolume::check(), Slic3r::check_model_ids_equal(), Slic3r::ModelObject::convert_units(), Slic3r::ObjectBase::copy_id(), Slic3r::PrintObjectStatusDB::count(), anonymous_namespace{RaycastManager.cpp}::create_key(), priv::create_volume(), Slic3r::GUI::Emboss::create_volume_sources(), Slic3r::GUI::GLGizmoHollow::data_changed(), Slic3r::GUI::GLGizmoPainterBase::data_changed(), Slic3r::GUI::GLGizmoSlaSupports::data_changed(), Slic3r::Model::delete_object(), Slic3r::GUI::Plater::export_stl_obj(), Slic3r::ModelObjectStatusDB::get(), Slic3r::GUI::get_arrange_poly(), Slic3r::GUI::GLGizmoSlaSupports::get_data_from_backend(), Slic3r::PrintObjectStatusDB::get_range(), Slic3r::GUI::GLGizmoFdmSupports::has_backend_supports(), Slic3r::GUI::GLGizmoSlaSupports::has_backend_supports(), Slic3r::CutObjectBase::has_same_id(), Slic3r::UndoRedo::StackImpl::immutable_object_id_impl(), Slic3r::GUI::GLGizmoSimplify::init_model(), Slic3r::inner_brim_area(), Slic3r::ModelObject::is_cut(), Slic3r::CutObjectBase::is_equal(), Slic3r::ObjectBase::load_and_construct(), Slic3r::UndoRedo::StackImpl::load_snapshot(), Slic3r::GUI::ObjectList::merge(), Slic3r::model_property_changed(), Slic3r::model_volume_list_changed(), Slic3r::model_volume_list_copy_configs(), object_id_and_timestamp_match(), Slic3r::ObjectWithTimestamp::object_id_and_timestamp_match(), Slic3r::GUI::GLGizmoEmboss::on_mouse_change_selection(), Slic3r::GUI::CommonGizmosDataObjects::SelectionInfo::on_update(), Slic3r::CutObjectBase::operator<(), Slic3r::Model::operator=(), Slic3r::ModelObject::operator=(), Slic3r::ModelObject::operator=(), Slic3r::CutObjectBase::operator==(), Slic3r::GUI::GLGizmoCut3D::perform_cut(), Slic3r::GUI::GLGizmoEmboss::process(), Slic3r::GUI::processed_objects_idxs(), Slic3r::GUI::GLCanvas3D::reload_scene(), Slic3r::GUI::GLCanvas3D::LayersEditing::select_object(), Slic3r::ModelMaterial::serialize(), Slic3r::SLAPrintObject::SliceRecord::set_model_slice_idx(), Slic3r::SLAPrintObject::SliceRecord::set_support_slice_idx(), Slic3r::slices_to_regions(), Slic3r::ModelObject::split(), Slic3r::UndoRedo::StackImpl::take_snapshot(), Slic3r::top_level_outer_brim_area(), Slic3r::GUI::update_object_cut_id(), and anonymous_namespace{EmbossJob.cpp}::update_volume_name().

◆ keys()

t_config_option_keys Slic3r::ModelConfig::keys ( ) const
inlineinherited
1273{ return m_data.keys(); }
t_config_option_keys keys() const override
Definition Config.cpp:1233

References Slic3r::DynamicConfig::keys(), and Slic3r::ModelConfig::m_data.

Referenced by Slic3r::_3MF_Exporter::_add_layer_config_ranges_file_to_archive(), Slic3r::_3MF_Exporter::_add_model_config_file_to_archive(), Slic3r::GUI::ObjectList::add_category_to_settings_from_frequent(), Slic3r::GUI::ObjectList::add_category_to_settings_from_selection(), Slic3r::ModelConfig::apply_only(), Slic3r::ModelConfig::apply_only(), Slic3r::GUI::create_settings_popupmenu(), Slic3r::GUI::ObjectList::del_settings_from_config(), Slic3r::GUI::ObjectList::merge(), and Slic3r::GUI::ObjectSettings::update_config_values().

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

◆ load_and_construct()

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

References Slic3r::ObjectBase::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
74{ return this->id() == rhs.id() && this->timestamp() == rhs.timestamp(); }
Timestamp timestamp() const override
Definition Model.hpp:73

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

+ Here is the call graph for this function:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ opt_float()

double Slic3r::ModelConfig::opt_float ( const t_config_option_key opt_key) const
inlineinherited
1278{ return m_data.opt_float(opt_key); }
double & opt_float(const t_config_option_key &opt_key)
Definition Config.hpp:2281

References Slic3r::ModelConfig::m_data, and Slic3r::ConfigBase::opt_float().

Referenced by Slic3r::GUI::ObjectList::del_settings_from_config(), Slic3r::GUI::ObjectList::edit_layer_range(), and Slic3r::GUI::ObjectList::get_default_layer_config().

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

◆ opt_int()

int Slic3r::ModelConfig::opt_int ( const t_config_option_key opt_key) const
inlineinherited
1276{ return m_data.opt_int(opt_key); }
int & opt_int(const t_config_option_key &opt_key)
Definition Config.hpp:2286

References Slic3r::ModelConfig::m_data, and Slic3r::ConfigBase::opt_int().

Referenced by Slic3r::GUI::ObjectList::add_layer_item(), Slic3r::GUI::ObjectList::edit_layer_range(), and Slic3r::ModelConfig::extruder().

+ Here is the call graph for this function:
+ 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
1279{ return m_data.opt_serialize(opt_key); }
std::string opt_serialize(const t_config_option_key &opt_key) const
Definition Config.cpp:528

References Slic3r::ModelConfig::m_data, and Slic3r::ConfigBase::opt_serialize().

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

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

◆ option()

const ConfigOption * Slic3r::ModelConfig::option ( const t_config_option_key opt_key) const
inlineinherited
1275{ return m_data.option(opt_key); }
ConfigOption * option(const t_config_option_key &opt_key, bool create=false)
Definition Config.hpp:2169

References Slic3r::ModelConfig::m_data, and Slic3r::ConfigBase::option().

Referenced by Slic3r::GUI::ObjectList::merge(), Slic3r::GUI::ObjectList::split(), and Slic3r::GUI::ConfigManipulation::toggle_field().

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

◆ reset()

void Slic3r::ModelConfig::reset ( )
inlineinherited
1231{ m_data.clear(); touch(); }
void clear()
Definition Config.hpp:2400

References Slic3r::DynamicConfig::clear(), Slic3r::ModelConfig::m_data, and Slic3r::ModelConfig::touch().

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

+ 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
80 {
81 ar(cereal::base_class<ModelConfig>(this));
82 }

◆ set()

template<typename T >
void Slic3r::ModelConfig::set ( const std::string &  opt_key,
value 
)
inlineinherited
1258{ m_data.set(opt_key, value, true); this->touch(); }
void set(const std::string &opt_key, bool value, bool create=false)
Definition Config.hpp:2226

References Slic3r::ModelConfig::m_data, Slic3r::ConfigBase::set(), and Slic3r::ModelConfig::touch().

Referenced by Slic3r::GUI::GLGizmoHollow::on_render_input_window(), Slic3r::GUI::GLGizmoSlaSupports::on_render_input_window(), and Slic3r::GUI::ObjectList::set_extruder_for_selected_items().

+ 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
1260 { m_data.set_deserialize(opt_key, str, substitution_context, append); this->touch(); }
void set_deserialize(const t_config_option_key &opt_key, const std::string &str, ConfigSubstitutionContext &config_substitutions, bool append=false)
Definition Config.cpp:571
void append(std::vector< T, Alloc > &dest, const std::vector< T, Alloc2 > &src)
Definition libslic3r.h:110

References Slic3r::append(), Slic3r::ModelConfig::m_data, Slic3r::ConfigBase::set_deserialize(), and Slic3r::ModelConfig::touch().

Referenced by Slic3r::_3MF_Importer::_load_model_from_file(), and Slic3r::AMFParserContext::endElement().

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

◆ set_deserialize_strict()

void Slic3r::ModelConfig::set_deserialize_strict ( const t_config_option_key opt_key,
const std::string &  str,
bool  append = false 
)
inlineinherited
1262 { m_data.set_deserialize_strict(opt_key, str, append); this->touch(); }
void set_deserialize_strict(const t_config_option_key &opt_key, const std::string &str, bool append=false)
Definition Config.hpp:2240

References Slic3r::append(), Slic3r::ModelConfig::m_data, Slic3r::ConfigBase::set_deserialize_strict(), and Slic3r::ModelConfig::touch().

+ Here is the call graph for this function:

◆ set_invalid_id()

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

References Slic3r::ObjectBase::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

◆ set_new_unique_id()

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

References Slic3r::ObjectBase::generate_new_id(), and Slic3r::ObjectBase::m_id.

Referenced by Slic3r::ModelVolume::ModelVolume(), Slic3r::Model::assign_new_unique_ids_recursive(), Slic3r::ObjectBase::assign_new_unique_ids_recursive(), Slic3r::ModelObject::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
1270{ return m_data.size(); }
size_t size() const
Definition Config.hpp:2455

References Slic3r::ModelConfig::m_data, and Slic3r::DynamicConfig::size().

+ Here is the call graph for this function:

◆ timestamp()

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

Reimplemented from Slic3r::ObjectBase.

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

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
1286{ return m_timestamp == rhs.m_timestamp; }

References Slic3r::ModelConfig::m_timestamp.

Referenced by Slic3r::Print::apply(), and Slic3r::SLAPrint::apply().

+ Here is the caller graph for this function:

◆ touch()

Friends And Related Symbol Documentation

◆ cereal::access

friend class cereal::access
friend

◆ ModelMaterial

friend class ModelMaterial
friend

◆ ModelObject

friend class ModelObject
friend

◆ ModelVolume

friend class ModelVolume
friend

◆ UndoRedo::StackImpl

friend class UndoRedo::StackImpl
friend

Member Data Documentation

◆ m_data

◆ m_id

◆ m_timestamp

◆ s_last_id

size_t Slic3r::ObjectBase::s_last_id = 0
staticprivateinherited

◆ s_last_timestamp

uint64_t Slic3r::ModelConfig::s_last_timestamp = 1
staticprivateinherited

The documentation for this class was generated from the following file: