AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIGridPointElement.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIGridPointElement_H_
4 #define _APIGridPointElement_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIPointElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class SnapPoint;
13  class ReferencePlane;
22  : public PointElement
23  {
25  public:
30  void SetGridId(const ElementId& _GridId);
35  ElementId GetGridId() const;
36 
41  void SetHGridItemId(const ElementId& _HGridItemId);
46  ElementId GetHGridItemId() const;
47 
52  void SetVGridItemId(const ElementId& _VGridItemId);
57  ElementId GetVGridItemId() const;
58 
63  void SetZGridItemId(const ElementId& _ZGridItemId);
68  ElementId GetZGridItemId() const;
69 
74  void SetOffset(const Vector3& _Offset);
79  Vector3 GetOffset() const;
80 
86  bool Create (const SnapPoint& snap) ;
87  };//GridPointElement;
88 }}//API
89 
90 #endif //_APIGridPointElement_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The point element.
Definition: APIPointElement.h:20
The joint element.
Definition: APIGridPointElement.h:21
The id.
Definition: APIElementId.h:16
Point or vector.
Definition: APIMath.h:37
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
The snap point.
Definition: APISnapPoint.h:19