Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions
Camera Class Reference

List of all members.

Public Member Functions

 Camera (void)
 ~Camera (void)
void SetProjection (float left, float right, float bottom, float top, float near_plane, float far_plane)
void SetProjection (float fovy, float aspect_ratio, float near_plane, float far_plane)
glm::mat4 GetProjection ()
glm::mat4 GetViewMatrix ()
glm::mat4 GetViewMatrix (unsigned int i)
void SetViewMatrix (glm::vec3 p, glm::vec3 l, glm::vec3 u)
void SetViewMatrix (glm::mat4 matrix)
glm::mat4 GetOldProjection ()
glm::mat4 GetOldViewMatrix ()
glm::vec3 GetPosition ()
glm::vec3 GetUpVector ()
glm::vec3 GetCenterPositon ()
void SetActAsOldViewMatrix ()
void SetActAsOldProjectionMatrix ()
glm::mat4 LookAt (glm::vec3 eye, glm::vec3 center, glm::vec3 up)
int SetViewport (int width, int height)
int GetWidth ()
int GetHeight ()
void SetEnvironmentMapping (bool env)
void SetViewMatrix (int z, glm::vec3 eye, glm::vec3 center, glm::vec3 up)

Constructor & Destructor Documentation

Camera::Camera ( void  )

Standard Camera Konstruktor

Camera::~Camera ( void  )

Standard Camera Dekonstruktor


Member Function Documentation

glm::vec3 Camera::GetCenterPositon ( )

Returns Center Positions

Returns:
Matrix
int Camera::GetHeight ( )

Returns Viewport height

glm::mat4 Camera::GetOldProjection ( )

Returns Projection Matrix from previous Frame

Returns:
matrix ... Matrix
glm::mat4 Camera::GetOldViewMatrix ( )

Returns View Matrix from previous Frame

Returns:
matrix ... Matrix
glm::vec3 Camera::GetPosition ( )

Returns Viewpoing Positions

Returns:
Matrix
glm::mat4 Camera::GetProjection ( )

Return Projection Matrix

Returns:
Projection Matrix
glm::vec3 Camera::GetUpVector ( )

Returns UpVector

Returns:
Matrix
glm::mat4 Camera::GetViewMatrix ( )

Return ViewMatrix

Returns:
View Matrix
glm::mat4 Camera::GetViewMatrix ( unsigned int  i)

Return ViewMatrix

Returns:
View Matrix
int Camera::GetWidth ( )

Returns Viewport width

glm::mat4 Camera::LookAt ( glm::vec3  eye,
glm::vec3  center,
glm::vec3  up 
)

OpenGL LookAt Method

void Camera::SetActAsOldProjectionMatrix ( )

Sets last frame projection matrix

void Camera::SetActAsOldViewMatrix ( )

Sets last frame viewing matrix

void Camera::SetEnvironmentMapping ( bool  env)

Enables environment mapping

void Camera::SetProjection ( float  left,
float  right,
float  bottom,
float  top,
float  near_plane,
float  far_plane 
)

Sets Projection matrix Orthogonoal

Parameters:
leftlinke Camera Länge
rightrechte Camera Länge
bottomuntere Camera Länge
topobere Camera Länge
near_planenear Clippingplane
far_planefar Clippingplane
void Camera::SetProjection ( float  fovy,
float  aspect_ratio,
float  near_plane,
float  far_plane 
)

Sets Projection matrix Projections

Parameters:
fovyfovy
aspect_ratioaspect ratio
near_planenear Clippingplane
far_planefar Clippingplane
void Camera::SetViewMatrix ( glm::vec3  p,
glm::vec3  l,
glm::vec3  u 
)

Set Viewmatrix

Parameters:
p... Eye-point
p... Center point
p... Up Vektor
void Camera::SetViewMatrix ( glm::mat4  matrix)

Set Viewmatrix

Parameters:
matrix... Matrix
void Camera::SetViewMatrix ( int  z,
glm::vec3  eye,
glm::vec3  center,
glm::vec3  up 
)

Sets Viewing Matrix for each plane of the environment map

int Camera::SetViewport ( int  width,
int  height 
)

OpenGL SetViewport Method


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