AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIGroupType.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIGroupType_H_
4 #define _APIGroupType_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIRenderableType.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class RenderableInstance;
13  class RenderableType;
22  : public RenderableType
23  {
25  public:
30  void SetInstanceIds(const ElementIdSet& _InstanceIds);
35  ElementIdSet GetInstanceIds() const;
36 
41  void SetPropertyScriptId(const ElementId& _PropertyScriptId);
46  ElementId GetPropertyScriptId() const;
47 
52  void SetTimerScriptId(const ElementId& _TimerScriptId);
57  ElementId GetTimerScriptId() const;
58 
63  void SetTimerEnabled(bool _TimerEnabled);
68  bool GetTimerEnabled() const;
69 
74  void AddInstance (const ElementId& instanceId) ;
79  void RemoveInstance (const ElementId& instanceId) ;
85  RenderableInstance FindInstance (const ElementId& instanceId) const;
91  RenderableInstance FindInstanceByName (const String& strName) const;
97  RenderableType FindType (const ElementId& typeId) const;
105  bool MapComponentParameter (const String& componentName, const String& componentParamId, const String& assemblyParamId) ;
106  };//GroupType;
107 }}//API
108 
109 #endif //_APIGroupType_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The base class for the Type.
Definition: APIRenderableType.h:23
std::string String
Definition: APIString.h:10
The base class for the TypeElement instance. The default direction is UNIT_Y; the rotation use Eular ...
Definition: APIRenderableInstance.h:25
The id.
Definition: APIElementId.h:16
The element that can store a group of the InstanceElement.
Definition: APIGroupType.h:21
std::set< ElementId > ElementIdSet
Definition: APIElementId.h:53
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33