![]() |
VR-Forces 4.7 Class Documentation
|
Template for 32/64 bit Cameras. More...
Public Member Functions | |
| DtCamera () | |
| CTOR. | |
| virtual | ~DtCamera () |
| DTOR. | |
| void | setNearPlane (T fNearPlane) |
| T | nearPlane (void) const |
| void | setFarPlane (T fFarPlane) |
| T | farPlane (void) const |
| void | setFieldOfView (T fFOVy) |
| This is the complete field of view in the Y direction. Not half. | |
| T | fieldOfView (void) const |
| void | setPosition (const DtVector3< T > &vPosition) |
| DtVector3< T > | position (void) const |
| void | setDirection (const DtVector3< T > &vDirection) |
| DtVector3< T > | direction (void) const |
| DtVector3< T > | upVector (void) const |
| DtVector3< T > | sideVector (void) const |
| void | lookAt (const DtVector3< T > &vEye, const DtVector3< T > &vLook, const DtVector3< T > &vUp) |
| gluLookAt style setting of the view matrix | |
| const DtMatrix4< T > & | ViewMatrix (void) const |
| Get the view matrix specified above. | |
| void | SetPerspective (T fFOVy, T fAspectRatio, T fNearPlane, T fFarPlane) |
| gluPerspective style setting of the projection matrix | |
| const DtMatrix4< T > & | ProjectionMatrix (void) const |
| Get the projection matrix specified above. | |
| const DtMatrix4< T > & | ViewProjectionMatrix (void) const |
| concatenated matrix : projection * view | |
| void | setFixedUpVector (bool fixed) |
| bool | isFixedUpVector (void) const |
| T | aspectRatio (void) const |
| Get the aspect ratio. | |
| bool | IsVisible (const DtAxisAlignedBoundingBox< T > &box) const |
| Is a box visible from this camera? | |
| VisibilityFromCamera | getVisibility (const DtAxisAlignedBoundingBox< T > &box) const |
| Returns visibility from this camera? | |
| DtScreenRect | screenAABB (const DtAxisAlignedBoundingBox< T > &worldBox, const Vector2_uint32 &viewPortSize) const |
| Get the screen space bounds of a world box. | |
Private Member Functions | |
| void | updateFrustumPlanes (void) |
| void | updateViewProjectionMatrix (void) |
Private Attributes | |
| DtVector3< T > | myVecPosition |
| DtVector3< T > | myVecDirection |
| DtVector3< T > | myVecUpVector |
| DtVector3< T > | myVecSideVector |
| T | myfNearPlane |
| T | myfFarPlane |
| T | myfFieldOfViewY |
| T | myfAspectRatio |
| DtMatrix4< T > | myViewMatrix |
| DtMatrix4< T > | myProjectionMatrix |
| DtMatrix4< T > | myViewProjectionMatrix |
| bool | mybFixedUpVector |
| DtPlane< T > | myFrustumPlanes [6] |
Template for 32/64 bit Cameras.
| makVrv::DtCamera< T >::DtCamera | ( | ) |
CTOR.
|
virtual |
DTOR.
| void makVrv::DtCamera< T >::setNearPlane | ( | T | fNearPlane | ) |
| T makVrv::DtCamera< T >::nearPlane | ( | void | ) | const |
| void makVrv::DtCamera< T >::setFarPlane | ( | T | fFarPlane | ) |
| T makVrv::DtCamera< T >::farPlane | ( | void | ) | const |
| void makVrv::DtCamera< T >::setFieldOfView | ( | T | fFOVy | ) |
This is the complete field of view in the Y direction. Not half.
| T makVrv::DtCamera< T >::fieldOfView | ( | void | ) | const |
| void makVrv::DtCamera< T >::setPosition | ( | const DtVector3< T > & | vPosition | ) |
| DtVector3<T> makVrv::DtCamera< T >::position | ( | void | ) | const |
| void makVrv::DtCamera< T >::setDirection | ( | const DtVector3< T > & | vDirection | ) |
| DtVector3<T> makVrv::DtCamera< T >::direction | ( | void | ) | const |
| DtVector3<T> makVrv::DtCamera< T >::upVector | ( | void | ) | const |
| DtVector3<T> makVrv::DtCamera< T >::sideVector | ( | void | ) | const |
| void makVrv::DtCamera< T >::lookAt | ( | const DtVector3< T > & | vEye, |
| const DtVector3< T > & | vLook, | ||
| const DtVector3< T > & | vUp | ||
| ) |
gluLookAt style setting of the view matrix
| const DtMatrix4<T>& makVrv::DtCamera< T >::ViewMatrix | ( | void | ) | const |
Get the view matrix specified above.
| void makVrv::DtCamera< T >::SetPerspective | ( | T | fFOVy, |
| T | fAspectRatio, | ||
| T | fNearPlane, | ||
| T | fFarPlane | ||
| ) |
gluPerspective style setting of the projection matrix
| const DtMatrix4<T>& makVrv::DtCamera< T >::ProjectionMatrix | ( | void | ) | const |
Get the projection matrix specified above.
| const DtMatrix4<T>& makVrv::DtCamera< T >::ViewProjectionMatrix | ( | void | ) | const |
concatenated matrix : projection * view
| void makVrv::DtCamera< T >::setFixedUpVector | ( | bool | fixed | ) |
| bool makVrv::DtCamera< T >::isFixedUpVector | ( | void | ) | const |
| T makVrv::DtCamera< T >::aspectRatio | ( | void | ) | const |
Get the aspect ratio.
| bool makVrv::DtCamera< T >::IsVisible | ( | const DtAxisAlignedBoundingBox< T > & | box | ) | const |
Is a box visible from this camera?
| VisibilityFromCamera makVrv::DtCamera< T >::getVisibility | ( | const DtAxisAlignedBoundingBox< T > & | box | ) | const |
Returns visibility from this camera?
| DtScreenRect makVrv::DtCamera< T >::screenAABB | ( | const DtAxisAlignedBoundingBox< T > & | worldBox, |
| const Vector2_uint32 & | viewPortSize | ||
| ) | const |
Get the screen space bounds of a world box.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |