AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIView3d.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIView3d_H_
4 #define _APIView3d_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIView.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class RenderWindow;
13  class SceneManager;
14  class Renderer;
15  class ScreenWidget;
16  class ContextMenu;
25  : public View
26  {
28  public:
33  Renderer GetRenderer () const;
38  SceneManager GetSceneManager () const;
43  void SetViewType (const EnumStandardView& viewType) ;
48  void SetStandardView (const EnumStandardView& viewType) ;
52  void FitAll () ;
57  void ShowCoordinateAxis (bool bShow) ;
62  ScreenWidget GetCoordinateWidget () const;
67  void ConnectDocumentEvents (bool bConnect) ;
73  Vector3 ScreenToWorld (const Vector2& screenPt) const;
77  virtual void Destroy () ;
83  virtual void OnSize (int nWidth, int nHeight) ;
88  virtual bool OnContextMenu (const ContextMenu& menuContext) ;
93  virtual int OnTimer (int nTimerId) ;
97  virtual void Redraw () ;
101  virtual void RequestDraw (int nRedrawHint) ;
105  virtual void ReloadDocument () ;
106  };//View3d;
107 }}//API
108 
109 #endif //_APIView3d_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Point or vector.
Definition: APIMath.h:16
The screen coordinate widget.
Definition: APIScreenWidget.h:20
Present the view.
Definition: APIView.h:24
场景管理器
Definition: APISceneManager.h:23
EnumStandardView
Definition: APIEnums.h:56
三维视图
Definition: APIView3d.h:24
Point or vector.
Definition: APIMath.h:37
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
上下文菜单
Definition: APIContextMenu.h:17
渲染器。
Definition: APIRenderer.h:25