libslic3r
Library for generating gcode from 3d models
|
#include <ConfigBase.hpp>
Public Member Functions | |
ConfigOptionFloatOrPercent () | |
ConfigOptionFloatOrPercent (double _value, bool _percent) | |
ConfigOptionFloatOrPercent * | clone () const |
void | set (const ConfigOption &option) |
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::ConfigOptionPercent | |
ConfigOptionPercent () | |
ConfigOptionPercent (double _value) | |
double | get_abs_value (double ratio_over) const |
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) |
Public Attributes | |
bool | percent |
Public Attributes inherited from Slic3r::ConfigOptionSingle< double > | |
double | value |
Combination class that can store a raw float or a percentage value. Includes a flag to indicate how it should be interpreted.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from Slic3r::ConfigOptionPercent.
|
inlinevirtual |
Reimplemented from Slic3r::ConfigOptionPercent.
|
inline |
|
inlinevirtual |
Reimplemented from Slic3r::ConfigOptionPercent.
|
inlinevirtual |
Implements Slic3r::ConfigOption.
bool Slic3r::ConfigOptionFloatOrPercent::percent |