#include <src/libslic3r/Config.hpp>
◆ ConfigOptionInt() [1/3]
| Slic3r::ConfigOptionInt::ConfigOptionInt |
( |
| ) |
|
|
inline |
722: ConfigOptionSingle<int>(0) {}
Referenced by clone().
◆ ConfigOptionInt() [2/3]
| Slic3r::ConfigOptionInt::ConfigOptionInt |
( |
int |
value | ) |
|
|
inlineexplicit |
723: ConfigOptionSingle<int>(
value) {}
int value
Definition Config.hpp:305
◆ ConfigOptionInt() [3/3]
| Slic3r::ConfigOptionInt::ConfigOptionInt |
( |
double |
_value | ) |
|
|
inlineexplicit |
724: ConfigOptionSingle<int>(
int(
floor(_value + 0.5))) {}
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
Definition ArrayCwiseUnaryOps.h:388
◆ apply_override()
◆ clone()
◆ deserialize()
| bool Slic3r::ConfigOptionInt::deserialize |
( |
const std::string & |
str, |
|
|
bool |
append = false |
|
) |
| |
|
inlineoverridevirtual |
◆ getBool()
| virtual bool Slic3r::ConfigOption::getBool |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getFloat()
| virtual double Slic3r::ConfigOption::getFloat |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getInt()
| int Slic3r::ConfigOptionInt::getInt |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ hash()
|
|
inlineoverridevirtualinherited |
◆ is_nil()
| virtual bool Slic3r::ConfigOption::is_nil |
( |
| ) |
const |
|
inlinevirtualinherited |
Reimplemented in Slic3r::ConfigOptionVectorBase, Slic3r::ConfigOptionFloatsTempl< NULLABLE >, Slic3r::ConfigOptionIntsTempl< NULLABLE >, Slic3r::ConfigOptionFloatsOrPercentsTempl< NULLABLE >, and Slic3r::ConfigOptionBoolsTempl< NULLABLE >.
Referenced by Slic3r::GCode::append_full_config(), Slic3r::client::MyContext::copy_vector_variable_to_vector_variable(), Slic3r::GUI::ConfigOptionsGroup::get_config_value(), Slic3r::GUI::get_full_label(), Slic3r::GUI::get_string_value(), Slic3r::client::MyContext::is_nil_test(), Slic3r::client::MyContext::legacy_variable_expansion(), Slic3r::print_config_diffs(), Slic3r::client::MyContext::scalar_variable_to_expr(), Slic3r::validate(), and Slic3r::client::MyContext::vector_variable_new_from_copy().
◆ is_scalar()
| bool Slic3r::ConfigOption::is_scalar |
( |
| ) |
const |
|
inlineinherited |
virtual ConfigOptionType type() const =0
@ coVectorType
Definition Config.hpp:161
References Slic3r::coVectorType, and Slic3r::ConfigOption::type().
Referenced by Slic3r::PresetBundle::full_fff_config(), Slic3r::client::MyContext::is_nil_test(), Slic3r::ConfigOption::is_vector(), Slic3r::client::MyContext::legacy_variable_expansion(), Slic3r::PresetBundle::load_config_file_config(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), Slic3r::client::MyContext::scalar_variable_to_expr(), Slic3r::client::MyContext::vector_variable_assign_array(), Slic3r::client::MyContext::vector_variable_assign_initializer_list(), and Slic3r::client::MyContext::vector_variable_new_from_array().
◆ is_vector()
| bool Slic3r::ConfigOption::is_vector |
( |
| ) |
const |
|
inlineinherited |
bool is_scalar() const
Definition Config.hpp:277
References Slic3r::ConfigOption::is_scalar().
Referenced by Slic3r::client::MyContext::copy_vector_variable_to_vector_variable(), Slic3r::client::MyContext::is_nil_test(), Slic3r::client::MyContext::is_vector_empty(), Slic3r::client::MyContext::legacy_variable_expansion(), Slic3r::client::MyContext::legacy_variable_expansion2(), Slic3r::DynamicConfig::read_cli(), Slic3r::client::MyContext::scalar_variable_assign_scalar_expression(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), Slic3r::client::MyContext::store_variable_index(), Slic3r::ExtruderFilaments::update_compatible_internal(), Slic3r::client::MyContext::variable_value(), Slic3r::client::MyContext::vector_element_to_expr(), Slic3r::client::MyContext::vector_size(), Slic3r::client::MyContext::vector_variable_element_assign_scalar(), and Slic3r::client::MyContext::vector_variable_new_from_copy().
◆ nullable()
| virtual bool Slic3r::ConfigOption::nullable |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ operator int()
307{
return this->
value; }
◆ operator!=() [1/2]
275{ return ! (*this == rhs); }
◆ operator!=() [2/2]
326{
return this->
value != rhs; }
◆ operator<()
327{
return this->
value < rhs; }
◆ operator=()
◆ operator==() [1/3]
|
|
inlineoverridevirtualinherited |
Implements Slic3r::ConfigOption.
318 {
319 if (rhs.type() != this->type())
320 throw ConfigurationError("ConfigOptionSingle: Comparing incompatible types");
321 assert(dynamic_cast<const ConfigOptionSingle<T>*>(&rhs));
322 return this->
value ==
static_cast<const ConfigOptionSingle<T>*
>(&rhs)->value;
323 }
◆ operator==() [2/3]
731{
return this->
value == rhs.value; }
◆ operator==() [3/3]
325{
return this->
value == rhs; }
◆ overriden_by()
◆ serialize() [1/2]
| std::string Slic3r::ConfigOptionInt::serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ serialize() [2/2]
template<class Archive >
| void Slic3r::ConfigOptionInt::serialize |
( |
Archive & |
ar | ) |
|
|
inlineprivate |
756{ ar(cereal::base_class<ConfigOptionSingle<int>>(this)); }
◆ set()
|
|
inlineoverridevirtualinherited |
Implements Slic3r::ConfigOption.
310 {
311 if (rhs->type() != this->type())
312 throw ConfigurationError("ConfigOptionSingle: Assigning an incompatible type");
313 assert(dynamic_cast<const ConfigOptionSingle<T>*>(rhs));
314 this->
value =
static_cast<const ConfigOptionSingle<T>*
>(rhs)->value;
315 }
◆ setInt()
| void Slic3r::ConfigOptionInt::setInt |
( |
int |
val | ) |
|
|
inlineoverridevirtual |
◆ static_type()
◆ type()
◆ cereal::access
| friend class cereal::access |
|
friend |
◆ value
The documentation for this class was generated from the following file: