AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIGroupElement.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIGroupElement_H_
4 #define _APIGroupElement_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIPropertiesElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class Element;
21  : public PropertiesElement
22  {
24  public:
29  void SetUsageType(int _UsageType);
34  int GetUsageType() const;
35 
40  void SetElementIds(const ElementIdSet& _ElementIds);
45  ElementIdSet GetElementIds() const;
46 
51  void AddElement (const ElementId& ElementId) ;
56  void RemoveElement (const ElementId& ElementId) ;
62  Element FindElement (const ElementId& ElementId) const;
68  Element FindElementByName (const String& strName) const;
69  };//GroupElement;
70 }}//API
71 
72 #endif //_APIGroupElement_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The element that can store a group of the Element.
Definition: APIGroupElement.h:20
Support user defined parameters and script.
Definition: APIPropertiesElement.h:23
std::string String
Definition: APIString.h:10
The id.
Definition: APIElementId.h:16
The base class for the data that need to be stored in document.
Definition: APIElement.h:22
std::set< ElementId > ElementIdSet
Definition: APIElementId.h:53
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33