The Schema description for element. 更多...
#include <APIElementSchema.h>
Public 成员函数 | |
String | GetName () const |
void | SetName (const String &val) |
String | GetDescription () const |
void | SetDescription (const String &val) |
void | AddProperty (const PropertySchema &schema) |
PropertySchema | AddProperty (const String ¶mId, const String &uiName, const ParameterValue &defaultValue) |
PropertySchema | FindProperty (const String ¶mId) const |
bool | Apply (const PropertiesElement &element) |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
The Schema description for element.
TODO:
void AnyCAD::API::ElementSchema::AddProperty | ( | const PropertySchema & | schema | ) |
Adds a property schema.
schema | The PropertySchema. |
PropertySchema AnyCAD::API::ElementSchema::AddProperty | ( | const String & | paramId, |
const String & | uiName, | ||
const ParameterValue & | defaultValue | ||
) |
Adds a property.
paramId | Identifier for the parameter. |
uiName | The readable name for UI. |
defaultValue | The default value. |
bool AnyCAD::API::ElementSchema::Apply | ( | const PropertiesElement & | element | ) |
Applies on the given element.
element | The element. |
PropertySchema AnyCAD::API::ElementSchema::FindProperty | ( | const String & | paramId | ) | const |
Searches for the property.
paramId | Identifier for the parameter. |
String AnyCAD::API::ElementSchema::GetDescription | ( | ) | const |
Gets the description.
String AnyCAD::API::ElementSchema::GetName | ( | ) | const |
Gets the identifier.
void AnyCAD::API::ElementSchema::SetDescription | ( | const String & | val | ) |
Sets a description.
val | The value. |
void AnyCAD::API::ElementSchema::SetName | ( | const String & | val | ) |
Sets an identifier.
val | The value. |