#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Config.hpp>
|
| template<class Archive> |
| void | serialize (Archive &ar) |
◆ ConfigOptionFloatOrPercent() [1/2]
| Slic3r::ConfigOptionFloatOrPercent::ConfigOptionFloatOrPercent |
( |
| ) |
|
|
inline |
◆ ConfigOptionFloatOrPercent() [2/2]
| Slic3r::ConfigOptionFloatOrPercent::ConfigOptionFloatOrPercent |
( |
double | _value, |
|
|
bool | _percent ) |
|
inlineexplicit |
◆ apply_override()
314 {
316 return false;
318 return true;
319 }
Definition Config.hpp:327
◆ clone()
| ConfigOption * Slic3r::ConfigOptionFloatOrPercent::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ deserialize()
| bool Slic3r::ConfigOptionFloatOrPercent::deserialize |
( |
const std::string & | str, |
|
|
bool | append = false ) |
|
inlineoverridevirtual |
Reimplemented from Slic3r::ConfigOptionFloat.
1382 {
1384 std::istringstream iss(str);
1387 if (iss.fail())
1388 return false;
1390 this->
percent = str.find_first_of(
"%") != std::string::npos;
1391 return true;
1392 }
double value
Definition Config.hpp:329
#define UNUSED(x)
Definition libslic3r.h:112
void append(std::vector< T, Alloc > &dest, const std::vector< T, Alloc2 > &src)
Definition libslic3r.h:157
References Slic3r::append(), UNUSED, and Slic3r::ConfigOptionSingle< double >::value.
◆ get_abs_value()
| double Slic3r::ConfigOptionFloatOrPercent::get_abs_value |
( |
double | ratio_over | ) |
const |
|
inline |
◆ getBool()
◆ getFloat()
| double Slic3r::ConfigOptionFloat::getFloat |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ getInt()
◆ hash()
| size_t Slic3r::ConfigOptionFloatOrPercent::hash |
( |
| ) |
const |
| throw | ( | ) | | | |
|
inlineoverridevirtual |
◆ is_nil()
◆ is_scalar()
virtual ConfigOptionType type() const=0
◆ is_vector()
bool is_scalar() const
Definition Config.hpp:301
◆ nullable()
◆ operator double()
331{
return this->
value; }
◆ operator!=() [1/2]
| bool Slic3r::ConfigOption::operator!= |
( |
const ConfigOption & | rhs | ) |
const |
|
inlineinherited |
299{
return ! (*
this ==
rhs); }
◆ operator!=() [2/2]
◆ operator<() [1/4]
| bool Slic3r::ConfigOptionFloat::operator< |
( |
const ConfigOptionFloat & | rhs | ) |
const |
| throw | ( | ) | | | |
|
inlineinherited |
◆ operator<() [2/4]
◆ operator<() [3/4]
◆ operator<() [4/4]
◆ operator=()
◆ operator==() [1/4]
| bool Slic3r::ConfigOptionFloatOrPercent::operator== |
( |
const ConfigOption & | rhs | ) |
const |
|
inlineoverridevirtual |
◆ operator==() [2/4]
◆ operator==() [3/4]
| bool Slic3r::ConfigOptionFloat::operator== |
( |
const ConfigOptionFloat & | rhs | ) |
const |
| throw | ( | ) | | | |
|
inlineinherited |
◆ operator==() [4/4]
| bool Slic3r::ConfigOptionPercent::operator== |
( |
const ConfigOptionPercent & | rhs | ) |
const |
| throw | ( | ) | | | |
|
inlineinherited |
◆ overriden_by()
309 {
311 return *
this != *
rhs;
312 }
virtual bool nullable() const
Definition Config.hpp:304
◆ serialize() [1/2]
| std::string Slic3r::ConfigOptionFloatOrPercent::serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
Reimplemented from Slic3r::ConfigOptionFloat.
1373 {
1374 std::ostringstream ss;
1376 std::string s(ss.str());
1378 return s;
1379 }
◆ serialize() [2/2]
template<class Archive>
| void Slic3r::ConfigOptionFloatOrPercent::serialize |
( |
Archive & | ar | ) |
|
|
inlineprivate |
1396{ ar(cereal::base_class<ConfigOptionPercent>(
this),
percent); }
References percent.
◆ set()
| void Slic3r::ConfigOptionFloatOrPercent::set |
( |
const ConfigOption * | rhs | ) |
|
|
inlineoverridevirtual |
◆ setInt()
◆ static_type()
◆ type()
◆ cereal::access
| friend class cereal::access |
|
friend |
◆ percent
| bool Slic3r::ConfigOptionFloatOrPercent::percent |
◆ value
The documentation for this class was generated from the following file:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Config.hpp