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

The entity groups. 更多...

#include <APIEntityGroup.h>

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

Public 成员函数

int AddTopoShape (const TopoShape &pTopoShape)
 
TopoShape GetTopoShape (int idx) const
 
Entity GetEntity (int idx) const
 
bool SetMaterial (int idx, const String &materialId)
 
int Size () const
 
void Clear ()
 
AABox ComputeBBox () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The entity groups.

TODO:

成员函数说明

int AnyCAD::API::EntityGroup::AddTopoShape ( const TopoShape pTopoShape)

Add TopoShape to Group

参数
pTopoShapethe TopoShape
返回
the index of the TopoShape
void AnyCAD::API::EntityGroup::Clear ( )

Clear the EntityGroup

AABox AnyCAD::API::EntityGroup::ComputeBBox ( ) const

Compute the bounding box

返回
the bounding box
Entity AnyCAD::API::EntityGroup::GetEntity ( int  idx) const

Get the Entity by index

参数
idxthe index of the Entity
返回
the Entity. Return null if it doesn't exist.
TopoShape AnyCAD::API::EntityGroup::GetTopoShape ( int  idx) const

Get the TopoShape by index

参数
idxthe index of the TopoShape
返回
the TopoShape. Return null if it doesn't exist.
bool AnyCAD::API::EntityGroup::SetMaterial ( int  idx,
const String materialId 
)

Set the Material for Entity

参数
idxthe index of the Entity
materialIdthe material id of the material
返回
false if failed.
int AnyCAD::API::EntityGroup::Size ( ) const

Get the number of the TopoShape/Entity

返回
the number of the TopoShape/Entity

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