#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Preset.hpp>
|
| static VendorProfile | from_ini (const boost::filesystem::path &path, bool load_all=true) |
| static VendorProfile | from_ini (const boost::property_tree::ptree &tree, const boost::filesystem::path &path, bool load_all=true) |
◆ VendorProfile() [1/2]
| Slic3r::VendorProfile::VendorProfile |
( |
| ) |
|
|
inline |
◆ VendorProfile() [2/2]
| Slic3r::VendorProfile::VendorProfile |
( |
std::string | id | ) |
|
|
inline |
199:
id(std::move(
id)) {}
std::string id
Definition Preset.hpp:137
References id.
◆ families()
| std::vector< std::string > Slic3r::VendorProfile::families |
( |
| ) |
const |
489{
490 std::vector<std::string> res;
491 unsigned num_familiies = 0;
492
493 for (
auto &model :
models) {
494 if (std::find(res.begin(), res.end(), model.family) == res.end()) {
495 res.push_back(model.family);
496 num_familiies++;
497 }
498 }
499
500 return res;
501}
std::vector< PrinterModel > models
Definition Preset.hpp:193
References models.
Referenced by Slic3r::GUI::PagePrinters::PagePrinters().
◆ from_ini() [1/2]
| VendorProfile Slic3r::VendorProfile::from_ini |
( |
const boost::filesystem::path & | path, |
|
|
bool | load_all = true ) |
|
static |
282{
283 ptree tree;
284 boost::filesystem::ifstream ifs(path);
285 boost::property_tree::read_ini(ifs, tree);
287}
static VendorProfile from_ini(const boost::filesystem::path &path, bool load_all=true)
Definition Preset.cpp:281
References VendorProfile(), and from_ini().
Referenced by from_ini().
◆ from_ini() [2/2]
| VendorProfile Slic3r::VendorProfile::from_ini |
( |
const boost::property_tree::ptree & | tree, |
|
|
const boost::filesystem::path & | path, |
|
|
bool | load_all = true ) |
|
static |
◆ num_variants()
| size_t Slic3r::VendorProfile::num_variants |
( |
| ) |
const |
|
inline |
216{
size_t n = 0;
for (
auto &model :
models) n += model.variants.size();
return n; }
References models.
◆ operator<()
| bool Slic3r::VendorProfile::operator< |
( |
const VendorProfile & | rhs | ) |
const |
|
inline |
◆ operator==()
| bool Slic3r::VendorProfile::operator== |
( |
const VendorProfile & | rhs | ) |
const |
|
inline |
◆ serialize()
template<class Archive>
| void Slic3r::VendorProfile::serialize |
( |
Archive & | ar | ) |
|
|
inline |
206 {
209 }
std::string name
Definition Preset.hpp:136
std::set< std::string > default_filaments
Definition Preset.hpp:195
std::string config_update_url
Definition Preset.hpp:139
std::string changelog_url
Definition Preset.hpp:140
Semver config_version
Definition Preset.hpp:138
std::set< std::string > default_sla_materials
Definition Preset.hpp:196
References changelog_url, config_update_url, config_version, default_filaments, default_sla_materials, models, and name.
◆ valid()
| bool Slic3r::VendorProfile::valid |
( |
| ) |
const |
|
inline |
◆ changelog_url
| std::string Slic3r::VendorProfile::changelog_url |
◆ config_update_url
| std::string Slic3r::VendorProfile::config_update_url |
◆ config_version
| Semver Slic3r::VendorProfile::config_version |
◆ default_filaments
| std::set<std::string> Slic3r::VendorProfile::default_filaments |
◆ default_sla_materials
| std::set<std::string> Slic3r::VendorProfile::default_sla_materials |
◆ id
| std::string Slic3r::VendorProfile::id |
Referenced by Slic3r::GUI::PrinterPicker::PrinterPicker(), VendorProfile(), Slic3r::GUI::ConfigWizard::priv::create_3rdparty_pages(), Slic3r::PresetBundle::get_custom_vendor_models(), Slic3r::GUI::Tab::on_presets_changed(), operator<(), operator==(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::PresetUtils::system_printer_bed_model(), Slic3r::PresetUtils::system_printer_bed_texture(), and Slic3r::PresetUtils::system_printer_hotend_model().
◆ models
Referenced by Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::PrinterPicker::PrinterPicker(), Slic3r::GUI::GuideFrame::apply_config(), Slic3r::GUI::ConfigWizard::priv::create_3rdparty_pages(), families(), Slic3r::PresetBundle::get_custom_vendor_models(), Slic3r::GUI::get_exist_vendor_choices(), num_variants(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::GUI::CreatePrinterPresetDialog::printer_preset_sort_with_nozzle_diameter(), Slic3r::PresetBundle::resolve_vendor_preset(), serialize(), and Slic3r::PresetUtils::system_printer_model().
◆ name
| std::string Slic3r::VendorProfile::name |
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