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

#include <src/libslic3r/Preset.hpp>

+ Collaboration diagram for Slic3r::Preset:

Public Types

enum  Type {
  TYPE_INVALID , TYPE_PRINT , TYPE_SLA_PRINT , TYPE_FILAMENT ,
  TYPE_SLA_MATERIAL , TYPE_PRINTER , TYPE_COUNT , TYPE_PHYSICAL_PRINTER ,
  TYPE_PREFERENCES
}
 

Public Member Functions

bool is_user () const
 
void save ()
 
std::string label () const
 
void set_dirty (const DynamicPrintConfig &config)
 
void set_dirty (bool dirty=true)
 
void reset_dirty ()
 
std::string & inherits ()
 
const std::string & inherits () const
 
std::string & compatible_prints_condition ()
 
const std::string & compatible_prints_condition () const
 
std::string & compatible_printers_condition ()
 
const std::string & compatible_printers_condition () const
 
PrinterTechnology printer_technology () const
 
PrinterTechnologyprinter_technology_ref ()
 
void set_visible_from_appconfig (const AppConfig &app_config)
 
void set_num_extruders (unsigned int n)
 
bool operator< (const Preset &other) const
 

Static Public Member Functions

static std::string & inherits (DynamicPrintConfig &cfg)
 
static std::string & compatible_prints_condition (DynamicPrintConfig &cfg)
 
static std::string & compatible_printers_condition (DynamicPrintConfig &cfg)
 
static PrinterTechnology printer_technology (const DynamicPrintConfig &cfg)
 
static const std::vector< std::string > & print_options ()
 
static const std::vector< std::string > & filament_options ()
 
static const std::vector< std::string > & printer_options ()
 
static const std::vector< std::string > & nozzle_options ()
 
static const std::vector< std::string > & machine_limits_options ()
 
static const std::vector< std::string > & sla_printer_options ()
 
static const std::vector< std::string > & sla_material_options ()
 
static const std::vector< std::string > & sla_print_options ()
 
static void update_suffix_modified (const std::string &new_suffix_modified)
 
static const std::string & suffix_modified ()
 
static std::string remove_suffix_modified (const std::string &name)
 
static void normalize (DynamicPrintConfig &config)
 
static std::string remove_invalid_keys (DynamicPrintConfig &config, const DynamicPrintConfig &default_config)
 

Public Attributes

Type type = TYPE_INVALID
 
bool is_default = false
 
bool is_external = false
 
bool is_system = false
 
bool is_visible = true
 
bool is_dirty = false
 
bool is_compatible = true
 
std::string name
 
std::string file
 
const VendorProfilevendor = nullptr
 
bool loaded = false
 
DynamicPrintConfig config
 
std::string alias
 
std::vector< std::string > renamed_from
 

Protected Member Functions

 Preset (Type type, const std::string &name, bool is_default=false)
 
 Preset ()=default
 

Friends

class PresetCollection
 
class PresetBundle
 

Detailed Description

Member Enumeration Documentation

◆ Type

Enumerator
TYPE_INVALID 
TYPE_PRINT 
TYPE_SLA_PRINT 
TYPE_FILAMENT 
TYPE_SLA_MATERIAL 
TYPE_PRINTER 
TYPE_COUNT 
TYPE_PHYSICAL_PRINTER 
TYPE_PREFERENCES 
110 {
118 // This type is here to support PresetConfigSubstitutions for physical printers, however it does not belong to the Preset class,
119 // PhysicalPrinter class is used instead.
121 // This type is here to support search through the Preferences
123 };
@ TYPE_SLA_PRINT
Definition Preset.hpp:113
@ TYPE_PRINTER
Definition Preset.hpp:116
@ TYPE_PHYSICAL_PRINTER
Definition Preset.hpp:120
@ TYPE_INVALID
Definition Preset.hpp:111
@ TYPE_PRINT
Definition Preset.hpp:112
@ TYPE_SLA_MATERIAL
Definition Preset.hpp:115
@ TYPE_PREFERENCES
Definition Preset.hpp:122
@ TYPE_COUNT
Definition Preset.hpp:117
@ TYPE_FILAMENT
Definition Preset.hpp:114

Constructor & Destructor Documentation

◆ Preset() [1/2]

Slic3r::Preset::Preset ( Type  type,
const std::string &  name,
bool  is_default = false 
)
inlineprotected
std::string name
Definition Preset.hpp:147
bool is_default
Definition Preset.hpp:129
Type type
Definition Preset.hpp:125

◆ Preset() [2/2]

Slic3r::Preset::Preset ( )
protecteddefault

Member Function Documentation

◆ compatible_printers_condition() [1/3]

std::string & Slic3r::Preset::compatible_printers_condition ( )
inline
193 {
194 assert(this->type == TYPE_PRINT || this->type == TYPE_SLA_PRINT || this->type == TYPE_FILAMENT || this->type == TYPE_SLA_MATERIAL);
196 }
DynamicPrintConfig config
Definition Preset.hpp:159
std::string & compatible_printers_condition()
Definition Preset.hpp:193

References compatible_printers_condition(), TYPE_FILAMENT, TYPE_PRINT, TYPE_SLA_MATERIAL, and TYPE_SLA_PRINT.

Referenced by compatible_printers_condition(), Slic3r::PresetBundle::full_fff_config(), and Slic3r::PresetBundle::load_config_file_config().

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

◆ compatible_printers_condition() [2/3]

const std::string & Slic3r::Preset::compatible_printers_condition ( ) const
inline
197{ return const_cast<Preset*>(this)->compatible_printers_condition(); }
Preset()=default

References compatible_printers_condition().

Referenced by compatible_printers_condition().

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

◆ compatible_printers_condition() [3/3]

static std::string & Slic3r::Preset::compatible_printers_condition ( DynamicPrintConfig cfg)
inlinestatic
192{ return cfg.option<ConfigOptionString>("compatible_printers_condition", true)->value; }

References Slic3r::ConfigBase::option().

Referenced by Slic3r::PresetBundle::PresetBundle(), Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), Slic3r::is_compatible_with_printer(), and Slic3r::GUI::Tab::save_preset().

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

◆ compatible_prints_condition() [1/3]

std::string & Slic3r::Preset::compatible_prints_condition ( )
inline
185 {
186 assert(this->type == TYPE_FILAMENT || this->type == TYPE_SLA_MATERIAL);
188 }
std::string & compatible_prints_condition()
Definition Preset.hpp:185

References compatible_prints_condition(), TYPE_FILAMENT, and TYPE_SLA_MATERIAL.

Referenced by compatible_prints_condition(), Slic3r::PresetBundle::full_fff_config(), and Slic3r::PresetBundle::load_config_file_config().

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

◆ compatible_prints_condition() [2/3]

const std::string & Slic3r::Preset::compatible_prints_condition ( ) const
inline
189{ return const_cast<Preset*>(this)->compatible_prints_condition(); }

References compatible_prints_condition().

Referenced by compatible_prints_condition().

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

◆ compatible_prints_condition() [3/3]

static std::string & Slic3r::Preset::compatible_prints_condition ( DynamicPrintConfig cfg)
inlinestatic
184{ return cfg.option<ConfigOptionString>("compatible_prints_condition", true)->value; }

References Slic3r::ConfigBase::option().

Referenced by Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), and Slic3r::is_compatible_with_print().

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

◆ filament_options()

const std::vector< std::string > & Slic3r::Preset::filament_options ( )
static
static std::vector< std::string > s_Preset_filament_options
Definition Preset.cpp:464

References Slic3r::s_Preset_filament_options.

Referenced by normalize().

+ Here is the caller graph for this function:

◆ inherits() [1/3]

std::string & Slic3r::Preset::inherits ( )
inline
180{ return Preset::inherits(this->config); }
std::string & inherits()
Definition Preset.hpp:180

References inherits().

Referenced by Slic3r::PresetBundle::full_fff_config(), inherits(), inherits(), Slic3r::PresetBundle::load_config_file_config(), and Slic3r::PresetCollection::load_external_preset().

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

◆ inherits() [2/3]

const std::string & Slic3r::Preset::inherits ( ) const
inline
181{ return Preset::inherits(const_cast<Preset*>(this)->config); }

References config, and inherits().

+ Here is the call graph for this function:

◆ inherits() [3/3]

static std::string & Slic3r::Preset::inherits ( DynamicPrintConfig cfg)
inlinestatic
179{ return cfg.option<ConfigOptionString>("inherits", true)->value; }

References Slic3r::ConfigBase::option().

Referenced by Slic3r::PresetBundle::PresetBundle(), Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), Slic3r::PresetCollection::get_preset_parent(), Slic3r::PresetCollection::get_preset_with_name(), Slic3r::PresetCollection::get_selected_preset_parent(), and Slic3r::PresetCollection::save_current_preset().

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

◆ is_user()

bool Slic3r::Preset::is_user ( ) const
inline
144{ return ! this->is_default && ! this->is_system; }
bool is_system
Definition Preset.hpp:134

References is_system.

◆ label()

std::string Slic3r::Preset::label ( ) const
334{
335 return this->name + (this->is_dirty ? g_suffix_modified : "");
336}
bool is_dirty
Definition Preset.hpp:140
static std::string g_suffix_modified
Definition Preset.cpp:246

References Slic3r::g_suffix_modified, is_dirty, and name.

◆ machine_limits_options()

const std::vector< std::string > & Slic3r::Preset::machine_limits_options ( )
static
static std::vector< std::string > s_Preset_machine_limits_options
Definition Preset.cpp:480

References Slic3r::s_Preset_machine_limits_options.

◆ normalize()

void Slic3r::Preset::normalize ( DynamicPrintConfig config)
static
267{
268 auto *nozzle_diameter = dynamic_cast<const ConfigOptionFloats*>(config.option("nozzle_diameter"));
269 if (nozzle_diameter != nullptr)
270 // Loaded the FFF Printer settings. Verify, that all extruder dependent values have enough values.
271 config.set_num_extruders((unsigned int)nozzle_diameter->values.size());
272 if (config.option("filament_diameter") != nullptr) {
273 // This config contains single or multiple filament presets.
274 // Ensure that the filament preset vector options contain the correct number of values.
275 size_t n = (nozzle_diameter == nullptr) ? 1 : nozzle_diameter->values.size();
276 const auto &defaults = FullPrintConfig::defaults();
277 for (const std::string &key : Preset::filament_options()) {
278 if (key == "compatible_prints" || key == "compatible_printers")
279 continue;
280 auto *opt = config.option(key, false);
281 /*assert(opt != nullptr);
282 assert(opt->is_vector());*/
283 if (opt != nullptr && opt->is_vector())
284 static_cast<ConfigOptionVectorBase*>(opt)->resize(n, defaults.option(key));
285 }
286 // The following keys are mandatory for the UI, but they are not part of FullPrintConfig, therefore they are handled separately.
287 for (const std::string &key : { "filament_settings_id" }) {
288 auto *opt = config.option(key, false);
289 assert(opt == nullptr || opt->type() == coStrings);
290 if (opt != nullptr && opt->type() == coStrings)
291 static_cast<ConfigOptionStrings*>(opt)->values.resize(n, std::string());
292 }
293 }
294 if (const auto *gap_fill_speed = config.option<ConfigOptionFloat>("gap_fill_speed", false); gap_fill_speed && gap_fill_speed->value <= 0.) {
295 // Legacy conversion. If the gap fill speed is zero, it means the gap fill is not enabled.
296 // Set the new gap_fill_enabled value, so that it will show up in the UI as disabled.
297 if (auto *gap_fill_enabled = config.option<ConfigOptionBool>("gap_fill_enabled", false); gap_fill_enabled)
298 gap_fill_enabled->value = false;
299 }
300 if (auto *first_layer_height = config.option<ConfigOptionFloatOrPercent>("first_layer_height", false); first_layer_height && first_layer_height->percent)
301 if (const auto *layer_height = config.option<ConfigOptionFloat>("layer_height", false); layer_height) {
302 // Legacy conversion - first_layer_height moved from PrintObject setting to a Print setting, thus we are getting rid of the dependency
303 // of first_layer_height on PrintObject specific layer_height. Covert the first layer heigth to an absolute value.
304 first_layer_height->value = first_layer_height->get_abs_value(layer_height->value);
305 first_layer_height->percent = false;
306 }
307
309}
ConfigOption * option(const t_config_option_key &opt_key, bool create=false)
Definition Config.hpp:2169
void set_num_extruders(unsigned int num_extruders)
Definition PrintConfig.cpp:4411
static const std::vector< std::string > & filament_options()
Definition Preset.cpp:620
void handle_legacy_sla(DynamicPrintConfig &config)
Definition PrintConfig.cpp:4389
layer_height((ConfigOptionInt, faded_layers))((ConfigOptionFloat
gap_fill_speed((ConfigOptionFloatOrPercent, infill_anchor))((ConfigOptionFloatOrPercent
ConfigOptionFloatsTempl< false > ConfigOptionFloats
Definition Config.hpp:716
@ coStrings
Definition Config.hpp:174
constexpr auto size(const C &c) -> decltype(c.size())
Definition span.hpp:183

References config, Slic3r::coStrings, filament_options(), Slic3r::gap_fill_speed(), Slic3r::handle_legacy_sla(), Slic3r::layer_height(), Slic3r::ConfigBase::option(), Slic3r::ConfigOptionVector< T >::resize(), Slic3r::ConfigOptionVectorBase::resize(), and Slic3r::DynamicPrintConfig::set_num_extruders().

Referenced by Slic3r::PresetBundle::load_config_file(), Slic3r::PresetBundle::load_configbundle(), Slic3r::GUI::Plater::priv::load_files(), and Slic3r::PresetCollection::load_presets().

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

◆ nozzle_options()

const std::vector< std::string > & Slic3r::Preset::nozzle_options ( )
static
const std::vector< std::string > & extruder_option_keys() const
Definition PrintConfig.hpp:180
const PrintConfigDef print_config_def
Definition PrintConfig.cpp:4288

References Slic3r::PrintConfigDef::extruder_option_keys(), and Slic3r::print_config_def.

Referenced by printer_options().

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

◆ operator<()

bool Slic3r::Preset::operator< ( const Preset other) const
inline
218{ return this->name < other.name; }

References name.

◆ print_options()

const std::vector< std::string > & Slic3r::Preset::print_options ( )
static
619{ return s_Preset_print_options; }
static std::vector< std::string > s_Preset_print_options
Definition Preset.cpp:425

References Slic3r::s_Preset_print_options.

◆ printer_options()

const std::vector< std::string > & Slic3r::Preset::printer_options ( )
static
630{
631 static std::vector<std::string> s_opts = [](){
632 std::vector<std::string> opts = s_Preset_printer_options;
635 return opts;
636 }();
637 return s_opts;
638}
static const std::vector< std::string > & nozzle_options()
Definition Preset.cpp:624
static std::vector< std::string > s_Preset_printer_options
Definition Preset.cpp:488
void append(std::vector< T, Alloc > &dest, const std::vector< T, Alloc2 > &src)
Definition libslic3r.h:110

References Slic3r::append(), nozzle_options(), Slic3r::s_Preset_machine_limits_options, and Slic3r::s_Preset_printer_options.

+ Here is the call graph for this function:

◆ printer_technology() [1/2]

PrinterTechnology Slic3r::Preset::printer_technology ( ) const
inline
207{ return Preset::printer_technology(this->config); }
PrinterTechnology printer_technology() const
Definition Preset.hpp:207

References printer_technology().

Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings(), Slic3r::GUI::SLAImportJob::finalize(), Slic3r::PresetBundle::load_config_file_config(), Slic3r::GUI::Plater::priv::load_files(), printer_technology(), and Slic3r::GUI::PhysicalPrinterDialog::update().

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

◆ printer_technology() [2/2]

static PrinterTechnology Slic3r::Preset::printer_technology ( const DynamicPrintConfig cfg)
inlinestatic
200 {
201 auto *opt = cfg.option<ConfigOptionEnum<PrinterTechnology>>("printer_technology");
202 // The following assert may trigger when importing some legacy profile,
203 // but it is safer to keep it here to capture the cases where the "printer_technology" key is queried, where it should not.
204// assert(opt != nullptr);
205 return (opt == nullptr) ? ptFFF : opt->value;
206 }
@ ptFFF
Definition Config.hpp:207
ConfigOptionEnum< PrinterTechnology >
Definition PrintConfig.hpp:1079

References Slic3r::ConfigBase::option(), and Slic3r::ptFFF.

Referenced by Slic3r::GUI::PresetForPrinter::PresetForPrinter(), Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog(), Slic3r::GUI::GUI_App::apply_keeped_preset_modifications(), Slic3r::GUI::UnsavedChangesDialog::build(), Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), Slic3r::GUI::Tab::compatible_widget_create(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::GUI_App::extruders_cnt(), Slic3r::GUI::GUI_App::extruders_edited_cnt(), Slic3r::PresetBundle::full_config(), Slic3r::GUI::GUI_App::get_active_preset_collections(), Slic3r::PresetCollection::get_selected_preset_parent(), Slic3r::GUI::GUI_App::has_current_preset_changes(), Slic3r::GUI::GUI_App::has_unsaved_preset_changes(), Slic3r::GUI::Tab::load_current_preset(), Slic3r::GUI::GUI_App::load_current_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::GUI::GUI_App::run_wizard(), Slic3r::GUI::Tab::select_preset(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), Slic3r::GUI::TabSLAMaterial::update(), Slic3r::GUI::TabSLAPrint::update(), Slic3r::GUI::PresetComboBox::update(), Slic3r::GUI::Sidebar::update_all_preset_comboboxes(), Slic3r::GUI::DiffPresetDialog::update_compatibility(), Slic3r::PresetBundle::update_compatible(), Slic3r::GUI::Tab::update_preset_description_line(), Slic3r::GUI::Sidebar::update_presets(), Slic3r::GUI::GUI_App::update_saved_preset_from_current_preset(), and Slic3r::GUI::DiffPresetDialog::update_tree().

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

◆ printer_technology_ref()

PrinterTechnology & Slic3r::Preset::printer_technology_ref ( )
inline
209{ return this->config.option<ConfigOptionEnum<PrinterTechnology>>("printer_technology", true)->value; }

References Slic3r::ConfigBase::option().

Referenced by Slic3r::PresetBundle::PresetBundle().

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

◆ remove_invalid_keys()

std::string Slic3r::Preset::remove_invalid_keys ( DynamicPrintConfig config,
const DynamicPrintConfig default_config 
)
static
312{
313 std::string incorrect_keys;
314 for (const std::string &key : config.keys())
315 if (! default_config.has(key)) {
316 if (incorrect_keys.empty())
317 incorrect_keys = key;
318 else {
319 incorrect_keys += ", ";
320 incorrect_keys += key;
321 }
322 config.erase(key);
323 }
324 return incorrect_keys;
325}
bool erase(const t_config_option_key &opt_key)
Definition Config.hpp:2405
if(!(yy_init))
Definition lexer.c:1190

References config, Slic3r::DynamicConfig::erase(), Slic3r::ConfigOptionResolver::has(), and Slic3r::DynamicConfig::keys().

Referenced by Slic3r::PresetBundle::load_configbundle(), and Slic3r::PresetCollection::load_presets().

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

◆ remove_suffix_modified()

std::string Slic3r::Preset::remove_suffix_modified ( const std::string &  name)
static

◆ reset_dirty()

void Slic3r::Preset::reset_dirty ( )
inline
176{ this->is_dirty = false; }

◆ save()

void Slic3r::Preset::save ( )
328{
329 this->config.save(this->file);
330}
void save(const std::string &file) const
Definition Config.cpp:1030
std::string file
Definition Preset.hpp:151

References config, file, and Slic3r::ConfigBase::save().

Referenced by Slic3r::PresetBundle::load_config_file_config(), Slic3r::PresetBundle::load_configbundle(), Slic3r::PresetCollection::save_current_preset(), and Slic3r::PresetBundle::transfer_and_save().

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

◆ set_dirty() [1/2]

void Slic3r::Preset::set_dirty ( bool  dirty = true)
inline
175{ this->is_dirty = dirty; }

◆ set_dirty() [2/2]

void Slic3r::Preset::set_dirty ( const DynamicPrintConfig config)
inline
174{ this->is_dirty = ! this->config.diff(config).empty(); }
t_config_option_keys diff(const DynamicConfig &other) const
Definition Config.cpp:1298

References config, and Slic3r::DynamicConfig::diff().

+ Here is the call graph for this function:

◆ set_num_extruders()

void Slic3r::Preset::set_num_extruders ( unsigned int  n)
inline
215{ this->config.set_num_extruders(n); }

References Slic3r::DynamicPrintConfig::set_num_extruders().

+ Here is the call graph for this function:

◆ set_visible_from_appconfig()

void Slic3r::Preset::set_visible_from_appconfig ( const AppConfig app_config)
395{
396 if (vendor == nullptr) { return; }
397
398 if (type == TYPE_PRINTER) {
399 const std::string &model = config.opt_string("printer_model");
400 const std::string &variant = config.opt_string("printer_variant");
401 if (model.empty() || variant.empty())
402 return;
403 is_visible = app_config.get_variant(vendor->id, model, variant);
404 } else if (type == TYPE_FILAMENT || type == TYPE_SLA_MATERIAL) {
405 const std::string &section_name = (type == TYPE_FILAMENT) ? AppConfig::SECTION_FILAMENTS : AppConfig::SECTION_MATERIALS;
406 if (type == TYPE_FILAMENT && app_config.get_bool("no_templates") && vendor && vendor->templates_profile)
407 is_visible = false;
408 else if (app_config.has_section(section_name)) {
409 // Check whether this profile is marked as "installed" in PrusaSlicer.ini,
410 // or whether a profile is marked as "installed", which this profile may have been renamed from.
411 const std::map<std::string, std::string> &installed = app_config.get_section(section_name);
412 auto has = [&installed](const std::string &name) {
413 auto it = installed.find(name);
414 return it != installed.end() && ! it->second.empty();
415 };
416 is_visible = has(this->name);
417 for (auto it = this->renamed_from.begin(); ! is_visible && it != this->renamed_from.end(); ++ it)
418 is_visible = has(*it);
419 }
420 else
421 is_visible = false;
422 }
423}
static const std::string SECTION_FILAMENTS
Definition AppConfig.hpp:171
std::string & opt_string(const t_config_option_key &opt_key, bool create=false)
Definition Config.hpp:2276
std::vector< std::string > renamed_from
Definition Preset.hpp:166
bool is_visible
Definition Preset.hpp:138
const VendorProfile * vendor
Definition Preset.hpp:153
bool templates_profile
Definition Preset.hpp:37
std::string id
Definition Preset.hpp:33

References config, Slic3r::AppConfig::get_bool(), Slic3r::AppConfig::get_section(), Slic3r::AppConfig::get_variant(), Slic3r::AppConfig::has_section(), Slic3r::VendorProfile::id, is_visible, name, Slic3r::ConfigBase::opt_string(), renamed_from, Slic3r::AppConfig::SECTION_FILAMENTS, Slic3r::AppConfig::SECTION_MATERIALS, Slic3r::VendorProfile::templates_profile, type, TYPE_FILAMENT, TYPE_PRINTER, TYPE_SLA_MATERIAL, and vendor.

+ Here is the call graph for this function:

◆ sla_material_options()

const std::vector< std::string > & Slic3r::Preset::sla_material_options ( )
static
static std::vector< std::string > s_Preset_sla_material_options
Definition Preset.cpp:574

References Slic3r::s_Preset_sla_material_options.

◆ sla_print_options()

const std::vector< std::string > & Slic3r::Preset::sla_print_options ( )
static
static std::vector< std::string > s_Preset_sla_print_options
Definition Preset.cpp:503

References Slic3r::s_Preset_sla_print_options.

◆ sla_printer_options()

const std::vector< std::string > & Slic3r::Preset::sla_printer_options ( )
static
static std::vector< std::string > s_Preset_sla_printer_options
Definition Preset.cpp:596

References Slic3r::s_Preset_sla_printer_options.

Referenced by Slic3r::PresetBundle::PresetBundle().

+ Here is the caller graph for this function:

◆ suffix_modified()

const std::string & Slic3r::Preset::suffix_modified ( )
static
248{
249 return g_suffix_modified;
250}

References Slic3r::g_suffix_modified.

Referenced by Slic3r::GUI::GLGizmoEmboss::draw_style_list(), Slic3r::GUI::get_preset_name_with_suffix(), Slic3r::GUI::suffix(), and Slic3r::GUI::suffix().

+ Here is the caller graph for this function:

◆ update_suffix_modified()

void Slic3r::Preset::update_suffix_modified ( const std::string &  new_suffix_modified)
static
253{
254 g_suffix_modified = new_suffix_modified;
255}

References Slic3r::g_suffix_modified.

Referenced by Slic3r::GUI::GUI_App::load_language().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ PresetBundle

friend class PresetBundle
friend

◆ PresetCollection

friend class PresetCollection
friend

Member Data Documentation

◆ alias

◆ config

DynamicPrintConfig Slic3r::Preset::config

Referenced by Slic3r::PresetBundle::PresetBundle(), Slic3r::PresetCollection::PresetCollection(), Slic3r::GUI::TabPrinter::build_fff(), Slic3r::PresetHints::cooling_description(), Slic3r::GUI::Bed3D::detect_type(), Slic3r::PresetCollection::dirty_options(), Slic3r::GUI::GUI_App::extruders_cnt(), Slic3r::GUI::GUI_App::extruders_edited_cnt(), Slic3r::PrinterPresetCollection::find_system_preset_by_model_and_variant(), Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), Slic3r::GUI::Materials::get_filament_type(), Slic3r::GUI::Materials::get_filament_vendor(), Slic3r::GUI::Materials::get_material_type(), Slic3r::GUI::Materials::get_material_vendor(), Slic3r::PresetCollection::get_preset_with_name(), inherits(), Slic3r::is_compatible_with_print(), Slic3r::is_compatible_with_printer(), Slic3r::is_compatible_with_printer(), Slic3r::PresetCollection::is_dirty(), Slic3r::PresetBundle::load_config_file_config(), Slic3r::PresetBundle::load_config_file_config_bundle(), Slic3r::PresetBundle::load_configbundle(), Slic3r::GUI::Tab::load_current_preset(), Slic3r::PresetCollection::load_external_preset(), Slic3r::PresetCollection::load_preset(), Slic3r::PresetCollection::load_presets(), Slic3r::PhysicalPrinterCollection::load_printers_from_presets(), Slic3r::PresetHints::maximum_volumetric_flow_description(), Slic3r::GUI::Tab::may_discard_current_dirty_preset(), normalize(), Slic3r::PresetHints::recommended_thin_wall_thickness(), remove_invalid_keys(), save(), Slic3r::PresetBundle::save_changes_for_preset(), Slic3r::PresetCollection::save_current_preset(), Slic3r::GUI::Tab::save_preset(), set_dirty(), set_visible_from_appconfig(), Slic3r::PresetUtils::system_printer_model(), Slic3r::GUI::anonymous_namespace{HintNotification.cpp}::tag_check_material(), Slic3r::GUI::TabSLAMaterial::toggle_options(), Slic3r::PresetHints::top_bottom_shell_thickness_explanation(), Slic3r::PresetBundle::transfer_and_save(), Slic3r::GUI::Tab::transfer_options(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::PresetBundle::update_compatible(), Slic3r::PresetCollection::update_compatible_internal(), Slic3r::ExtruderFilaments::update_compatible_internal(), Slic3r::GUI::Plater::update_filament_colors_in_full_config(), Slic3r::PresetBundle::update_filaments_compatible(), Slic3r::PhysicalPrinter::update_from_preset(), Slic3r::GUI::PhysicalPrinterDialog::update_host_type(), Slic3r::GUI::Tab::update_preset_description_line(), Slic3r::GUI::Sidebar::update_presets(), and Slic3r::GUI::DiffPresetDialog::update_tree().

◆ file

◆ is_compatible

◆ is_default

◆ is_dirty

◆ is_external

◆ is_system

◆ is_visible

◆ loaded

bool Slic3r::Preset::loaded = false

◆ name

std::string Slic3r::Preset::name

Referenced by Slic3r::GUI::PhysicalPrinterDialog::PhysicalPrinterDialog(), Slic3r::GUI::PresetForPrinter::PresetForPrinter(), Slic3r::GUI::UnsavedChangesDialog::build(), Slic3r::GUI::Plater::check_selected_presets_visibility(), Slic3r::GUI::Tab::compatible_widget_create(), Slic3r::GUI::DiffPresetDialog::create_buttons(), Slic3r::GUI::DiffPresetDialog::create_presets_sizer(), Slic3r::PresetCollection::find_preset(), Slic3r::GUI::SavePresetDialog::Item::get_init_preset_name(), Slic3r::GUI::PresetComboBox::get_preset_name(), Slic3r::GUI::PlaterPresetComboBox::get_preset_name(), Slic3r::GUI::TabPresetComboBox::get_preset_name(), Slic3r::GUI::get_preset_name_with_suffix(), Slic3r::PresetCollection::get_preset_with_name(), Slic3r::PresetCollection::get_selected_preset_name(), Slic3r::is_compatible_with_print(), Slic3r::is_compatible_with_printer(), Slic3r::is_compatible_with_printer(), label(), Slic3r::PresetBundle::load_configbundle(), Slic3r::PresetCollection::load_external_preset(), Slic3r::PresetCollection::load_presets(), Slic3r::PhysicalPrinterCollection::load_printers_from_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), Slic3r::PresetCollection::merge_presets(), Slic3r::GUI::Plater::priv::on_slicing_update(), Slic3r::Filament::operator<(), operator<(), remove_suffix_modified(), Slic3r::GUI::Tab::rename_preset(), Slic3r::GUI::UnsavedChangesDialog::save(), Slic3r::PresetCollection::save_current_preset(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), set_visible_from_appconfig(), Slic3r::PresetCollection::system_preset_names(), Slic3r::GUI::Tab::transfer_options(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::UnsavedChangesDialog::update(), Slic3r::GUI::PresetComboBox::update(), Slic3r::PresetBundle::update_compatible(), Slic3r::PresetCollection::update_compatible_internal(), Slic3r::ExtruderFilaments::update_compatible_internal(), Slic3r::GUI::TabPresetComboBox::update_dirty(), Slic3r::PresetBundle::update_filaments_compatible(), Slic3r::GUI::PresetComboBox::update_from_bundle(), Slic3r::PhysicalPrinter::update_from_preset(), Slic3r::GUI::PageMaterials::update_lists(), Slic3r::PresetCollection::update_map_alias_to_profile_name(), Slic3r::PresetCollection::update_map_system_profile_renamed(), Slic3r::GUI::Tab::update_preset_description_line(), and Slic3r::GUI::DiffPresetDialog::update_tree().

◆ renamed_from

◆ type

◆ vendor


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