OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ConfigOptionResolver Class Referenceabstract

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Config.hpp>

Inheritance diagram for Slic3r::ConfigOptionResolver:

Public Member Functions

 ConfigOptionResolver ()
virtual ~ConfigOptionResolver ()
virtual const ConfigOption * optptr (const t_config_option_key &opt_key) const =0
bool has (const t_config_option_key &opt_key) const
const ConfigOption * option (const t_config_option_key &opt_key) const
template<typename TYPE>
const TYPE * option (const t_config_option_key &opt_key) const
const ConfigOption * option_throw (const t_config_option_key &opt_key) const
template<typename TYPE>
const TYPE * option_throw (const t_config_option_key &opt_key) const

Detailed Description

Constructor & Destructor Documentation

◆ ConfigOptionResolver()

Slic3r::ConfigOptionResolver::ConfigOptionResolver ( )
inline
2691{}

◆ ~ConfigOptionResolver()

virtual Slic3r::ConfigOptionResolver::~ConfigOptionResolver ( )
inlinevirtual
2692{}

Member Function Documentation

◆ has()

bool Slic3r::ConfigOptionResolver::has ( const t_config_option_key & opt_key) const
inline
2697{ return this->optptr(opt_key) != nullptr; }
virtual const ConfigOption * optptr(const t_config_option_key &opt_key) const =0

References optptr().

Referenced by Slic3r::_BBS_3MF_Exporter::_add_slice_info_config_file_to_archive(), Slic3r::active_bed_exclude_volume_mode(), Slic3r::append_bed_exclude_volumes(), Slic3r::append_printer_bed_assets(), Slic3r::GUI::change_opt_value(), Slic3r::GUI::ConfigManipulation::check_adaptive_pressure_advance_model(), Slic3r::GUI::PartPlateList::check_all_plate_local_bed_type(), Slic3r::GUI::ConfigManipulation::check_chamber_minimal_temperature(), Slic3r::GUI::ConfigManipulation::check_chamber_temperature(), Slic3r::GUI::ConfigManipulation::check_filament_max_volumetric_speed(), Slic3r::GUI::ConfigManipulation::check_nozzle_recommended_temperature_range(), Slic3r::GUI::ConfigManipulation::check_nozzle_temperature_initial_layer_range(), Slic3r::GUI::ConfigManipulation::check_nozzle_temperature_range(), Slic3r::config_value_or_none(), Slic3r::GUI::Bed3D::detect_type(), Slic3r::PresetCollection::dirty_options(), Slic3r::PresetCollection::dirty_options_without_option_list(), Slic3r::GUI::ensure_belt_purge_tower(), Slic3r::extend_default_config_length(), Slic3r::extend_extruder_variant(), Slic3r::anonymous_namespace{PluginResolver.cpp}::find_option_for_capability(), Slic3r::get_bed_excluded_regions_by_extruder(), Slic3r::GUI::PartPlate::get_bed_type(), Slic3r::anonymous_namespace{SL1.cpp}::get_cfg_value(), Slic3r::GUI::GLGizmoBrimEars::get_config_options(), Slic3r::GUI::ConfigOptionsGroup::get_config_value(), Slic3r::GUI::get_formatted_tooltip_text(), Slic3r::get_instance_arrange_poly(), Slic3r::GUI::PartPlate::get_object_filament_extruders(), Slic3r::GUI::OrientJob::get_orient_mesh(), Slic3r::DynamicPrintConfig::get_parameter_size(), Slic3r::GUI::CalibrationPresetPage::get_print_preset(), Slic3r::GUI::PartPlate::get_spiral_vase_mode(), Slic3r::GUI::ConfigManipulation::get_temperature_range(), Slic3r::GUI::PresetComboBox::get_tooltip(), Slic3r::PrintConfigDef::handle_legacy_composite(), Slic3r::handle_legacy_project_loaded(), Slic3r::handle_legacy_sla(), Slic3r::has_bed_exclude_volumes(), Slic3r::PresetBundle::import_json_presets(), Slic3r::PresetCollection::is_dirty(), Slic3r::GUI::is_same_nozzle_type(), Slic3r::GUI::ObjectList::load_shape_object(), Slic3r::PresetCollection::load_user_preset(), Slic3r::DynamicPrintConfig::normalize_fdm(), Slic3r::DynamicPrintConfig::normalize_fdm_1(), Slic3r::GUI::PartPlateList::notify_instance_update(), Slic3r::GUI::TabPrintPlate::on_value_change(), Slic3r::DynamicConfig::read_cli(), Slic3r::Preset::remove_invalid_keys(), Slic3r::GUI::PartPlate::render_logo(), Slic3r::PresetBundle::resolve_vendor_preset(), Slic3r::CLI::run(), Slic3r::GUI::PartPlate::set_bed_type(), Slic3r::set_filament_dev_options(), Slic3r::Model::setExtruderParams(), Slic3r::Model::setPrintSpeedTable(), Slic3r::GUI::TabFilament::toggle_options(), Slic3r::GUI::ConfigManipulation::toggle_print_fff_options(), Slic3r::GLVolumeCollection::update_colors_by_extruder(), Slic3r::PresetBundle::update_compatible(), Slic3r::GUI::TabPrintPlate::update_custom_dirty(), Slic3r::GUI::TabPrintModel::update_model_config(), Slic3r::GUI::ConfigManipulation::update_print_fff_config(), and Slic3r::GUI::Tab::validate_filament_temperature_pairs().

Here is the call graph for this function:

◆ option() [1/2]

template<typename TYPE>
const TYPE * Slic3r::ConfigOptionResolver::option ( const t_config_option_key & opt_key) const
inline
2703 {
2704 const ConfigOption* opt = this->optptr(opt_key);
2705 return (opt == nullptr || opt->type() != TYPE::static_type()) ? nullptr : static_cast<const TYPE*>(opt);
2706 }

References optptr().

Here is the call graph for this function:

◆ option() [2/2]

const ConfigOption * Slic3r::ConfigOptionResolver::option ( const t_config_option_key & opt_key) const
inline
2699{ return this->optptr(opt_key); }

References optptr().

Referenced by Slic3r::Flow::extrusion_width(), Slic3r::Flow::extrusion_width(), and Slic3r::PrintObject::invalidate_state_by_config_options().

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

◆ option_throw() [1/2]

template<typename TYPE>
const TYPE * Slic3r::ConfigOptionResolver::option_throw ( const t_config_option_key & opt_key) const
inline
2718 {
2719 const ConfigOption* opt = this->option_throw(opt_key);
2720 if (opt->type() != TYPE::static_type())
2721 throw BadOptionTypeException("Conversion to a wrong type");
2722 return static_cast<TYPE*>(opt);
2723 }
const ConfigOption * option_throw(const t_config_option_key &opt_key) const
Definition Config.hpp:2708

References option_throw().

Here is the call graph for this function:

◆ option_throw() [2/2]

const ConfigOption * Slic3r::ConfigOptionResolver::option_throw ( const t_config_option_key & opt_key) const
inline
2709 {
2710 const ConfigOption* opt = this->optptr(opt_key);
2711 if (opt == nullptr)
2712 throw UnknownOptionException(opt_key);
2713 return opt;
2714 }

References optptr().

Referenced by option_throw().

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

◆ optptr()

virtual const ConfigOption * Slic3r::ConfigOptionResolver::optptr ( const t_config_option_key & opt_key) const
pure virtual

Implemented in Slic3r::client::MyContext, Slic3r::ConfigBase, and Slic3r::DynamicConfig.

Referenced by Slic3r::ConfigBase::def(), has(), option(), and option_throw().

Here is the caller graph for this function:

The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Config.hpp