Group of ParameterValue with unique id.
更多...
#include <APIParameterValueSet.h>
|
ParameterValue | Find (const String ¶mId) const |
|
double | FindDouble (const String ¶mId, double defaultValue) const |
|
bool | SetDouble (const String ¶mId, double val) |
|
ElementId | FindElementId (const String ¶mId, const ElementId &defaultValue) const |
|
bool | SetElementId (const String ¶mId, const ElementId &val) |
|
int | FindInt (const String ¶mId, int defaultValue) const |
|
bool | SetInt (const String ¶mId, int val) |
|
bool | FindBool (const String ¶mId, bool defaultValue) const |
|
bool | SetBool (const String ¶mId, bool val) |
|
String | FindString (const String ¶mId, const String &defaultValue) const |
|
bool | SetString (const String ¶mId, const String &val) |
|
Vector3 | FindVector3 (const String ¶mId, const Vector3 &defaultValue) const |
|
bool | SetVector3 (const String ¶mId, const Vector3 &val) |
|
ColorValue | FindColor (const String ¶mId, const ColorValue &defaultValue) const |
|
bool | SetColor (const String ¶mId, const ColorValue &val) |
|
void | Add (const String ¶mId, const ParameterValue &val) |
|
ParameterValue | Remove (const String ¶mId) |
|
String | GetObjectClassId () const |
|
StringList | ListParentClassIds () const |
|
Group of ParameterValue with unique id.
TODO:
Add the parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
bool AnyCAD::API::ParameterValueSet::FindBool |
( |
const String & |
paramId, |
|
|
bool |
defaultValue |
|
) |
| const |
Find the bool parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
Find the Color parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
double AnyCAD::API::ParameterValueSet::FindDouble |
( |
const String & |
paramId, |
|
|
double |
defaultValue |
|
) |
| const |
Find the double parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
ElementId AnyCAD::API::ParameterValueSet::FindElementId |
( |
const String & |
paramId, |
|
|
const ElementId & |
defaultValue |
|
) |
| const |
Find the ElementId parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
int AnyCAD::API::ParameterValueSet::FindInt |
( |
const String & |
paramId, |
|
|
int |
defaultValue |
|
) |
| const |
Find the int parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
String AnyCAD::API::ParameterValueSet::FindString |
( |
const String & |
paramId, |
|
|
const String & |
defaultValue |
|
) |
| const |
Find the string parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
Vector3 AnyCAD::API::ParameterValueSet::FindVector3 |
( |
const String & |
paramId, |
|
|
const Vector3 & |
defaultValue |
|
) |
| const |
Find the Vector3 parameter
- 参数
-
paramId | the parameter id. |
defaultValue | the default value. |
- 返回
- the found value
Remove the parameter
- 参数
-
- 返回
- the value removed.
bool AnyCAD::API::ParameterValueSet::SetBool |
( |
const String & |
paramId, |
|
|
bool |
val |
|
) |
| |
Set the bool parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
bool AnyCAD::API::ParameterValueSet::SetColor |
( |
const String & |
paramId, |
|
|
const ColorValue & |
val |
|
) |
| |
Set the Color parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
bool AnyCAD::API::ParameterValueSet::SetDouble |
( |
const String & |
paramId, |
|
|
double |
val |
|
) |
| |
Set the double parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
bool AnyCAD::API::ParameterValueSet::SetElementId |
( |
const String & |
paramId, |
|
|
const ElementId & |
val |
|
) |
| |
Set the ElementId parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
bool AnyCAD::API::ParameterValueSet::SetInt |
( |
const String & |
paramId, |
|
|
int |
val |
|
) |
| |
Set the int parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
bool AnyCAD::API::ParameterValueSet::SetString |
( |
const String & |
paramId, |
|
|
const String & |
val |
|
) |
| |
Set the string parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
bool AnyCAD::API::ParameterValueSet::SetVector3 |
( |
const String & |
paramId, |
|
|
const Vector3 & |
val |
|
) |
| |
Set the Vector3 parameter
- 参数
-
paramId | the parameter id. |
val | the value. |
- 返回
- true if successfully.
该类的文档由以下文件生成: