定义窗口的视口信息 更多...
#include <APIViewport.h>
Public 成员函数 | |
Real | GetX () const |
Real | GetY () const |
Real | GetWidth () const |
Vector2 | GetSize () const |
void | SetType (const EnumProjectionType &nType) |
EnumProjectionType | GetType () const |
float | GetZoom () const |
void | SetZoom (const float &zoom) |
Matrix4 | UpdateProjectionMatrix () |
定义窗口的视口信息
y | | |_ _ _ _ x (0,0)
Vector2 AnyCAD::API::Viewport::GetSize | ( | ) | const |
获取视口高度。
EnumProjectionType AnyCAD::API::Viewport::GetType | ( | ) | const |
获取投影类型。
Real AnyCAD::API::Viewport::GetWidth | ( | ) | const |
获取视口宽度
Real AnyCAD::API::Viewport::GetX | ( | ) | const |
获取 x 位置.
Real AnyCAD::API::Viewport::GetY | ( | ) | const |
获取 y 位置。
float AnyCAD::API::Viewport::GetZoom | ( | ) | const |
获取缩放系数。
void AnyCAD::API::Viewport::SetType | ( | const EnumProjectionType & | nType | ) |
设置投影类型:正交或透视
nType | 投影类型. |
void AnyCAD::API::Viewport::SetZoom | ( | const float & | zoom | ) |
设置缩放系数。
zoom | 缩放系数. |
Matrix4 AnyCAD::API::Viewport::UpdateProjectionMatrix | ( | ) |
更新投影矩阵。