libslic3r
Library for generating gcode from 3d models
Public Member Functions | Static Public Member Functions | List of all members
Slic3r::ConfigOptionEnum< T > Class Template Reference

Templated enumeration representation. More...

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigOptionEnum< T >:
Slic3r::ConfigOptionSingle< T > Slic3r::ConfigOption

Public Member Functions

 ConfigOptionEnum ()
 
 ConfigOptionEnum (T _value)
 
ConfigOptionEnum< T > * clone () const
 
std::string serialize () const
 
bool deserialize (std::string str, bool append=false)
 
template<>
t_config_enum_values get_enum_values ()
 
template<>
t_config_enum_values get_enum_values ()
 
template<>
t_config_enum_values get_enum_values ()
 
template<>
t_config_enum_values get_enum_values ()
 
template<>
t_config_enum_values get_enum_values ()
 
- Public Member Functions inherited from Slic3r::ConfigOptionSingle< T >
 ConfigOptionSingle (T _value)
 
 operator T () const
 
operator() () const
 
void set (const ConfigOption &option)
 
- Public Member Functions inherited from Slic3r::ConfigOption
virtual ~ConfigOption ()
 
virtual int getInt () const
 
virtual double getFloat () const
 
virtual bool getBool () const
 
virtual void setInt (int val)
 
virtual void setFloat (double val)
 
virtual void setString (std::string val)
 
virtual std::string getString () const
 

Static Public Member Functions

static t_config_enum_values get_enum_values ()
 Map from an enum name to an enum integer value. More...
 

Additional Inherited Members

- Public Attributes inherited from Slic3r::ConfigOptionSingle< T >
value
 

Detailed Description

template<class T>
class Slic3r::ConfigOptionEnum< T >

Templated enumeration representation.

Constructor & Destructor Documentation

◆ ConfigOptionEnum() [1/2]

template<class T>
Slic3r::ConfigOptionEnum< T >::ConfigOptionEnum ( )
inline

◆ ConfigOptionEnum() [2/2]

template<class T>
Slic3r::ConfigOptionEnum< T >::ConfigOptionEnum ( _value)
inline

Member Function Documentation

◆ clone()

template<class T>
ConfigOptionEnum<T>* Slic3r::ConfigOptionEnum< T >::clone ( ) const
inlinevirtual

Implements Slic3r::ConfigOption.

◆ deserialize()

template<class T>
bool Slic3r::ConfigOptionEnum< T >::deserialize ( std::string  str,
bool  append = false 
)
inlinevirtual

Implements Slic3r::ConfigOption.

◆ get_enum_values() [1/6]

template<>
t_config_enum_values Slic3r::ConfigOptionEnum< GCodeFlavor >::get_enum_values ( )
inline

◆ get_enum_values() [2/6]

template<>
t_config_enum_values Slic3r::ConfigOptionEnum< HostType >::get_enum_values ( )
inline

◆ get_enum_values() [3/6]

template<>
t_config_enum_values Slic3r::ConfigOptionEnum< InfillPattern >::get_enum_values ( )
inline

◆ get_enum_values() [4/6]

template<>
t_config_enum_values Slic3r::ConfigOptionEnum< SupportMaterialPattern >::get_enum_values ( )
inline

◆ get_enum_values() [5/6]

template<>
t_config_enum_values Slic3r::ConfigOptionEnum< SeamPosition >::get_enum_values ( )
inline

◆ get_enum_values() [6/6]

template<class T>
static t_config_enum_values Slic3r::ConfigOptionEnum< T >::get_enum_values ( )
static

Map from an enum name to an enum integer value.

◆ serialize()

template<class T>
std::string Slic3r::ConfigOptionEnum< T >::serialize ( ) const
inlinevirtual

Implements Slic3r::ConfigOption.


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