Public Member Functions | Protected Attributes | List of all members
ion::Scene::CCamera Class Reference

#include <CCamera.h>

Inheritance diagram for ion::Scene::CCamera:
Inheritance graph
[legend]
Collaboration diagram for ion::Scene::CCamera:
Collaboration graph
[legend]

Public Member Functions

 CCamera ()
 
virtual void RecalculateViewMatrix ()
 
virtual void Update ()
 
virtual vec3f const & GetPosition () const
 
virtual vec3f const & GetLookDirecton () const
 
virtual vec3f GetLookAtTarget () const
 
virtual vec3f const & GetUpVector () const
 
virtual glm::mat4 GetViewMatrix () const
 
virtual glm::mat4 GetProjectionMatrix () const
 
virtual void SetPosition (vec3f const &position)
 
virtual void SetLookDirection (vec3f const &lookDirection)
 
virtual void SetLookAtTarget (vec3f const &lookAtTarget)
 
virtual void SetUpVector (vec3f const &UpVector)
 
virtual void SetViewMatrix (glm::mat4 const &viewMatrix)
 
virtual void SetProjectionMatrix (glm::mat4 const &projectionMatrix)
 
virtual float GetNearPlane () const
 
virtual float GetFarPlane () const
 
virtual void SetNearPlane (float const nearPlane)
 
virtual void SetFarPlane (float const farPlane)
 
virtual vec2i GetScreenCoordinates (vec3f const &WorldPosition, vec2f const &WindowSize, bool *InFront=nullptr)
 
virtual ray3f GetPickingRay (vec2i const &Pixel, vec2f const &WindowSize)
 

Protected Attributes

vec3f Position
 
vec3f LookDirection
 
vec3f UpVector
 
glm::mat4 ViewMatrix
 
glm::mat4 ProjectionMatrix
 
float NearPlane
 
float FarPlane
 

Constructor & Destructor Documentation

ion::Scene::CCamera::CCamera ( )

Member Function Documentation

float ion::Scene::CCamera::GetFarPlane ( ) const
virtual
vec3f ion::Scene::CCamera::GetLookAtTarget ( ) const
virtual

Implements ion::Scene::ICamera.

vec3f const & ion::Scene::CCamera::GetLookDirecton ( ) const
virtual

Implements ion::Scene::ICamera.

float ion::Scene::CCamera::GetNearPlane ( ) const
virtual
ray3f ion::Scene::CCamera::GetPickingRay ( vec2i const &  Pixel,
vec2f const &  WindowSize 
)
virtual
vec3f const & ion::Scene::CCamera::GetPosition ( ) const
virtual

Implements ion::Scene::ICamera.

glm::mat4 ion::Scene::CCamera::GetProjectionMatrix ( ) const
virtual

Implements ion::Scene::ICamera.

vec2i ion::Scene::CCamera::GetScreenCoordinates ( vec3f const &  WorldPosition,
vec2f const &  WindowSize,
bool *  InFront = nullptr 
)
virtual
vec3f const & ion::Scene::CCamera::GetUpVector ( ) const
virtual

Implements ion::Scene::ICamera.

glm::mat4 ion::Scene::CCamera::GetViewMatrix ( ) const
virtual

Implements ion::Scene::ICamera.

void ion::Scene::CCamera::RecalculateViewMatrix ( )
virtual
void ion::Scene::CCamera::SetFarPlane ( float const  farPlane)
virtual
void ion::Scene::CCamera::SetLookAtTarget ( vec3f const &  lookAtTarget)
virtual

Implements ion::Scene::ICamera.

void ion::Scene::CCamera::SetLookDirection ( vec3f const &  lookDirection)
virtual

Implements ion::Scene::ICamera.

void ion::Scene::CCamera::SetNearPlane ( float const  nearPlane)
virtual
void ion::Scene::CCamera::SetPosition ( vec3f const &  position)
virtual

Implements ion::Scene::ICamera.

void ion::Scene::CCamera::SetProjectionMatrix ( glm::mat4 const &  projectionMatrix)
virtual
void ion::Scene::CCamera::SetUpVector ( vec3f const &  UpVector)
virtual

Implements ion::Scene::ICamera.

void ion::Scene::CCamera::SetViewMatrix ( glm::mat4 const &  viewMatrix)
virtual
void ion::Scene::CCamera::Update ( )
virtual

Member Data Documentation

float ion::Scene::CCamera::FarPlane
protected
vec3f ion::Scene::CCamera::LookDirection
protected
float ion::Scene::CCamera::NearPlane
protected
vec3f ion::Scene::CCamera::Position
protected
glm::mat4 ion::Scene::CCamera::ProjectionMatrix
protected
vec3f ion::Scene::CCamera::UpVector
protected
glm::mat4 ion::Scene::CCamera::ViewMatrix
protected

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