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

Public interface for configuration options. More...

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigOption:
Slic3r::ConfigOptionSingle< bool > Slic3r::ConfigOptionSingle< double > Slic3r::ConfigOptionSingle< GCodeFlavor > Slic3r::ConfigOptionSingle< HostType > Slic3r::ConfigOptionSingle< InfillPattern > Slic3r::ConfigOptionSingle< int > Slic3r::ConfigOptionSingle< Pointf > Slic3r::ConfigOptionSingle< Pointf3 > Slic3r::ConfigOptionSingle< SeamPosition > Slic3r::ConfigOptionSingle< std::string > Slic3r::ConfigOptionSingle< SupportMaterialPattern > Slic3r::ConfigOptionSingle< T > Slic3r::ConfigOptionVectorBase

Public Member Functions

virtual ~ConfigOption ()
 
virtual ConfigOptionclone () 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~ConfigOption()

virtual Slic3r::ConfigOption::~ConfigOption ( )
inlinevirtual

Member Function Documentation

◆ clone()

virtual ConfigOption* Slic3r::ConfigOption::clone ( ) const
pure virtual

◆ deserialize()

virtual bool Slic3r::ConfigOption::deserialize ( std::string  str,
bool  append = false 
)
pure virtual

◆ getBool()

virtual bool Slic3r::ConfigOption::getBool ( ) const
inlinevirtual

Reimplemented in Slic3r::ConfigOptionBool.

◆ getFloat()

virtual double Slic3r::ConfigOption::getFloat ( ) const
inlinevirtual

Reimplemented in Slic3r::ConfigOptionFloat.

◆ getInt()

virtual int Slic3r::ConfigOption::getInt ( ) const
inlinevirtual

Reimplemented in Slic3r::ConfigOptionInt.

◆ getString()

virtual std::string Slic3r::ConfigOption::getString ( ) const
inlinevirtual

◆ serialize()

virtual std::string Slic3r::ConfigOption::serialize ( ) const
pure virtual

◆ set()

virtual void Slic3r::ConfigOption::set ( const ConfigOption option)
pure virtual

◆ setFloat()

virtual void Slic3r::ConfigOption::setFloat ( double  val)
inlinevirtual

Reimplemented in Slic3r::ConfigOptionFloat.

◆ setInt()

virtual void Slic3r::ConfigOption::setInt ( int  val)
inlinevirtual

◆ setString()

virtual void Slic3r::ConfigOption::setString ( std::string  val)
inlinevirtual

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const ConfigOption a,
const ConfigOption b 
)
friend

◆ operator==

bool operator== ( const ConfigOption a,
const ConfigOption b 
)
friend

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