libslic3r
Library for generating gcode from 3d models
|
#include <ConfigBase.hpp>
Public Member Functions | |
StaticConfig () | |
t_config_option_keys | keys () const |
void | set_defaults () |
Set all statically defined config options to their defaults defined by this->def. More... | |
Public Member Functions inherited from Slic3r::ConfigBase | |
ConfigBase () | |
ConfigBase (const ConfigDef *def) | |
virtual | ~ConfigBase () |
bool | has (const t_config_option_key &opt_key) const |
const ConfigOption * | option (const t_config_option_key &opt_key) const |
ConfigOption * | option (const t_config_option_key &opt_key, bool create=false) |
template<class T > | |
T * | opt (const t_config_option_key &opt_key, bool create=false) |
template<class T > | |
const T * | opt (const t_config_option_key &opt_key) const |
virtual ConfigOption * | optptr (const t_config_option_key &opt_key, bool create=false)=0 |
void | apply (const ConfigBase &other, bool ignore_nonexistent=false) |
void | apply_only (const ConfigBase &other, const t_config_option_keys &opt_keys, bool ignore_nonexistent=false) |
bool | equals (const ConfigBase &other) const |
t_config_option_keys | diff (const ConfigBase &other) const |
std::string | serialize (const t_config_option_key &opt_key) const |
virtual bool | set_deserialize (t_config_option_key opt_key, std::string str, bool append=false) |
double | get_abs_value (const t_config_option_key &opt_key) const |
double | get_abs_value (const t_config_option_key &opt_key, double ratio_over) const |
void | setenv_ () |
void | load (const std::string &file) |
void | save (const std::string &file) const |
Additional Inherited Members | |
Public Attributes inherited from Slic3r::ConfigBase | |
const ConfigDef * | def |
Configuration store with a static definition of configuration values. In Slic3r, the static configuration stores are during the slicing / g-code generation for efficiency reasons, because the configuration values could be accessed directly.
|
inline |
|
virtual |
Gets list of config option names for each config option of this->def, which has a static counter-part defined by the derived object and which could be resolved by this->optptr(key) call.
Implements Slic3r::ConfigBase.
void Slic3r::StaticConfig::set_defaults | ( | ) |
Set all statically defined config options to their defaults defined by this->def.