#include <src/libslic3r/Config.hpp>
◆ ConfigOptionResolver()
| Slic3r::ConfigOptionResolver::ConfigOptionResolver |
( |
| ) |
|
|
inline |
◆ ~ConfigOptionResolver()
| virtual Slic3r::ConfigOptionResolver::~ConfigOptionResolver |
( |
| ) |
|
|
inlinevirtual |
◆ has()
2105{
return this->
optptr(opt_key) !=
nullptr; }
virtual const ConfigOption * optptr(const t_config_option_key &opt_key) const =0
References optptr().
Referenced by Slic3r::GUI::Bed3D::detect_type(), Slic3r::PresetCollection::dirty_options(), Slic3r::anonymous_namespace{AnycubicSLA.cpp}::fill_header(), Slic3r::anonymous_namespace{SL1.cpp}::get_cfg_value(), Slic3r::anonymous_namespace{AnycubicSLA.cpp}::get_cfg_value_f(), Slic3r::anonymous_namespace{AnycubicSLA.cpp}::get_cfg_value_i(), Slic3r::GUI::GLGizmoHollow::get_config_options(), Slic3r::GUI::GLGizmoSlaSupports::get_config_options(), Slic3r::GUI::Plater::get_extruder_colors_from_plater_config(), Slic3r::GUI::ConfigOptionsGroup::get_option(), Slic3r::handle_legacy_project_loaded(), Slic3r::handle_legacy_sla(), Slic3r::ModelConfig::has(), Slic3r::PresetCollection::is_dirty(), Slic3r::DynamicPrintConfig::normalize_fdm(), Slic3r::DynamicConfig::read_cli(), Slic3r::GUI::GLCanvas3D::reload_scene(), Slic3r::Preset::remove_invalid_keys(), and Slic3r::PresetBundle::update_compatible().
◆ option() [1/2]
◆ option() [2/2]
2111 {
2112 const ConfigOption* opt = this->
optptr(opt_key);
2113 return (opt == nullptr || opt->type() != TYPE::static_type()) ? nullptr : static_cast<const TYPE*>(opt);
2114 }
References optptr(), and Slic3r::ConfigOption::type().
◆ option_throw() [1/2]
2117 {
2118 const ConfigOption* opt = this->
optptr(opt_key);
2119 if (opt == nullptr)
2120 throw UnknownOptionException(opt_key);
2121 return opt;
2122 }
References optptr().
Referenced by option_throw().
◆ option_throw() [2/2]
2126 {
2128 if (opt->type() != TYPE::static_type())
2129 throw BadOptionTypeException("Conversion to a wrong type");
2130 return static_cast<TYPE*>(opt);
2131 }
const ConfigOption * option_throw(const t_config_option_key &opt_key) const
Definition Config.hpp:2116
References option_throw(), and Slic3r::ConfigOption::type().
◆ optptr()
The documentation for this class was generated from the following file: