AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APICameraOperator.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APICameraOperator_H_
4 #define _APICameraOperator_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
10  class Viewport;
11  class Camera;
20  {
22  public:
28  void Rotation (int cx, int cy) ;
35  void Rotation (int cx, int cy, const Vector3& pivot) ;
41  void Pan (int cx, int cy) ;
46  void Zoom (int delta) ;
52  void Zoom (int delta, const Vector2& mousePos) ;
57  float GetZoomFactor () const;
61  void SetZoomFactor (const float& factor) ;
67  void FitAll (const AABox& bbox, const float& scale) ;
73  void FitRectangle (const Vector2& startPt, const Vector2& endPt) ;
74  };//CameraOperator;
75 }}//API
76 
77 #endif //_APICameraOperator_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
AABox.
Definition: APIMath.h:281
Point or vector.
Definition: APIMath.h:16
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
Point or vector.
Definition: APIMath.h:37
The camera operator.
Definition: APICameraOperator.h:19