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

拓扑对象组 更多...

#include <APITopoShapeGroup.h>

Public 成员函数

void SetId (int id)
 
int GetId () const
 
int Add (const TopoShape &pTopoShape)
 
TopoShape GetTopoShape (int idx) const
 
TopoShape GetAt (int idx) const
 
void Clear ()
 
int Size () const
 

详细描述

拓扑对象组

多个TopoShape的集合。

成员函数说明

int AnyCAD::API::TopoShapeGroup::Add ( const TopoShape pTopoShape)

Add TopoShape to Group

返回
the index of the TopoShape
void AnyCAD::API::TopoShapeGroup::Clear ( )

Clear the group

TopoShape AnyCAD::API::TopoShapeGroup::GetAt ( int  idx) const

Get the TopoShape by index

返回
the TopoShape. Return null if it doesn't exist.
int AnyCAD::API::TopoShapeGroup::GetId ( ) const

Get id.

返回
the id.
TopoShape AnyCAD::API::TopoShapeGroup::GetTopoShape ( int  idx) const

Get the TopoShape by index

返回
the TopoShape. Return null if it doesn't exist.
void AnyCAD::API::TopoShapeGroup::SetId ( int  id)

Set id.

参数
idthe id.
int AnyCAD::API::TopoShapeGroup::Size ( ) const

Get the number of the TopoShape

返回
the number of the TopoShape

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