The camera operator.
更多...
The camera operator.
TODO:
void AnyCAD::Platform::CameraOperator::FitAll |
( |
AABox^ |
bbox, |
|
|
float |
scale |
|
) |
| |
Zoom the view to fit the bbox.
- 参数
-
bbox | the bounding box. |
scale | the scale to adjust the fit. (0, 100] |
void AnyCAD::Platform::CameraOperator::FitRectangle |
( |
Vector2^ |
startPt, |
|
|
Vector2^ |
endPt |
|
) |
| |
Zoom the view to fit the rectangle.
- 参数
-
startPt | the start position. |
endPt | the end position. |
float AnyCAD::Platform::CameraOperator::GetZoomFactor |
( |
| ) |
|
Get zoom factor
- 返回
- the zoom factor
void AnyCAD::Platform::CameraOperator::Pan |
( |
int |
cx, |
|
|
int |
cy |
|
) |
| |
Move the camera.
- 参数
-
cx | the x offset. |
cy | the y offset. |
void AnyCAD::Platform::CameraOperator::Rotation |
( |
int |
cx, |
|
|
int |
cy |
|
) |
| |
Along Z-Axis, View center as the rotate center
- 参数
-
cx | the x offset. |
cy | the y offset. |
void AnyCAD::Platform::CameraOperator::Rotation |
( |
int |
cx, |
|
|
int |
cy, |
|
|
Vector3^ |
pivot |
|
) |
| |
Along Z-Axis.
- 参数
-
cx | the x offset. |
cy | the y offset. |
pivot | the center |
void AnyCAD::Platform::CameraOperator::SetZoomFactor |
( |
float |
factor | ) |
|
Set zoom factor the zoom factor
void AnyCAD::Platform::CameraOperator::Zoom |
( |
int |
delta | ) |
|
void AnyCAD::Platform::CameraOperator::Zoom |
( |
int |
delta, |
|
|
Vector2^ |
mousePos |
|
) |
| |
Zoom under the mouse position.
- 参数
-
delta | the offset. |
mousePos | the mouse position. |
该类的文档由以下文件生成: