AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::ParameterValueSet类 参考

Group of ParameterValue with unique id. 更多...

#include <APIParameterValueSet.h>

类 AnyCAD::API::ParameterValueSet 继承关系图:
AnyCAD::API::Object

Public 成员函数

ParameterValue Find (const String &paramId) const
 
double FindDouble (const String &paramId, double defaultValue) const
 
bool SetDouble (const String &paramId, double val)
 
ElementId FindElementId (const String &paramId, const ElementId &defaultValue) const
 
bool SetElementId (const String &paramId, const ElementId &val)
 
int FindInt (const String &paramId, int defaultValue) const
 
bool SetInt (const String &paramId, int val)
 
bool FindBool (const String &paramId, bool defaultValue) const
 
bool SetBool (const String &paramId, bool val)
 
String FindString (const String &paramId, const String &defaultValue) const
 
bool SetString (const String &paramId, const String &val)
 
Vector3 FindVector3 (const String &paramId, const Vector3 &defaultValue) const
 
bool SetVector3 (const String &paramId, const Vector3 &val)
 
ColorValue FindColor (const String &paramId, const ColorValue &defaultValue) const
 
bool SetColor (const String &paramId, const ColorValue &val)
 
void Add (const String &paramId, const ParameterValue &val)
 
ParameterValue Remove (const String &paramId)
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

Group of ParameterValue with unique id.

TODO:

成员函数说明

void AnyCAD::API::ParameterValueSet::Add ( const String paramId,
const ParameterValue val 
)

Add the parameter

参数
paramIdthe parameter id.
valthe value.
ParameterValue AnyCAD::API::ParameterValueSet::Find ( const String paramId) const

Find the ParameterValue

参数
paramIdthe ParameterValue to find.
返回
the found ParameterValue
bool AnyCAD::API::ParameterValueSet::FindBool ( const String paramId,
bool  defaultValue 
) const

Find the bool parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
ColorValue AnyCAD::API::ParameterValueSet::FindColor ( const String paramId,
const ColorValue defaultValue 
) const

Find the Color parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
double AnyCAD::API::ParameterValueSet::FindDouble ( const String paramId,
double  defaultValue 
) const

Find the double parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
ElementId AnyCAD::API::ParameterValueSet::FindElementId ( const String paramId,
const ElementId defaultValue 
) const

Find the ElementId parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
int AnyCAD::API::ParameterValueSet::FindInt ( const String paramId,
int  defaultValue 
) const

Find the int parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
String AnyCAD::API::ParameterValueSet::FindString ( const String paramId,
const String defaultValue 
) const

Find the string parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
Vector3 AnyCAD::API::ParameterValueSet::FindVector3 ( const String paramId,
const Vector3 defaultValue 
) const

Find the Vector3 parameter

参数
paramIdthe parameter id.
defaultValuethe default value.
返回
the found value
ParameterValue AnyCAD::API::ParameterValueSet::Remove ( const String paramId)

Remove the parameter

参数
paramIdthe parameter id.
返回
the value removed.
bool AnyCAD::API::ParameterValueSet::SetBool ( const String paramId,
bool  val 
)

Set the bool parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.
bool AnyCAD::API::ParameterValueSet::SetColor ( const String paramId,
const ColorValue val 
)

Set the Color parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.
bool AnyCAD::API::ParameterValueSet::SetDouble ( const String paramId,
double  val 
)

Set the double parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.
bool AnyCAD::API::ParameterValueSet::SetElementId ( const String paramId,
const ElementId val 
)

Set the ElementId parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.
bool AnyCAD::API::ParameterValueSet::SetInt ( const String paramId,
int  val 
)

Set the int parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.
bool AnyCAD::API::ParameterValueSet::SetString ( const String paramId,
const String val 
)

Set the string parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.
bool AnyCAD::API::ParameterValueSet::SetVector3 ( const String paramId,
const Vector3 val 
)

Set the Vector3 parameter

参数
paramIdthe parameter id.
valthe value.
返回
true if successfully.

该类的文档由以下文件生成: