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

The base class for the data that need to be stored in document. 更多...

#include <APIElement.h>

类 AnyCAD::API::Element 继承关系图:
AnyCAD::API::Object AnyCAD::API::DBView AnyCAD::API::PropertiesElement AnyCAD::API::ReferencePlane AnyCAD::API::ScriptElement AnyCAD::API::StyleElement AnyCAD::API::CompoundElement AnyCAD::API::GroupElement AnyCAD::API::RenderableElement AnyCAD::API::UserElement AnyCAD::API::LevelPlane AnyCAD::API::SectionPlane AnyCAD::API::LayerElement AnyCAD::API::AnnotationElement AnyCAD::API::GeomElement AnyCAD::API::GridElement AnyCAD::API::GridItemElement AnyCAD::API::GridLabelElement AnyCAD::API::GridSystemElement AnyCAD::API::RenderableInstance AnyCAD::API::RenderableType AnyCAD::API::SubGeomElement

Public 成员函数

ElementId GetId () const
 
String GetName () const
 
void SetName (const String &strName)
 
String GetCategory () const
 
void SetCategory (const String &category)
 
virtual bool SetParameterValue (ParameterId paramId, const ParameterValue &pValue)
 
virtual ParameterValue GetParameterValue (ParameterId paramId) const
 
ParameterUISet GetSystemParameterUISet () const
 
Document GetOwnerDocument () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The base class for the data that need to be stored in document.

TODO:

成员函数说明

String AnyCAD::API::Element::GetCategory ( ) const

Get the element category

返回
the element category.
ElementId AnyCAD::API::Element::GetId ( ) const

Get the element id

返回
the element id.
String AnyCAD::API::Element::GetName ( ) const

Get the element name

返回
the element name.
Document AnyCAD::API::Element::GetOwnerDocument ( ) const

Get the owner document.

返回
the Document
virtual ParameterValue AnyCAD::API::Element::GetParameterValue ( ParameterId  paramId) const
virtual

Get the parameter value

参数
paramIdthe parameter id.
返回
the parameter value. null if failed to get the value.

AnyCAD::API::PropertiesElement 重载.

ParameterUISet AnyCAD::API::Element::GetSystemParameterUISet ( ) const

Get the parameter UI.

返回
the ParameterUISet.
void AnyCAD::API::Element::SetCategory ( const String category)

Set the element category

参数
categorythe element category.
void AnyCAD::API::Element::SetName ( const String strName)

Set the element name

参数
strNamethe element name.
virtual bool AnyCAD::API::Element::SetParameterValue ( ParameterId  paramId,
const ParameterValue pValue 
)
virtual

Set the parameter value

参数
paramIdthe parameter id.
pValuethe parameter value
返回
false if failed to set the value

AnyCAD::API::PropertiesElement 重载.


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