Inheritance diagram for DzCamera:
Enumerations | |
enum | CameraType { FRONT_CAMERA, BACK_CAMERA, LEFT_CAMERA, RIGHT_CAMERA, TOP_CAMERA, BOTTOM_CAMERA, PERSPECTIVE_CAMERA, ORTHO_CAMERA, GENERAL_CAMERA } |
Properties | |
Number | aspectRatio |
Number | farClippingPlane |
Number | focalDistance |
Number | focalLength |
Number | nearClippingPlane |
Number | type |
Methods | |
void | aimAt (DzVec3 pos) |
void | frame (DzBox3 box, Number aspect) |
Number | getFieldOfView () |
DzVec3 | getFocalPoint () |
DzLight | getHeadlight () |
Boolean | isViewCamera () |
void | reset () |
Signals | |
void | aspectRatioChanged () |
Signature: "aspectRatioChanged()" | |
void | focalDistanceChanged (DzTimeRange range) |
Signature: "focalDistanceChanged(const DzTimeRange&)" | |
void | focalLengthChanged (DzTimeRange range) |
Signature: "focalLengthChanged(const DzTimeRange&)" | |
void | projectionChanged () |
Signature: "projectionChanged()" |
enum DzCamera::CameraType |
The different types of camera. Each has its own default parameters which it resets to and are either orthogonal or perspective by definition.
void DzCamera::aimAt | ( | DzVec3 | pos | ) |
Rotates the camera and adjusts its focal distance so that its focal point is at the given point.
pos | The point to aim the camera at. |
Reimplemented in DzBasicCamera.
void DzCamera::aspectRatioChanged | ( | ) | [signal] |
Signature: "aspectRatioChanged()"
Emitted when the camera's aspect ratio changes. Currently not implemented.
DzCamera::focalDistanceChanged | ( | DzTimeRange | range | ) | [signal] |
Signature: "focalDistanceChanged(const DzTimeRange&)"
Emitted when the focal distance channel changes.
range | The time range over which the channel changed. |
DzCamera::focalLengthChanged | ( | DzTimeRange | range | ) | [signal] |
Signature: "focalLengthChanged(const DzTimeRange&)"
Emitted when the focal length channel changes.
range | The time range over which the channel changed. |
Translates the camera so that its view frames the given box, and sets the camera's focal point to the center of the box, given the aspect ratio of the current view (w / h)
box | The bounding box to frame in the camera's view | |
aspect | The aspect ratio of the current view. |
Reimplemented in DzBasicCamera.
Number DzCamera::getFieldOfView | ( | ) |
DzVec3 DzCamera::getFocalPoint | ( | ) |
DzLight DzCamera::getHeadlight | ( | ) |
Boolean DzCamera::isViewCamera | ( | ) |
void DzCamera::projectionChanged | ( | ) | [signal] |
Signature: "projectionChanged()"
Emitted when projection of the camera changes and its view must be redrawn.
void DzCamera::reset | ( | ) |
Resets the camera viewing parameters to defaults.
Reimplemented in DzBasicCamera.
The aspect ratio of the camera. Currently not implemented.
[Read Only] The distance of the far clipping plane from the camera.
The focal distance of the camera.
The focal length of the camera.
[Read Only] The distance of the near clipping plane from the camera.
[Read Only] The type of the camera.