CameraTransformation Class Reference
#include <CameraTransformation.h>
Public Member Functions | |
| CameraTransformation () | |
| void | setCameraTransformation (TransformationData &transfData) |
| void | setCameraMatrix (gmtl::Matrix44f &mat) |
| void | setPosition (gmtl::Vec3f position) |
| void | setOrientation (gmtl::Quatf camOrientation) |
| void | getCameraTransformation (gmtl::Matrix44f &dst) |
| void | getCameraMatrix (gmtl::Matrix44f &dst) |
| gmtl::Vec3f | getPosition () |
| gmtl::Quatf | getOrientation () |
| gmtl::Vec3f | getDirection () |
Protected Attributes | |
| gmtl::Vec3f | position |
| gmtl::Quatf | orientation |
Constructor & Destructor Documentation
| CameraTransformation::CameraTransformation | ( | ) |
The constructor initializes the position and orientation of the camera
Member Function Documentation
| void CameraTransformation::getCameraMatrix | ( | gmtl::Matrix44f & | dst | ) |
The method returns the camera matrix of the camera (which is the matrix from world to camera space) by storing the value in the passed matrix.
- Parameters:
-
dst matrix to write the camera matrix into.
| void CameraTransformation::getCameraTransformation | ( | gmtl::Matrix44f & | dst | ) |
The method returns the camera transformation of the camera by storing the value in the passed matrix.
- Parameters:
-
dst matrix to write the camera transformation into
| gmtl::Vec3f CameraTransformation::getDirection | ( | ) |
The method returns the view direction of the camera. It assumes that the view direction of an unrotated camera is (0, 0, -1)
- Returns:
- vector with view direction of camera
| gmtl::Quatf CameraTransformation::getOrientation | ( | ) |
The method returns the orientation of the camera.
- Returns:
- position of the camera
| gmtl::Vec3f CameraTransformation::getPosition | ( | ) |
The method returns the position of the camera.
- Returns:
- position of the camera
| void CameraTransformation::setCameraMatrix | ( | gmtl::Matrix44f & | mat | ) |
The method sets the camera matrix. The camera matrix is the transformation matrix from world to camera space. If you want to set the camera's position and orientation then use the setTransformation or setPosition and setOrientation methods. The passed Matrix must not contain a scale factor.
- Parameters:
-
mat camera matrix (transformation matrix from world to camera space)
| void CameraTransformation::setCameraTransformation | ( | TransformationData & | transfData | ) |
The method sets the camera transformation. The passed TransformationData must not contain a scale value!
- Parameters:
-
transfData transformation of the camera.
| void CameraTransformation::setOrientation | ( | gmtl::Quatf | camOrientation | ) |
The method sets the orientation of the camera.
- Parameters:
-
camOrientation orientation of the camera
| void CameraTransformation::setPosition | ( | gmtl::Vec3f | position | ) |
The method sets the position of the camera.
- Parameters:
-
position position of the camera
Member Data Documentation
gmtl::Quatf CameraTransformation::orientation [protected] |
gmtl::Vec3f CameraTransformation::position [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/SystemCore/WorldDatabase/CameraTransformation.h
- src/inVRs/SystemCore/WorldDatabase/CameraTransformation.cpp
Generated on Wed Oct 20 16:11:54 2010 for inVRs by
1.5.8