Cheetah Software
1.0
|
#include <ControlParameters.h>
Public Member Functions | |
ControlParameter (const std::string &name, double &value, ControlParameterCollection &collection, const std::string &units="") | |
ControlParameter (const std::string &name, float &value, ControlParameterCollection &collection, const std::string &units="") | |
ControlParameter (const std::string &name, s64 &value, ControlParameterCollection &collection, const std::string &units="") | |
ControlParameter (const std::string &name, Vec3< float > &value, ControlParameterCollection &collection, const std::string &units="") | |
ControlParameter (const std::string &name, Vec3< double > &value, ControlParameterCollection &collection, const std::string &units="") | |
ControlParameter (const std::string &name, ControlParameterValueKind kind) | |
void | truncateName () |
void | initializeDouble (double d) |
void | initializeFloat (float f) |
void | initializeInteger (s64 i) |
void | initializeVec3f (const Vec3< float > &v) |
void | initializeVec3d (const Vec3< double > &v) |
void | set (ControlParameterValue value, ControlParameterValueKind kind) |
ControlParameterValue | get (ControlParameterValueKind kind) |
std::string | toString () |
bool | setFromString (const std::string &value) |
Public Attributes | |
bool | _set = false |
ControlParameterValuePtr | _value |
std::string | _name |
std::string | _units |
ControlParameterValueKind | _kind |
ControlParameterValue | _staticValue |
Definition at line 120 of file ControlParameters.h.
|
inline |
Constructors for control parameters: Set the type and add to collection. Doesn't "initialize" the parameter - this must be done separately.
Definition at line 127 of file ControlParameters.h.
References ControlParameterCollection::addParameter(), and DOUBLE.
|
inline |
Definition at line 138 of file ControlParameters.h.
References ControlParameterCollection::addParameter(), and FLOAT.
|
inline |
Definition at line 149 of file ControlParameters.h.
References ControlParameterCollection::addParameter(), and S64.
|
inline |
Definition at line 160 of file ControlParameters.h.
References ControlParameterCollection::addParameter(), and VEC3_FLOAT.
|
inline |
Definition at line 171 of file ControlParameters.h.
References ControlParameterCollection::addParameter(), and VEC3_DOUBLE.
|
inline |
Definition at line 182 of file ControlParameters.h.
|
inline |
Definition at line 282 of file ControlParameters.h.
References ControlParameterValue::d, DOUBLE, ControlParameterValue::f, FLOAT, ControlParameterValue::i, S64, VEC3_DOUBLE, VEC3_FLOAT, ControlParameterValue::vec3d, and ControlParameterValue::vec3f.
|
inline |
Set initial value of the control parameter. Checks to see that the types are correct
Definition at line 201 of file ControlParameters.h.
References DOUBLE.
|
inline |
Definition at line 212 of file ControlParameters.h.
|
inline |
Definition at line 221 of file ControlParameters.h.
References S64.
|
inline |
Definition at line 241 of file ControlParameters.h.
References VEC3_DOUBLE.
|
inline |
Definition at line 230 of file ControlParameters.h.
References VEC3_FLOAT.
|
inline |
Definition at line 252 of file ControlParameters.h.
References DOUBLE, FLOAT, S64, VEC3_DOUBLE, and VEC3_FLOAT.
|
inline |
Definition at line 348 of file ControlParameters.h.
References DOUBLE, FLOAT, S64, VEC3_DOUBLE, and VEC3_FLOAT.
|
inline |
Convert the value to a string that works in a YAML file
Definition at line 316 of file ControlParameters.h.
References DOUBLE, FLOAT, numberToString(), S64, VEC3_DOUBLE, and VEC3_FLOAT.
|
inline |
Definition at line 189 of file ControlParameters.h.
References CONTROL_PARAMETER_MAXIMUM_NAME_LENGTH.
ControlParameterValueKind ControlParameter::_kind |
Definition at line 381 of file ControlParameters.h.
std::string ControlParameter::_name |
Definition at line 379 of file ControlParameters.h.
bool ControlParameter::_set = false |
Definition at line 377 of file ControlParameters.h.
ControlParameterValue ControlParameter::_staticValue |
Definition at line 382 of file ControlParameters.h.
std::string ControlParameter::_units |
Definition at line 380 of file ControlParameters.h.
ControlParameterValuePtr ControlParameter::_value |
Definition at line 378 of file ControlParameters.h.