AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::CameraOperator类 参考

The camera operator. 更多...

Public 成员函数

void Rotation (int cx, int cy)
 
void Rotation (int cx, int cy, Vector3^ pivot)
 
void Pan (int cx, int cy)
 
void Zoom (int delta)
 
void Zoom (int delta, Vector2^ mousePos)
 
float GetZoomFactor ()
 
void SetZoomFactor (float factor)
 
void FitAll (AABox^ bbox, float scale)
 
void FitRectangle (Vector2^ startPt, Vector2^ endPt)
 

详细描述

The camera operator.

TODO:

成员函数说明

void AnyCAD::Platform::CameraOperator::FitAll ( AABox bbox,
float  scale 
)

Zoom the view to fit the bbox.

参数
bboxthe bounding box.
scalethe scale to adjust the fit. (0, 100]
void AnyCAD::Platform::CameraOperator::FitRectangle ( Vector2 startPt,
Vector2 endPt 
)

Zoom the view to fit the rectangle.

参数
startPtthe start position.
endPtthe 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.

参数
cxthe x offset.
cythe y offset.
void AnyCAD::Platform::CameraOperator::Rotation ( int  cx,
int  cy 
)

Along Z-Axis, View center as the rotate center

参数
cxthe x offset.
cythe y offset.
void AnyCAD::Platform::CameraOperator::Rotation ( int  cx,
int  cy,
Vector3 pivot 
)

Along Z-Axis.

参数
cxthe x offset.
cythe y offset.
pivotthe center
void AnyCAD::Platform::CameraOperator::SetZoomFactor ( float  factor)

Set zoom factor the zoom factor

void AnyCAD::Platform::CameraOperator::Zoom ( int  delta)

Zoom the view.

参数
deltathe offset.
void AnyCAD::Platform::CameraOperator::Zoom ( int  delta,
Vector2 mousePos 
)

Zoom under the mouse position.

参数
deltathe offset.
mousePosthe mouse position.

该类的文档由以下文件生成: