AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::CameraOperator类 参考

The camera operator. 更多...

#include <APICameraOperator.h>

Public 成员函数

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

详细描述

The camera operator.

TODO:

成员函数说明

void AnyCAD::API::CameraOperator::FitAll ( const AABox bbox,
const float &  scale 
)

Zoom the view to fit the bbox.

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

Zoom the view to fit the rectangle.

参数
startPtthe start position.
endPtthe end position.
float AnyCAD::API::CameraOperator::GetZoomFactor ( ) const

Get zoom factor

返回
the zoom factor
void AnyCAD::API::CameraOperator::Pan ( int  cx,
int  cy 
)

Move the camera.

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

Along Z-Axis, View center as the rotate center

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

Along Z-Axis.

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

Set zoom factor the zoom factor

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

Zoom the view.

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

Zoom under the mouse position.

参数
deltathe offset.
mousePosthe mouse position.

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