Classes | Public Member Functions | Private Attributes
TomGine::tgCamera Class Reference

Class tgCamera. More...

#include <tgCamera.h>

List of all members.

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 ()
tgFrustumGetFrustum ()
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

Detailed Description

Class tgCamera.

Definition at line 29 of file tgCamera.h.


Constructor & Destructor Documentation

Definition at line 58 of file tgCamera.cpp.


Member Function Documentation

Definition at line 202 of file tgCamera.cpp.

Definition at line 390 of file tgCamera.cpp.

void TomGine::tgCamera::DrawFrustum ( ) [inline]

Definition at line 168 of file tgCamera.h.

Definition at line 268 of file tgCamera.cpp.

Definition at line 251 of file tgCamera.cpp.

Definition at line 246 of file tgCamera.cpp.

Definition at line 285 of file tgCamera.cpp.

Definition at line 142 of file tgCamera.h.

Definition at line 126 of file tgCamera.h.

float TomGine::tgCamera::GetFOVY ( ) [inline]

Definition at line 139 of file tgCamera.h.

Definition at line 144 of file tgCamera.h.

unsigned TomGine::tgCamera::GetHeight ( ) [inline]

Definition at line 137 of file tgCamera.h.

Definition at line 141 of file tgCamera.h.

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.

Definition at line 127 of file tgCamera.h.

Definition at line 128 of file tgCamera.h.

Definition at line 132 of file tgCamera.h.

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.

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.

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.

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.

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.


Member Data Documentation

Definition at line 37 of file tgCamera.h.

Definition at line 45 of file tgCamera.h.

float TomGine::tgCamera::m_fovy [private]

Definition at line 42 of file tgCamera.h.

Definition at line 48 of file tgCamera.h.

unsigned TomGine::tgCamera::m_height [private]

Definition at line 41 of file tgCamera.h.

Definition at line 46 of file tgCamera.h.

unsigned short TomGine::tgCamera::m_projection [private]

Definition at line 44 of file tgCamera.h.

Definition at line 33 of file tgCamera.h.

Definition at line 35 of file tgCamera.h.

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.

Definition at line 38 of file tgCamera.h.

Definition at line 39 of file tgCamera.h.


The documentation for this class was generated from the following files:


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:26