#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Preset.hpp>
◆ PhysicalPrinter() [1/2]
| Slic3r::PhysicalPrinter::PhysicalPrinter |
( |
const std::string & | name, |
|
|
const DynamicPrintConfig & | default_config ) |
4677 :
4679{
4681}
void update_from_config(const DynamicPrintConfig &new_config)
Definition Preset.cpp:4646
std::string name
Definition Preset.hpp:1156
DynamicPrintConfig config
Definition Preset.hpp:1160
References config, name, and update_from_config().
Referenced by operator<().
◆ PhysicalPrinter() [2/2]
| Slic3r::PhysicalPrinter::PhysicalPrinter |
( |
const std::string & | name, |
|
|
const DynamicPrintConfig & | default_config, |
|
|
const Preset & | preset ) |
◆ add_preset()
| bool Slic3r::PhysicalPrinter::add_preset |
( |
const std::string & | preset_name | ) |
|
◆ delete_preset()
| bool Slic3r::PhysicalPrinter::delete_preset |
( |
const std::string & | preset_name | ) |
|
◆ get_full_name()
| std::string Slic3r::PhysicalPrinter::get_full_name |
( |
std::string | preset_name | ) |
const |
◆ get_preset_name()
| std::string Slic3r::PhysicalPrinter::get_preset_name |
( |
std::string | full_name | ) |
|
|
static |
◆ get_preset_names()
| const std::set< std::string > & Slic3r::PhysicalPrinter::get_preset_names |
( |
| ) |
const |
◆ get_short_name()
| std::string Slic3r::PhysicalPrinter::get_short_name |
( |
std::string | full_name | ) |
|
|
static |
◆ has_print_host_information()
| bool Slic3r::PhysicalPrinter::has_print_host_information |
( |
const DynamicPrintConfig & | config | ) |
|
|
static |
◆ operator<()
| bool Slic3r::PhysicalPrinter::operator< |
( |
const PhysicalPrinter & | other | ) |
const |
|
inline |
◆ presets_with_print_host_information()
| std::vector< std::string > Slic3r::PhysicalPrinter::presets_with_print_host_information |
( |
const PrinterPresetCollection & | printer_presets | ) |
|
|
static |
◆ print_host_options()
| const std::vector< std::string > & Slic3r::PhysicalPrinter::print_host_options |
( |
| ) |
|
|
static |
◆ printer_options()
| const std::vector< std::string > & Slic3r::PhysicalPrinter::printer_options |
( |
| ) |
|
|
static |
◆ printer_technology() [1/2]
◆ printer_technology() [2/2]
1192 {
1194
1195
1196 return (opt ==
nullptr) ?
ptFFF : opt->value;
1197 }
@ ptFFF
Definition Config.hpp:231
ConfigOptionEnum< PrinterTechnology >
Definition PrintConfig.hpp:2358
References Slic3r::ConfigBase::option(), and Slic3r::ptFFF.
◆ reset_presets()
| void Slic3r::PhysicalPrinter::reset_presets |
( |
| ) |
|
◆ save() [1/2]
| void Slic3r::PhysicalPrinter::save |
( |
const std::string & | file_name_from, |
|
|
const std::string & | file_name_to ) |
4627{
4629
4630 boost::nowide::rename(file_name_from.data(), file_name_to.data());
4631 this->
file = file_name_to;
4632
4633
4634
4635 this->
config.save_to_json(this->
file, std::string(
"Physical_Printer"), std::string(
"User"), std::string(SLIC3R_VERSION));
4636}
std::string file
Definition Preset.hpp:1158
std::string user_presets_lock_path(bool read_only)
Definition Preset.cpp:146
References config, file, and Slic3r::user_presets_lock_path().
◆ save() [2/2]
◆ separator()
| std::string Slic3r::PhysicalPrinter::separator |
( |
| ) |
|
|
static |
◆ set_name()
| void Slic3r::PhysicalPrinter::set_name |
( |
const std::string & | name | ) |
|
◆ update_from_config()
4647{
4649
4650 const std::vector<std::string>& values =
config.option<ConfigOptionStrings>(
"preset_names")->values;
4651
4652 if (values.empty())
4654 else {
4655 for (const std::string& val : values)
4657
4659 }
4660}
static const std::vector< std::string > & printer_options()
Definition Preset.cpp:4572
static void update_preset_name_option(const std::set< std::string > &preset_names, DynamicPrintConfig &config)
Definition Preset.cpp:4598
References config, preset_names, printer_options(), and Slic3r::update_preset_name_option().
Referenced by PhysicalPrinter(), and print_host_options().
◆ update_from_preset()
| void Slic3r::PhysicalPrinter::update_from_preset |
( |
const Preset & | preset | ) |
|
◆ update_preset_names_in_config()
| void Slic3r::PhysicalPrinter::update_preset_names_in_config |
( |
| ) |
|
◆ PhysicalPrinterCollection
| friend class PhysicalPrinterCollection |
|
friend |
◆ config
◆ file
| std::string Slic3r::PhysicalPrinter::file |
◆ loaded
| bool Slic3r::PhysicalPrinter::loaded = false |
◆ name
| std::string Slic3r::PhysicalPrinter::name |
◆ preset_names
| std::set<std::string> Slic3r::PhysicalPrinter::preset_names |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Preset.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Preset.cpp