AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIGridElement.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIGridElement_H_
4 #define _APIGridElement_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIRenderableElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class ReferencePlane;
13  class SnapGridPoint;
14  class SnapTargetCollector;
15  class SceneNode;
24  : public RenderableElement
25  {
27  public:
32  void SetReferenceId(const ElementId& _ReferenceId);
37  ElementId GetReferenceId() const;
38 
43  void SetGridSystemId(const ElementId& _GridSystemId);
48  ElementId GetGridSystemId() const;
49 
54  void SetDirection(const EnumAxesDirection& _Direction);
59  EnumAxesDirection GetDirection() const;
60 
65  void SetOffsetIndex(int _OffsetIndex);
70  int GetOffsetIndex() const;
71 
76  void SetItemLabelsU(const ElementIdList& _ItemLabelsU);
81  ElementIdList GetItemLabelsU() const;
82 
87  void SetItemLabelsV(const ElementIdList& _ItemLabelsV);
92  ElementIdList GetItemLabelsV() const;
93 
97  void CreateItemLabels () ;
102  ElementIdList GetGridItemsU () const;
107  ElementIdList GetGridItemsV () const;
112  virtual void CollectSnapTargets (const SnapTargetCollector& collector) const;
117  virtual SceneNode GetSceneNode () const;
118  };//GridElement;
119 }}//API
120 
121 #endif //_APIGridElement_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The element that can hold geometry.
Definition: APIRenderableElement.h:22
EnumAxesDirection
Definition: APIEnums.h:181
The id.
Definition: APIElementId.h:16
场景的节点的基类。
Definition: APISceneNode.h:22
The utiliy to collect SnapTarget.
Definition: APISnapTargetCollector.h:18
The grid element.
Definition: APIGridElement.h:23
std::vector< ElementId > ElementIdList
Definition: APIElementId.h:54
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33