The base class for parameter values. 更多...
#include <APIParameterValue.h>
Public 成员函数 | |
EnumValueType | GetValueType () const |
bool | Assign (const ParameterValue &other) |
bool | IsEqual (const ParameterValue &other) const |
virtual String | ToString () const |
virtual bool | FromString (const String &str) |
virtual ParameterValue | Clone () const |
int | AsInt () const |
ElementId | AsElementId () const |
double | AsDouble () const |
String | AsString () const |
bool | AsBool () const |
Vector3 | AsVector3 () const |
Vector2 | AsVector2 () const |
ColorValue | AsColorValue () const |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
The base class for parameter values.
TODO:
bool AnyCAD::API::ParameterValue::AsBool | ( | ) | const |
Get the boolean value.
ColorValue AnyCAD::API::ParameterValue::AsColorValue | ( | ) | const |
Get the vector3 value.
double AnyCAD::API::ParameterValue::AsDouble | ( | ) | const |
Get the double value.
ElementId AnyCAD::API::ParameterValue::AsElementId | ( | ) | const |
Get the ElementId value.
int AnyCAD::API::ParameterValue::AsInt | ( | ) | const |
Get the integer value.
bool AnyCAD::API::ParameterValue::Assign | ( | const ParameterValue & | other | ) |
String AnyCAD::API::ParameterValue::AsString | ( | ) | const |
Get the string value.
Vector2 AnyCAD::API::ParameterValue::AsVector2 | ( | ) | const |
Get the vector3 value.
Vector3 AnyCAD::API::ParameterValue::AsVector3 | ( | ) | const |
Get the vector3 value.
|
virtual |
Create new ParameterValue with the same value as this one.
|
virtual |
Parse value from string.
str | the string. |
被 AnyCAD::API::ParameterBoolean, AnyCAD::API::ParameterColor, AnyCAD::API::ParameterDouble, AnyCAD::API::ParameterElementId, AnyCAD::API::ParameterInteger, AnyCAD::API::ParameterString , 以及 AnyCAD::API::ParameterVector3 重载.
EnumValueType AnyCAD::API::ParameterValue::GetValueType | ( | ) | const |
Get value type.
bool AnyCAD::API::ParameterValue::IsEqual | ( | const ParameterValue & | other | ) | const |
|
virtual |
Convert to string.
被 AnyCAD::API::ParameterBoolean, AnyCAD::API::ParameterColor, AnyCAD::API::ParameterDouble, AnyCAD::API::ParameterElementId, AnyCAD::API::ParameterInteger, AnyCAD::API::ParameterString , 以及 AnyCAD::API::ParameterVector3 重载.