The UI description for parameters. 更多...
#include <APIParameterUI.h>
Public 成员函数 | |
int | GetIndex () const |
void | SetParamId (const String ¶mId) |
String | GetParamId () const |
void | SetName (const String &strName) |
String | GetName () const |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
void | SetReadonly (bool bReadonly) |
bool | IsReadonly () const |
void | SetGroup (bool bGroup) |
bool | IsGroup () const |
void | SetUsedByScript (bool bUseByScript) |
bool | IsUsedByScript () const |
void | SetGroupName (const String &groupParamId) |
String | GetGroupName () const |
void | SetDescription (const String &desc) |
String | GetDescription () const |
void | SetControlId (const String &controlId) |
String | GetControlId () const |
void | SetControlType (const String &controlType) |
String | GetControlType () const |
bool | SetParameter (const String ¶mId, const ParameterValue &pValue) |
ParameterValue | GetParameter (const String ¶mId) const |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
The UI description for parameters.
TODO:
String AnyCAD::API::ParameterUI::GetControlId | ( | ) | const |
Get control id.
String AnyCAD::API::ParameterUI::GetControlType | ( | ) | const |
Get control type.
String AnyCAD::API::ParameterUI::GetDescription | ( | ) | const |
Get the description of the ParameterUI.
String AnyCAD::API::ParameterUI::GetGroupName | ( | ) | const |
Get the group name of the ParameterUI.
int AnyCAD::API::ParameterUI::GetIndex | ( | ) | const |
Get the index of this ParameterUI.
String AnyCAD::API::ParameterUI::GetName | ( | ) | const |
Get the readable UI name.
ParameterValue AnyCAD::API::ParameterUI::GetParameter | ( | const String & | paramId | ) | const |
String AnyCAD::API::ParameterUI::GetParamId | ( | ) | const |
Get the ParamId of this ParameterUI.
bool AnyCAD::API::ParameterUI::IsGroup | ( | ) | const |
If the ParameterUI is group.
bool AnyCAD::API::ParameterUI::IsReadonly | ( | ) | const |
Get the read only of this ParameterUI.
bool AnyCAD::API::ParameterUI::IsUsedByScript | ( | ) | const |
If the ParameterUI is used by script.
bool AnyCAD::API::ParameterUI::IsVisible | ( | ) | const |
Get the visibility of this ParameterUI.
void AnyCAD::API::ParameterUI::SetControlId | ( | const String & | controlId | ) |
Set control id.
controlId | the id. |
void AnyCAD::API::ParameterUI::SetControlType | ( | const String & | controlType | ) |
Set control type.
controlType | the control type. |
void AnyCAD::API::ParameterUI::SetDescription | ( | const String & | desc | ) |
Set the description.
desc | the description. |
void AnyCAD::API::ParameterUI::SetGroup | ( | bool | bGroup | ) |
Set it used as Group.
bGroup | true for group usage. |
void AnyCAD::API::ParameterUI::SetGroupName | ( | const String & | groupParamId | ) |
Set the parent group name.
groupParamId | the group parameter id. |
void AnyCAD::API::ParameterUI::SetName | ( | const String & | strName | ) |
Set the name.
strName | the name. |
bool AnyCAD::API::ParameterUI::SetParameter | ( | const String & | paramId, |
const ParameterValue & | pValue | ||
) |
Set parameter
paramId | the id. |
pValue | the value. |
void AnyCAD::API::ParameterUI::SetParamId | ( | const String & | paramId | ) |
Set the ParamId.
paramId | the parameter id. |
void AnyCAD::API::ParameterUI::SetReadonly | ( | bool | bReadonly | ) |
Set the read-ability.
bReadonly | readable or writable. |
void AnyCAD::API::ParameterUI::SetUsedByScript | ( | bool | bUseByScript | ) |
Set it accessible via the script.
bUseByScript | true for script. |
void AnyCAD::API::ParameterUI::SetVisible | ( | bool | bVisible | ) |
Set the visibility.
bVisible | show or hide the parameter ui. |