#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ConfigWizard_private.hpp>
|
| static const std::string | UNKNOWN = L("(Unknown)") |
◆ Materials()
| Slic3r::GUI::Materials::Materials |
( |
Technology | technology | ) |
|
|
inline |
Technology technology
Definition ConfigWizard_private.hpp:105
References technology.
◆ add_printer()
| void Slic3r::GUI::Materials::add_printer |
( |
const Preset * | preset | ) |
|
1734{
1736}
std::set< const Preset * > printers
Definition ConfigWizard_private.hpp:111
References printers.
◆ appconfig_section()
| const std::string & Slic3r::GUI::Materials::appconfig_section |
( |
| ) |
const |
◆ clear()
| void Slic3r::GUI::Materials::clear |
( |
| ) |
|
1739{
1744}
std::set< std::string > types
Definition ConfigWizard_private.hpp:110
std::vector< const Preset * > presets
Definition ConfigWizard_private.hpp:107
std::vector< std::pair< std::string, size_t > > compatibility_counter
Definition ConfigWizard_private.hpp:109
References compatibility_counter, presets, printers, and types.
◆ containts()
| bool Slic3r::GUI::Materials::containts |
( |
const Preset * | preset | ) |
const |
|
inline |
118 {
119
121 [preset](
const Preset* element) { return element == preset; }) !=
presets.end();
122
123 }
@ Preset
Definition calib.hpp:39
References presets.
◆ filter_presets()
| void Slic3r::GUI::Materials::filter_presets |
( |
const Preset * | printer, |
|
|
const std::string & | type, |
|
|
const std::string & | vendor, |
|
|
F | cb ) |
|
inline |
152 {
154 const Preset& prst = *(preset);
155 const Preset& prntr = *printer;
156 if ((printer ==
nullptr ||
is_compatible_with_printer(PresetWithVendorProfile(prst, prst.vendor), PresetWithVendorProfile(prntr, prntr.vendor))) &&
157 (type.empty() ||
get_type(preset) == type) &&
158 (vendor.empty() ||
get_vendor(preset) == vendor)) {
159
160 cb(preset);
161 }
162 }
163 }
bool is_compatible_with_printer(const PresetWithVendorProfile &preset, const PresetWithVendorProfile &active_printer, const DynamicPrintConfig *extra_config)
Definition Preset.cpp:909
const std::string & get_vendor(const Preset *preset) const
Definition ConfigWizard.cpp:1756
const std::string & get_type(const Preset *preset) const
Definition ConfigWizard.cpp:1751
References Slic3r::F, get_type(), get_vendor(), Slic3r::is_compatible_with_printer(), presets, and Slic3r::Preset::vendor.
◆ get_filament_type()
| const std::string & Slic3r::GUI::Materials::get_filament_type |
( |
const Preset * | preset | ) |
|
|
static |
1762{
1763 const auto *opt = preset->config.opt<ConfigOptionStrings>("filament_type");
1764 if (opt != nullptr && opt->values.size() > 0) {
1765 return opt->values[0];
1766 } else {
1768 }
1769}
static const std::string UNKNOWN
Definition ConfigWizard_private.hpp:165
References Slic3r::Preset::config, Slic3r::DynamicConfig::opt(), and UNKNOWN.
Referenced by get_type(), and push().
◆ get_filament_vendor()
| const std::string & Slic3r::GUI::Materials::get_filament_vendor |
( |
const Preset * | preset | ) |
|
|
static |
◆ get_material_type()
| const std::string & Slic3r::GUI::Materials::get_material_type |
( |
const Preset * | preset | ) |
|
|
static |
◆ get_material_vendor()
| const std::string & Slic3r::GUI::Materials::get_material_vendor |
( |
const Preset * | preset | ) |
|
|
static |
◆ get_omnipresent()
| bool Slic3r::GUI::Materials::get_omnipresent |
( |
const Preset * | preset | ) |
|
|
inline |
125 {
127 }
size_t get_printer_counter(const Preset *preset)
Definition ConfigWizard_private.hpp:140
References get_printer_counter(), and printers.
◆ get_presets_by_alias()
| const std::vector< const Preset * > Slic3r::GUI::Materials::get_presets_by_alias |
( |
const std::string | name | ) |
|
|
inline |
129 {
130 std::vector<const Preset*> ret_vec;
132 if ((*it)->alias == name)
133 ret_vec.push_back((*it));
134 }
135 return ret_vec;
136 }
References presets.
◆ get_printer_counter()
| size_t Slic3r::GUI::Materials::get_printer_counter |
( |
const Preset * | preset | ) |
|
|
inline |
◆ get_type()
| const std::string & Slic3r::GUI::Materials::get_type |
( |
const Preset * | preset | ) |
const |
◆ get_vendor()
| const std::string & Slic3r::GUI::Materials::get_vendor |
( |
const Preset * | preset | ) |
const |
◆ push()
| void Slic3r::GUI::Materials::push |
( |
const Preset * | preset | ) |
|
◆ compatibility_counter
| std::vector<std::pair<std::string, size_t> > Slic3r::GUI::Materials::compatibility_counter |
◆ presets
| std::vector<const Preset*> Slic3r::GUI::Materials::presets |
◆ printers
| std::set<const Preset*> Slic3r::GUI::Materials::printers |
◆ technology
◆ types
| std::set<std::string> Slic3r::GUI::Materials::types |
◆ UNKNOWN
| const std::string Slic3r::GUI::Materials::UNKNOWN = L("(Unknown)") |
|
static |
The documentation for this struct was generated from the following files: