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

#include <PrintConfig.hpp>

Inheritance diagram for Slic3r::HostConfig:
Slic3r::StaticPrintConfig Slic3r::PrintConfigBase Slic3r::StaticConfig Slic3r::ConfigBase Slic3r::ConfigBase Slic3r::FullPrintConfig

Public Member Functions

 HostConfig (bool initialize=true)
 
virtual ConfigOptionoptptr (const t_config_option_key &opt_key, bool create=false)
 
- Public Member Functions inherited from Slic3r::StaticPrintConfig
 StaticPrintConfig ()
 
- Public Member Functions inherited from Slic3r::PrintConfigBase
 PrintConfigBase ()
 
bool set_deserialize (t_config_option_key opt_key, std::string str, bool append=false)
 
double min_object_distance () const
 
- 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
 
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
 
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 Member Functions inherited from Slic3r::StaticConfig
 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 Attributes

ConfigOptionEnum< HostTypehost_type
 
ConfigOptionString print_host
 
ConfigOptionString octoprint_apikey
 
ConfigOptionString serial_port
 
ConfigOptionInt serial_speed
 
- Public Attributes inherited from Slic3r::ConfigBase
const ConfigDefdef
 

Additional Inherited Members

- Protected Member Functions inherited from Slic3r::PrintConfigBase
void _handle_legacy (t_config_option_key &opt_key, std::string &value) const
 

Constructor & Destructor Documentation

◆ HostConfig()

Slic3r::HostConfig::HostConfig ( bool  initialize = true)
inline

Member Function Documentation

◆ optptr()

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

Implements Slic3r::ConfigBase.

Reimplemented in Slic3r::FullPrintConfig.

Member Data Documentation

◆ host_type

ConfigOptionEnum<HostType> Slic3r::HostConfig::host_type

◆ octoprint_apikey

ConfigOptionString Slic3r::HostConfig::octoprint_apikey

◆ print_host

ConfigOptionString Slic3r::HostConfig::print_host

◆ serial_port

ConfigOptionString Slic3r::HostConfig::serial_port

◆ serial_speed

ConfigOptionInt Slic3r::HostConfig::serial_speed

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