libslic3r
Library for generating gcode from 3d models
Public Member Functions | List of all members
Slic3r::StaticConfig Class Reference

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::StaticConfig:
Slic3r::ConfigBase Slic3r::CLIConfig Slic3r::StaticPrintConfig Slic3r::GCodeConfig Slic3r::HostConfig Slic3r::PrintObjectConfig Slic3r::PrintRegionConfig Slic3r::SLAPrintConfig Slic3r::PrintConfig Slic3r::FullPrintConfig Slic3r::FullPrintConfig Slic3r::FullPrintConfig Slic3r::FullPrintConfig

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 ConfigOptionoption (const t_config_option_key &opt_key) const
 
ConfigOptionoption (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 ConfigOptionoptptr (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 ConfigDefdef
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ StaticConfig()

Slic3r::StaticConfig::StaticConfig ( )
inline

Member Function Documentation

◆ keys()

t_config_option_keys Slic3r::StaticConfig::keys ( ) const
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.

◆ set_defaults()

void Slic3r::StaticConfig::set_defaults ( )

Set all statically defined config options to their defaults defined by this->def.


The documentation for this class was generated from the following files: