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

The Schema description for element. 更多...

#include <APIElementSchema.h>

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

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 &paramId, const String &uiName, const ParameterValue &defaultValue)
 
PropertySchema FindProperty (const String &paramId) 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.

参数
schemaThe PropertySchema.
PropertySchema AnyCAD::API::ElementSchema::AddProperty ( const String paramId,
const String uiName,
const ParameterValue defaultValue 
)

Adds a property.

参数
paramIdIdentifier for the parameter.
uiNameThe readable name for UI.
defaultValueThe default value.
返回
An APropertySchemaPtr.
bool AnyCAD::API::ElementSchema::Apply ( const PropertiesElement element)

Applies on the given element.

参数
elementThe element.
PropertySchema AnyCAD::API::ElementSchema::FindProperty ( const String paramId) const

Searches for the property.

参数
paramIdIdentifier for the parameter.
返回
The found property.
String AnyCAD::API::ElementSchema::GetDescription ( ) const

Gets the description.

返回
The description.
String AnyCAD::API::ElementSchema::GetName ( ) const

Gets the identifier.

返回
The identifier.
void AnyCAD::API::ElementSchema::SetDescription ( const String val)

Sets a description.

参数
valThe value.
void AnyCAD::API::ElementSchema::SetName ( const String val)

Sets an identifier.

参数
valThe value.

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