Inheritance diagram for osg::CameraView:

Public Types | |
| enum | FieldOfViewMode { UNCONSTRAINED, HORIZONTAL, VERTICAL } |
Public Member Functions | |
| CameraView () | |
| CameraView (const CameraView &pat, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| META_Node (osg, CameraView) | |
| void | setPosition (const Vec3d &pos) |
| Set the position of the camera view. | |
| const Vec3d & | getPosition () const |
| Get the position of the camera view. | |
| void | setAttitude (const Quat &quat) |
| Set the attitide of the camera view. | |
| const Quat & | getAttitude () const |
| Get the attitide of the camera view. | |
| void | setFieldOfView (double fieldOfView) |
| Set the field of view. | |
| double | getFieldOfView () const |
| Get the field of view. | |
| void | setFieldOfViewMode (FieldOfViewMode mode) |
| Set the field of view mode - controlling how the field of view of the camera is contrained by the CameaView settings. | |
| FieldOfViewMode | getFieldOfViewMode () const |
| Get the field of view mode. | |
| void | setFocalLength (double focalLength) |
| Set the focal length of the camera. | |
| double | getFocalLength () const |
| Get the focal length of the camera. | |
| virtual bool | computeLocalToWorldMatrix (Matrix &matrix, NodeVisitor *nv) const |
| virtual bool | computeWorldToLocalMatrix (Matrix &matrix, NodeVisitor *nv) const |
Protected Member Functions | |
| virtual | ~CameraView () |
Protected Attributes | |
| Vec3d | _position |
| Quat | _attitude |
| double | _fieldOfView |
| FieldOfViewMode | _fieldOfViewMode |
| double | _focalLength |
The application must attach a camera to a CameraView via the NodePath from the top of the scene graph to the CameraView node itself, and accimulate the view matrix from this NodePath.
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Reimplemented from osg::Transform. |
|
||||||||||||
|
Reimplemented from osg::Transform. |
|
|
Get the attitide of the camera view.
|
|
|
Get the field of view.
|
|
|
Get the field of view mode.
|
|
|
Get the focal length of the camera.
|
|
|
Get the position of the camera view.
|
|
||||||||||||
|
|
|
|
Set the attitide of the camera view.
|
|
|
Set the field of view. The cameras field of view can be contrained to either the horizontal or vertex axis of the camera, or unconstrained in which case the camera/application are left to choose an appropriate field of view. The default value if 60 degrres. |
|
|
Set the field of view mode - controlling how the field of view of the camera is contrained by the CameaView settings.
|
|
|
Set the focal length of the camera. A focal length of 0.0 indicates that the camera/application should determine the focal length. The default value is 0.0. |
|
|
Set the position of the camera view.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|