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

#include <ConfigBase.hpp>

Inheritance diagram for Slic3r::ConfigOptionFloat:
Slic3r::ConfigOptionSingle< double > Slic3r::ConfigOption Slic3r::ConfigOptionPercent Slic3r::ConfigOptionFloatOrPercent

Public Member Functions

 ConfigOptionFloat ()
 
 ConfigOptionFloat (double _value)
 
ConfigOptionFloatclone () const override
 
double getFloat () const override
 
void setFloat (double val) override
 
void setInt (int val) override
 
std::string getString () const override
 
std::string serialize () const override
 
bool deserialize (std::string str, bool append=false) override
 
template<typename Y >
bool operator== (const Y &other)
 Floating point values we conpare within some small value for equality. More...
 
- Public Member Functions inherited from Slic3r::ConfigOptionSingle< double >
 ConfigOptionSingle (double _value)
 
 operator double () const
 
double operator() () const
 
void set (const ConfigOption &option)
 
- Public Member Functions inherited from Slic3r::ConfigOption
virtual ~ConfigOption ()
 
virtual int getInt () const
 
virtual bool getBool () const
 
virtual void setString (std::string val)
 

Additional Inherited Members

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

Detailed Description

Template specialization for a single ConfigOption Internally resolves to a double.

Constructor & Destructor Documentation

◆ ConfigOptionFloat() [1/2]

Slic3r::ConfigOptionFloat::ConfigOptionFloat ( )
inline

◆ ConfigOptionFloat() [2/2]

Slic3r::ConfigOptionFloat::ConfigOptionFloat ( double  _value)
inline

Member Function Documentation

◆ clone()

ConfigOptionFloat* Slic3r::ConfigOptionFloat::clone ( ) const
inlineoverridevirtual

◆ deserialize()

bool Slic3r::ConfigOptionFloat::deserialize ( std::string  str,
bool  append = false 
)
inlineoverridevirtual

◆ getFloat()

double Slic3r::ConfigOptionFloat::getFloat ( ) const
inlineoverridevirtual

Reimplemented from Slic3r::ConfigOption.

◆ getString()

std::string Slic3r::ConfigOptionFloat::getString ( ) const
inlineoverridevirtual

Reimplemented from Slic3r::ConfigOption.

◆ operator==()

template<typename Y >
bool Slic3r::ConfigOptionFloat::operator== ( const Y other)
inline

Floating point values we conpare within some small value for equality.

◆ serialize()

std::string Slic3r::ConfigOptionFloat::serialize ( ) const
inlineoverridevirtual

◆ setFloat()

void Slic3r::ConfigOptionFloat::setFloat ( double  val)
inlineoverridevirtual

Reimplemented from Slic3r::ConfigOption.

◆ setInt()

void Slic3r::ConfigOptionFloat::setInt ( int  val)
inlineoverridevirtual

Reimplemented from Slic3r::ConfigOption.


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