#include <Camera.h>
Inheritance diagram for TCameraClassic:


Public Member Functions | |
| virtual const TString & | GetName (void) const |
| Returns camera name. | |
| virtual const TMatrix4 & | GetViewMatrix (void) const |
| Returns view matrix contained inside this camera. | |
| virtual const TMatrix4 & | GetProjectionMatrix (void) const |
| Returns projection matrix from this camera Matrix ordering is sot to row-major. | |
| virtual const TVector3 & | GetPosition (void) const |
| Returns position for this camera. | |
| virtual const TVector3 & | GetDirection (void) const |
| Returns normalized vector of camera direction == normalize(target-postion). | |
| TCameraClassic (const TString &name, const TVector3 &position, const TVector3 &target, float fov, float aspect, float near, float far, float minZoom=5.f) | |
| Constructor. | |
| ~TCameraClassic (void) | |
| Desctructor. | |
| void | Rotate (float h, float v) |
| Rotate with camera about specified angle in radians. | |
| void | Zoom (float zoom) |
| Zoom with camera. | |
| void | RotateAndZoom (float h, float v, float zoom) |
| Rotate and zoom camera. | |
Definition at line 68 of file Camera.h.
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 29 of file Camera.cpp. References NSMath::TVector3::Length(), NSMath::TVector3::Minus(), NSMath::NSStdMath::sqrt(), NSMath::TVector3::x, and NSMath::TVector3::y. Here is the call graph for this function: ![]() |
|
|
Desctructor.
Definition at line 76 of file Camera.cpp. |
|
|
Returns normalized vector of camera direction == normalize(target-postion).
Implements TCamera. |
|
|
Returns camera name. Camera must have name. Implements TCamera. |
|
|
Returns position for this camera.
Implements TCamera. |
|
|
Returns projection matrix from this camera Matrix ordering is sot to row-major.
Implements TCamera. |
|
|
Returns view matrix contained inside this camera. Matrix ordering is sot to row-major. Implements TCamera. |
|
||||||||||||
|
Rotate with camera about specified angle in radians.
Definition at line 120 of file Camera.cpp. References NSMath::TVector3::Minus(), NSMath::TVector3::Normalize(), NSMath::TVector3::Plus(), NSMath::TVector3::RotateZ(), NSMath::NSFastMath::SinCos(), NSMath::NSFastMath::Sqrt(), NSMath::TVector3::Sub(), NSMath::TVector3::x, NSMath::TVector3::y, and NSMath::TVector3::z. Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Rotate and zoom camera.
Definition at line 200 of file Camera.cpp. References NSMath::TVector3::Minus(), NSMath::TVector3::Normalize(), NSMath::TVector3::Plus(), NSMath::TVector3::RotateZ(), NSMath::TVector3::Scale(), NSMath::NSFastMath::SinCos(), NSMath::NSFastMath::Sqrt(), NSMath::TVector3::Sub(), NSMath::TVector3::x, NSMath::TVector3::y, and NSMath::TVector3::z. Here is the call graph for this function: ![]() |
|
|
Zoom with camera.
Definition at line 178 of file Camera.cpp. References NSMath::TVector3::Minus(), and NSMath::TVector3::Plus(). Here is the call graph for this function: ![]() |
1.4.6-NO