AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIDBView.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIDBView_H_
4 #define _APIDBView_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class RenderableElement;
13  class Document;
22  : public Element
23  {
25  public:
30  void SetViewType(const EnumStandardView& _ViewType);
35  EnumStandardView GetViewType() const;
36 
41  void SetStandalone(bool _Standalone);
46  bool GetStandalone() const;
47 
52  void SetAmbientLight(const ColorValue& _AmbientLight);
57  ColorValue GetAmbientLight() const;
58 
63  void SetLightPosition(const Vector3& _LightPosition);
68  Vector3 GetLightPosition() const;
69 
74  void SetEnableLight(bool _EnableLight);
79  bool GetEnableLight() const;
80 
85  void SetSkyBoxId(const String& _SkyBoxId);
90  String GetSkyBoxId() const;
91 
96  void SetCameraPosition(const Vector3& _CameraPosition);
101  Vector3 GetCameraPosition() const;
102 
107  void SetLookAtPosition(const Vector3& _LookAtPosition);
112  Vector3 GetLookAtPosition() const;
113 
118  void SetModelLayerId(const ElementId& _ModelLayerId);
123  ElementId GetModelLayerId() const;
124 
129  void SetAnnotationLayerId(const ElementId& _AnnotationLayerId);
134  ElementId GetAnnotationLayerId() const;
135 
140  void SetViewSpecificLayerId(const ElementId& _ViewSpecificLayerId);
145  ElementId GetViewSpecificLayerId() const;
146 
151  void SetReferencePlaneId(const ElementId& _ReferencePlaneId);
156  ElementId GetReferencePlaneId() const;
157 
162  void SetDefaultLabelRadius(Real _DefaultLabelRadius);
167  Real GetDefaultLabelRadius() const;
168 
173  void AddViewElement (const RenderableElement& pElement) ;
179  bool IsElementVisible (const ElementId& id) const;
180  };//DBView;
181 }}//API
182 
183 #endif //_APIDBView_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The element that can hold geometry.
Definition: APIRenderableElement.h:22
std::string String
Definition: APIString.h:10
TODO:
Definition: APIDBView.h:21
The id.
Definition: APIElementId.h:16
The base class for the data that need to be stored in document.
Definition: APIElement.h:22
EnumStandardView
Definition: APIEnums.h:56
Point or vector.
Definition: APIMath.h:37
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
Color Value.
Definition: APIMath.h:183
double Real
Definition: APIMath.h:7