#include <camera.h>
Inherited by Tracer.
Inheritance diagram for Camera:


Public Member Functions | |
| Camera (void) | |
| Camera (const GLVector3d &pos, const GLVector3d &ref, const GLVector3d &up) | |
| virtual | ~Camera (void) |
| GLVector3d & | getPos (GLVector3d &pos) const |
| GLVector3d & | getDir (GLVector3d &dir) const |
| GLVector3d & | getRef (GLVector3d &ref) const |
| GLVector3d & | getUp (GLVector3d &up) const |
| GLVector3d | getPos () const |
| GLVector3d | getDir () const |
| GLVector3d | getRef () const |
| GLVector3d | getUp () const |
| void | setPos (const GLVector3d &pos) |
| void | setDir (const GLVector3d &dir) |
| void | setRef (const GLVector3d &ref) |
| void | setUp (const GLVector3d &up) |
| void | setPerspective (const GLdouble fovx, const GLdouble aspect, const GLdouble zNear, const GLdouble zFar) |
| void | computeLookAt (GLMatrix4d &m) |
| void | computePerspective (GLMatrix4d &m) |
| void | computeFrustum () |
| Frustum | getFrustum () const |
| void | gluLookAt () |
| void | gluPerspective () |
| void | setView () |
Protected Attributes | |
| GLVector3d | mPosition |
| camera position (eye point) | |
| GLVector3d | mReferencePoint |
| reference point (the point we are looking at) | |
| GLVector3d | mUpVector |
| where is "UP", not necesary perpendicular to mPosition nor mReferencePoint | |
| Frustum | mFrustum |
Private Attributes | |
| Perspective | mPerspective |
| bool | mPerspectiveChanged |
Classes | |
| struct | Perspective |
Definition at line 10 of file camera.h.
|
|
Definition at line 7 of file camera.cpp. |
|
||||||||||||||||
|
Definition at line 14 of file camera.cpp. |
|
|
Definition at line 18 of file camera.cpp. |
|
|
Definition at line 106 of file camera.cpp. References computeLookAt(), computePerspective(), mFrustum, and Frustum::set(). Referenced by LayerGame::update(). Here is the call graph for this function: ![]() |
|
|
Definition at line 33 of file camera.cpp. References getPos(), getRef(), and getUp(). Referenced by computeFrustum(), and gluLookAt(). Here is the call graph for this function: ![]() |
|
|
Definition at line 62 of file camera.cpp. References Camera::Perspective::aspect, Camera::Perspective::fovx, mPerspective, Camera::Perspective::zFar, and Camera::Perspective::zNear. Referenced by computeFrustum(), and gluPerspective(). |
|
|
|
|
|
Definition at line 70 of file camera.h. References mPosition, and mReferencePoint. Referenced by LayerGame::update(). |
|
|
Definition at line 47 of file camera.h. References mFrustum. |
|
|
Definition at line 74 of file camera.h. Referenced by computeLookAt(). |
|
|
Definition at line 69 of file camera.h. References mPosition. |
|
|
Definition at line 76 of file camera.h. Referenced by computeLookAt(). |
|
|
Definition at line 71 of file camera.h. References mReferencePoint. |
|
|
Definition at line 77 of file camera.h. Referenced by computeLookAt(). |
|
|
Definition at line 72 of file camera.h. References mUpVector. |
|
|
Definition at line 92 of file camera.cpp. References computeLookAt(). Referenced by setView(). Here is the call graph for this function: ![]() |
|
|
Definition at line 99 of file camera.cpp. References computePerspective(). Referenced by setView(). Here is the call graph for this function: ![]() |
|
|
Definition at line 80 of file camera.h. References mPosition, and mReferencePoint. Referenced by LayerGame::update(). |
|
||||||||||||||||||||
|
Definition at line 21 of file camera.cpp. References Camera::Perspective::aspect, Camera::Perspective::fovx, mPerspective, mPerspectiveChanged, Camera::Perspective::zFar, and Camera::Perspective::zNear. Referenced by GameClient::getCamera(), and LayerGame::setView(). |
|
|
Definition at line 79 of file camera.h. References mPosition. |
|
|
Definition at line 81 of file camera.h. References mReferencePoint. |
|
|
Definition at line 82 of file camera.h. References mUpVector. |
|
|
Definition at line 117 of file camera.cpp. References gluLookAt(), and gluPerspective(). Referenced by LayerGame::setView(). Here is the call graph for this function: ![]() |
|
|
Definition at line 61 of file camera.h. Referenced by computeFrustum(), and getFrustum(). |
|
|
Definition at line 65 of file camera.h. Referenced by computePerspective(), and setPerspective(). |
|
|
Definition at line 66 of file camera.h. Referenced by setPerspective(). |
|
|
camera position (eye point)
|
|
|
reference point (the point we are looking at)
|
|
|
where is "UP", not necesary perpendicular to mPosition nor mReferencePoint
|
1.4.5