#include <tgCamera.h>
Classes | |
struct | Parameter |
Public Member Functions | |
void | Activate () |
void | ApplyTransform () |
void | DrawFrustum () |
void | extrinsic2fsu () |
void | fsu2extrinsic () |
void | fsu2pvu () |
void | fwh2intrinsic () |
mat4 | GetExtrinsic () |
tgVector3 | GetF () |
float | GetFOVY () |
tgFrustum * | GetFrustum () |
unsigned | GetHeight () |
mat4 | GetIntrinsic () |
tgVector3 | GetPos () |
TomGine::tgPose | GetPose () |
unsigned short | GetProjection () |
tgVector3 | GetS () |
tgVector3 | GetU () |
tgVector3 | GetUp () |
tgVector3 | GetView () |
unsigned | GetWidth () |
float | GetZFar () |
float | GetZNear () |
void | Load (tgCamera::Parameter camPar) |
void | Orbit (tgVector3 vPoint, tgVector3 vAxis, float fAngle) |
void | Print () |
void | pvu2fsu () |
void | Rotate (float x, float y, float z, float fAngle) |
void | RotateF (float fAngle) |
void | RotateS (float fAngle) |
void | RotateU (float fAngle) |
void | RotateX (float fAngle) |
void | RotateY (float fAngle) |
void | RotateZ (float fAngle) |
void | Set (float posx, float posy, float posz, float viewx, float viewy, float viewz, float upx, float upy, float upz, float fovy=45.0f, unsigned width=800, unsigned height=600, float zNear=0.1f, float zFar=100.0f, unsigned short projection=GL_PERSPECTIVE) |
void | SetExtrinsic (float *M) |
void | SetIntrinsic (float *M) |
void | SetIntrinsic (float fovy, unsigned width, unsigned height, float zNear, float zFar, unsigned short projection) |
void | SetOrtho () |
void | SetPerspective () |
void | SetPos (float x, float y, float z) |
void | SetViewport (unsigned w, unsigned h) |
void | SetZRange (float near, float far) |
tgCamera () | |
vec2 | ToImageSpace (const vec3 &world_space) |
void | Translate (tgVector3 v) |
void | Translate (float x, float y, float z, float fWay) |
void | TranslateF (float fWay) |
void | TranslateS (float fWay) |
void | TranslateU (float fWay) |
Private Attributes | |
tgVector3 | f |
mat4 | m_extrinsic |
float | m_fovy |
tgFrustum | m_frustum |
unsigned | m_height |
mat4 | m_intrinsic |
unsigned short | m_projection |
tgVector3 | m_vPos |
tgVector3 | m_vUp |
tgVector3 | m_vView |
unsigned | m_width |
float | m_zFar |
float | m_zNear |
tgVector3 | s |
tgVector3 | u |
Class tgCamera.
Definition at line 29 of file tgCamera.h.
Definition at line 58 of file tgCamera.cpp.
void tgCamera::Activate | ( | ) |
Definition at line 202 of file tgCamera.cpp.
void tgCamera::ApplyTransform | ( | ) |
Definition at line 390 of file tgCamera.cpp.
void TomGine::tgCamera::DrawFrustum | ( | ) | [inline] |
Definition at line 168 of file tgCamera.h.
void tgCamera::extrinsic2fsu | ( | ) |
Definition at line 268 of file tgCamera.cpp.
void tgCamera::fsu2extrinsic | ( | ) |
Definition at line 251 of file tgCamera.cpp.
void tgCamera::fsu2pvu | ( | ) |
Definition at line 246 of file tgCamera.cpp.
void tgCamera::fwh2intrinsic | ( | ) |
Definition at line 285 of file tgCamera.cpp.
mat4 TomGine::tgCamera::GetExtrinsic | ( | ) | [inline] |
Definition at line 142 of file tgCamera.h.
tgVector3 TomGine::tgCamera::GetF | ( | ) | [inline] |
Definition at line 126 of file tgCamera.h.
float TomGine::tgCamera::GetFOVY | ( | ) | [inline] |
Definition at line 139 of file tgCamera.h.
tgFrustum* TomGine::tgCamera::GetFrustum | ( | ) | [inline] |
Definition at line 144 of file tgCamera.h.
unsigned TomGine::tgCamera::GetHeight | ( | ) | [inline] |
Definition at line 137 of file tgCamera.h.
mat4 TomGine::tgCamera::GetIntrinsic | ( | ) | [inline] |
Definition at line 141 of file tgCamera.h.
tgVector3 TomGine::tgCamera::GetPos | ( | ) | [inline] |
Definition at line 130 of file tgCamera.h.
Definition at line 300 of file tgCamera.cpp.
unsigned short TomGine::tgCamera::GetProjection | ( | ) | [inline] |
Definition at line 140 of file tgCamera.h.
tgVector3 TomGine::tgCamera::GetS | ( | ) | [inline] |
Definition at line 127 of file tgCamera.h.
tgVector3 TomGine::tgCamera::GetU | ( | ) | [inline] |
Definition at line 128 of file tgCamera.h.
tgVector3 TomGine::tgCamera::GetUp | ( | ) | [inline] |
Definition at line 132 of file tgCamera.h.
tgVector3 TomGine::tgCamera::GetView | ( | ) | [inline] |
Definition at line 131 of file tgCamera.h.
unsigned TomGine::tgCamera::GetWidth | ( | ) | [inline] |
Definition at line 136 of file tgCamera.h.
float TomGine::tgCamera::GetZFar | ( | ) | [inline] |
Definition at line 135 of file tgCamera.h.
float TomGine::tgCamera::GetZNear | ( | ) | [inline] |
Definition at line 134 of file tgCamera.h.
void tgCamera::Load | ( | tgCamera::Parameter | camPar | ) |
Definition at line 64 of file tgCamera.cpp.
void tgCamera::Orbit | ( | tgVector3 | vPoint, |
tgVector3 | vAxis, | ||
float | fAngle | ||
) |
Definition at line 377 of file tgCamera.cpp.
void tgCamera::Print | ( | ) |
Definition at line 218 of file tgCamera.cpp.
void tgCamera::pvu2fsu | ( | ) |
Definition at line 240 of file tgCamera.cpp.
void tgCamera::Rotate | ( | float | x, |
float | y, | ||
float | z, | ||
float | fAngle | ||
) |
Definition at line 335 of file tgCamera.cpp.
void tgCamera::RotateF | ( | float | fAngle | ) |
Definition at line 343 of file tgCamera.cpp.
void tgCamera::RotateS | ( | float | fAngle | ) |
Definition at line 349 of file tgCamera.cpp.
void tgCamera::RotateU | ( | float | fAngle | ) |
Definition at line 355 of file tgCamera.cpp.
void tgCamera::RotateX | ( | float | fAngle | ) |
Definition at line 361 of file tgCamera.cpp.
void tgCamera::RotateY | ( | float | fAngle | ) |
Definition at line 365 of file tgCamera.cpp.
void tgCamera::RotateZ | ( | float | fAngle | ) |
Definition at line 373 of file tgCamera.cpp.
void tgCamera::Set | ( | float | posx, |
float | posy, | ||
float | posz, | ||
float | viewx, | ||
float | viewy, | ||
float | viewz, | ||
float | upx, | ||
float | upy, | ||
float | upz, | ||
float | fovy = 45.0f , |
||
unsigned | width = 800 , |
||
unsigned | height = 600 , |
||
float | zNear = 0.1f , |
||
float | zFar = 100.0f , |
||
unsigned short | projection = GL_PERSPECTIVE |
||
) |
Definition at line 115 of file tgCamera.cpp.
void tgCamera::SetExtrinsic | ( | float * | M | ) |
Definition at line 137 of file tgCamera.cpp.
void tgCamera::SetIntrinsic | ( | float * | M | ) |
Definition at line 146 of file tgCamera.cpp.
void tgCamera::SetIntrinsic | ( | float | fovy, |
unsigned | width, | ||
unsigned | height, | ||
float | zNear, | ||
float | zFar, | ||
unsigned short | projection | ||
) |
Definition at line 152 of file tgCamera.cpp.
void TomGine::tgCamera::SetOrtho | ( | ) | [inline] |
Definition at line 109 of file tgCamera.h.
void TomGine::tgCamera::SetPerspective | ( | ) | [inline] |
Definition at line 108 of file tgCamera.h.
void TomGine::tgCamera::SetPos | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 110 of file tgCamera.h.
void tgCamera::SetViewport | ( | unsigned | w, |
unsigned | h | ||
) |
Definition at line 179 of file tgCamera.cpp.
void tgCamera::SetZRange | ( | float | near, |
float | far | ||
) |
Definition at line 184 of file tgCamera.cpp.
vec2 tgCamera::ToImageSpace | ( | const vec3 & | world_space | ) |
Definition at line 189 of file tgCamera.cpp.
void tgCamera::Translate | ( | tgVector3 | v | ) |
Definition at line 306 of file tgCamera.cpp.
void tgCamera::Translate | ( | float | x, |
float | y, | ||
float | z, | ||
float | fWay | ||
) |
Definition at line 311 of file tgCamera.cpp.
void tgCamera::TranslateF | ( | float | fWay | ) |
Definition at line 318 of file tgCamera.cpp.
void tgCamera::TranslateS | ( | float | fWay | ) |
Definition at line 323 of file tgCamera.cpp.
void tgCamera::TranslateU | ( | float | fWay | ) |
Definition at line 328 of file tgCamera.cpp.
tgVector3 TomGine::tgCamera::f [private] |
Definition at line 37 of file tgCamera.h.
mat4 TomGine::tgCamera::m_extrinsic [private] |
Definition at line 45 of file tgCamera.h.
float TomGine::tgCamera::m_fovy [private] |
Definition at line 42 of file tgCamera.h.
tgFrustum TomGine::tgCamera::m_frustum [private] |
Definition at line 48 of file tgCamera.h.
unsigned TomGine::tgCamera::m_height [private] |
Definition at line 41 of file tgCamera.h.
mat4 TomGine::tgCamera::m_intrinsic [private] |
Definition at line 46 of file tgCamera.h.
unsigned short TomGine::tgCamera::m_projection [private] |
Definition at line 44 of file tgCamera.h.
tgVector3 TomGine::tgCamera::m_vPos [private] |
Definition at line 33 of file tgCamera.h.
tgVector3 TomGine::tgCamera::m_vUp [private] |
Definition at line 35 of file tgCamera.h.
tgVector3 TomGine::tgCamera::m_vView [private] |
Definition at line 34 of file tgCamera.h.
unsigned TomGine::tgCamera::m_width [private] |
Definition at line 41 of file tgCamera.h.
float TomGine::tgCamera::m_zFar [private] |
Definition at line 43 of file tgCamera.h.
float TomGine::tgCamera::m_zNear [private] |
Definition at line 43 of file tgCamera.h.
tgVector3 TomGine::tgCamera::s [private] |
Definition at line 38 of file tgCamera.h.
tgVector3 TomGine::tgCamera::u [private] |
Definition at line 39 of file tgCamera.h.