AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIViewport.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIViewport_H_
4 #define _APIViewport_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
18  {
20  public:
25  Real GetX () const;
30  Real GetY () const;
35  Real GetWidth () const;
40  Vector2 GetSize () const;
45  void SetType (const EnumProjectionType& nType) ;
50  EnumProjectionType GetType () const;
55  float GetZoom () const;
60  void SetZoom (const float& zoom) ;
65  Matrix4 UpdateProjectionMatrix () ;
66  };//Viewport;
67 }}//API
68 
69 #endif //_APIViewport_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Matrix4.
Definition: APIMath.h:248
定义窗口的视口信息
Definition: APIViewport.h:17
Point or vector.
Definition: APIMath.h:16
EnumProjectionType
Definition: APIEnums.h:210
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
double Real
Definition: APIMath.h:7