libslic3r
Library for generating gcode from 3d models
|
Public interface for configuration options. More...
#include <ConfigBase.hpp>
Public Member Functions | |
virtual | ~ConfigOption () |
virtual ConfigOption * | clone () const =0 |
virtual std::string | serialize () const =0 |
virtual bool | deserialize (std::string str, bool append=false)=0 |
virtual void | set (const ConfigOption &option)=0 |
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 |
Friends | |
bool | operator== (const ConfigOption &a, const ConfigOption &b) |
bool | operator!= (const ConfigOption &a, const ConfigOption &b) |
Public interface for configuration options.
Defines get/set for all supported data types. Default value for output values is 0 for numeric/boolean types and "" for string types. Subclasses override the appropriate functions in the interface and return real data.
|
inlinevirtual |
|
pure virtual |
Implemented in Slic3r::ConfigOptionEnum< T >, Slic3r::ConfigOptionEnum< HostType >, Slic3r::ConfigOptionEnum< SeamPosition >, Slic3r::ConfigOptionEnum< GCodeFlavor >, Slic3r::ConfigOptionEnum< InfillPattern >, Slic3r::ConfigOptionEnum< SupportMaterialPattern >, Slic3r::ConfigOptionBools, Slic3r::ConfigOptionBool, Slic3r::ConfigOptionPoints, Slic3r::ConfigOptionPoint3, Slic3r::ConfigOptionPoint, Slic3r::ConfigOptionFloatOrPercent, Slic3r::ConfigOptionPercent, Slic3r::ConfigOptionStrings, Slic3r::ConfigOptionString, Slic3r::ConfigOptionInts, Slic3r::ConfigOptionInt, Slic3r::ConfigOptionFloats, and Slic3r::ConfigOptionFloat.
|
pure virtual |
Implemented in Slic3r::ConfigOptionEnumGeneric, Slic3r::ConfigOptionEnum< T >, Slic3r::ConfigOptionEnum< HostType >, Slic3r::ConfigOptionEnum< SeamPosition >, Slic3r::ConfigOptionEnum< GCodeFlavor >, Slic3r::ConfigOptionEnum< InfillPattern >, Slic3r::ConfigOptionEnum< SupportMaterialPattern >, Slic3r::ConfigOptionBools, Slic3r::ConfigOptionBool, Slic3r::ConfigOptionPoints, Slic3r::ConfigOptionPoint3, Slic3r::ConfigOptionPoint, Slic3r::ConfigOptionFloatOrPercent, Slic3r::ConfigOptionPercent, Slic3r::ConfigOptionStrings, Slic3r::ConfigOptionString, Slic3r::ConfigOptionInts, Slic3r::ConfigOptionInt, Slic3r::ConfigOptionFloats, and Slic3r::ConfigOptionFloat.
|
inlinevirtual |
Reimplemented in Slic3r::ConfigOptionBool.
|
inlinevirtual |
Reimplemented in Slic3r::ConfigOptionFloat.
|
inlinevirtual |
Reimplemented in Slic3r::ConfigOptionInt.
|
inlinevirtual |
Reimplemented in Slic3r::ConfigOptionString, Slic3r::ConfigOptionInt, and Slic3r::ConfigOptionFloat.
|
pure virtual |
Implemented in Slic3r::ConfigOptionEnumGeneric, Slic3r::ConfigOptionEnum< T >, Slic3r::ConfigOptionEnum< HostType >, Slic3r::ConfigOptionEnum< SeamPosition >, Slic3r::ConfigOptionEnum< GCodeFlavor >, Slic3r::ConfigOptionEnum< InfillPattern >, Slic3r::ConfigOptionEnum< SupportMaterialPattern >, Slic3r::ConfigOptionBools, Slic3r::ConfigOptionBool, Slic3r::ConfigOptionPoints, Slic3r::ConfigOptionPoint3, Slic3r::ConfigOptionPoint, Slic3r::ConfigOptionFloatOrPercent, Slic3r::ConfigOptionPercent, Slic3r::ConfigOptionStrings, Slic3r::ConfigOptionString, Slic3r::ConfigOptionInts, Slic3r::ConfigOptionInt, Slic3r::ConfigOptionFloats, and Slic3r::ConfigOptionFloat.
|
pure virtual |
Implemented in Slic3r::ConfigOptionFloatOrPercent, Slic3r::ConfigOptionVector< T >, Slic3r::ConfigOptionVector< double >, Slic3r::ConfigOptionVector< std::string >, Slic3r::ConfigOptionVector< int >, Slic3r::ConfigOptionVector< bool >, Slic3r::ConfigOptionVector< Pointf >, Slic3r::ConfigOptionSingle< T >, Slic3r::ConfigOptionSingle< double >, Slic3r::ConfigOptionSingle< std::string >, Slic3r::ConfigOptionSingle< HostType >, Slic3r::ConfigOptionSingle< int >, Slic3r::ConfigOptionSingle< SeamPosition >, Slic3r::ConfigOptionSingle< GCodeFlavor >, Slic3r::ConfigOptionSingle< InfillPattern >, Slic3r::ConfigOptionSingle< bool >, Slic3r::ConfigOptionSingle< Pointf3 >, Slic3r::ConfigOptionSingle< Pointf >, and Slic3r::ConfigOptionSingle< SupportMaterialPattern >.
|
inlinevirtual |
Reimplemented in Slic3r::ConfigOptionFloat.
|
inlinevirtual |
Reimplemented in Slic3r::ConfigOptionInt, and Slic3r::ConfigOptionFloat.
|
inlinevirtual |
|
friend |
|
friend |