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

An abstract configuration store. More...

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigBase:
Slic3r::CLIConfig Slic3r::DynamicConfig Slic3r::PrintConfigBase Slic3r::StaticConfig Slic3r::DynamicPrintConfig Slic3r::DynamicPrintConfig Slic3r::StaticPrintConfig Slic3r::CLIConfig Slic3r::StaticPrintConfig Slic3r::GCodeConfig Slic3r::HostConfig Slic3r::PrintObjectConfig Slic3r::PrintRegionConfig Slic3r::SLAPrintConfig Slic3r::GCodeConfig Slic3r::HostConfig Slic3r::PrintObjectConfig Slic3r::PrintRegionConfig Slic3r::SLAPrintConfig

Public Member Functions

 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
 
virtual t_config_option_keys keys () const =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
 

Public Attributes

const ConfigDefdef
 

Detailed Description

An abstract configuration store.

Constructor & Destructor Documentation

◆ ConfigBase() [1/2]

Slic3r::ConfigBase::ConfigBase ( )
inline

◆ ConfigBase() [2/2]

Slic3r::ConfigBase::ConfigBase ( const ConfigDef def)
inline

◆ ~ConfigBase()

virtual Slic3r::ConfigBase::~ConfigBase ( )
inlinevirtual

Member Function Documentation

◆ apply()

void Slic3r::ConfigBase::apply ( const ConfigBase other,
bool  ignore_nonexistent = false 
)

◆ apply_only()

void Slic3r::ConfigBase::apply_only ( const ConfigBase other,
const t_config_option_keys opt_keys,
bool  ignore_nonexistent = false 
)

◆ diff()

t_config_option_keys Slic3r::ConfigBase::diff ( const ConfigBase other) const

◆ equals()

bool Slic3r::ConfigBase::equals ( const ConfigBase other) const

◆ get_abs_value() [1/2]

double Slic3r::ConfigBase::get_abs_value ( const t_config_option_key opt_key) const

◆ get_abs_value() [2/2]

double Slic3r::ConfigBase::get_abs_value ( const t_config_option_key opt_key,
double  ratio_over 
) const

◆ has()

bool Slic3r::ConfigBase::has ( const t_config_option_key opt_key) const

◆ keys()

virtual t_config_option_keys Slic3r::ConfigBase::keys ( ) const
pure virtual

◆ load()

void Slic3r::ConfigBase::load ( const std::string &  file)

◆ opt() [1/2]

template<class T >
T* Slic3r::ConfigBase::opt ( const t_config_option_key opt_key,
bool  create = false 
)
inline

◆ opt() [2/2]

template<class T >
const T* Slic3r::ConfigBase::opt ( const t_config_option_key opt_key) const
inline

◆ option() [1/2]

const ConfigOption * Slic3r::ConfigBase::option ( const t_config_option_key opt_key) const

◆ option() [2/2]

ConfigOption * Slic3r::ConfigBase::option ( const t_config_option_key opt_key,
bool  create = false 
)

◆ optptr()

virtual ConfigOption* Slic3r::ConfigBase::optptr ( const t_config_option_key opt_key,
bool  create = false 
)
pure virtual

◆ save()

void Slic3r::ConfigBase::save ( const std::string &  file) const

◆ serialize()

std::string Slic3r::ConfigBase::serialize ( const t_config_option_key opt_key) const

◆ set_deserialize()

bool Slic3r::ConfigBase::set_deserialize ( t_config_option_key  opt_key,
std::string  str,
bool  append = false 
)
virtual

Reimplemented in Slic3r::PrintConfigBase.

◆ setenv_()

void Slic3r::ConfigBase::setenv_ ( )

Member Data Documentation

◆ def

const ConfigDef* Slic3r::ConfigBase::def

Definition of configuration values for the purpose of GUI presentation, editing, value mapping and config file handling. The configuration definition is static: It does not carry the actual configuration values, but it carries the defaults of the configuration values. ConfigBase does not own ConfigDef, it only references it.


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