AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
定义窗口的视口信息 更多...
Public 成员函数 | |
Real | GetX () |
Real | GetY () |
Real | GetWidth () |
Vector2^ | GetSize () |
void | SetType (EnumProjectionType nType) |
EnumProjectionType | GetType () |
float | GetZoom () |
void | SetZoom (float zoom) |
Matrix4^ | UpdateProjectionMatrix () |
定义窗口的视口信息
y | | |_ _ _ _ x (0,0)
Vector2 ^ AnyCAD::Platform::Viewport::GetSize | ( | ) |
获取视口高度。
EnumProjectionType AnyCAD::Platform::Viewport::GetType | ( | ) |
获取投影类型。
Real AnyCAD::Platform::Viewport::GetWidth | ( | ) |
获取视口宽度
Real AnyCAD::Platform::Viewport::GetX | ( | ) |
获取 x 位置.
Real AnyCAD::Platform::Viewport::GetY | ( | ) |
获取 y 位置。
float AnyCAD::Platform::Viewport::GetZoom | ( | ) |
获取缩放系数。
void AnyCAD::Platform::Viewport::SetType | ( | EnumProjectionType | nType | ) |
设置投影类型:正交或透视
nType | 投影类型. |
void AnyCAD::Platform::Viewport::SetZoom | ( | float | zoom | ) |
设置缩放系数。
zoom | 缩放系数. |
Matrix4 ^ AnyCAD::Platform::Viewport::UpdateProjectionMatrix | ( | ) |
更新投影矩阵。