libslic3r
Library for generating gcode from 3d models
|
Specialized floating point class to represent some percentage value of another numeric configuration option. More...
#include <ConfigBase.hpp>
Public Member Functions | |
ConfigOptionPercent () | |
ConfigOptionPercent (double _value) | |
ConfigOptionPercent * | clone () const |
double | get_abs_value (double ratio_over) const |
std::string | serialize () const |
bool | deserialize (std::string str, bool append=false) |
Public Member Functions inherited from Slic3r::ConfigOptionFloat | |
ConfigOptionFloat () | |
ConfigOptionFloat (double _value) | |
double | getFloat () const override |
void | setFloat (double val) override |
void | setInt (int val) override |
std::string | getString () const 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 |
Specialized floating point class to represent some percentage value of another numeric configuration option.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from Slic3r::ConfigOptionFloat.
Reimplemented in Slic3r::ConfigOptionFloatOrPercent.
|
inlinevirtual |
Reimplemented from Slic3r::ConfigOptionFloat.
Reimplemented in Slic3r::ConfigOptionFloatOrPercent.
|
inline |
Calculate the value of this option as it relates to some other numerical value.
|
inlinevirtual |
Reimplemented from Slic3r::ConfigOptionFloat.
Reimplemented in Slic3r::ConfigOptionFloatOrPercent.