?? qvperspectivecamera.cpp
字號:
#include <QvPerspectiveCamera.h>
QV_NODE_SOURCE(QvPerspectiveCamera);
QvPerspectiveCamera::QvPerspectiveCamera()
{
QV_NODE_CONSTRUCTOR(QvPerspectiveCamera);
isBuiltIn = TRUE;
QV_NODE_ADD_FIELD(position);
QV_NODE_ADD_FIELD(orientation);
QV_NODE_ADD_FIELD(focalDistance);
QV_NODE_ADD_FIELD(heightAngle);
QV_NODE_ADD_FIELD(nearDistance);
QV_NODE_ADD_FIELD(farDistance);
position.value[0] = 0.0;
position.value[1] = 0.0;
position.value[2] = 1.0;
orientation.axis[0] = 0.0;
orientation.axis[1] = 0.0;
orientation.axis[2] = 1.0;
orientation.angle = 0.0;
focalDistance.value = 5.0;
heightAngle.value = M_PI_4; // 45 degrees
// 1.1 and inventor files have these; others also do
nearDistance.value = .01; // see 1.1 spec for defaults
farDistance.value = 5.0;
}
QvPerspectiveCamera::~QvPerspectiveCamera()
{
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -