Inheritance diagram for ege::camera::View:
ege::Camera ememory::EnableSharedFromThis< Camera > ememory::EnableSharedFromThisBase

Public Member Functions

 View (const vec3 &_eye=vec3(0, 0, 0), const vec3 &_target=vec3(0, 0, 1), float _angle=0.0f)
 
 ~View ()
 
virtual void setEye (const vec3 &_eye)
 
virtual vec3 getEye () const
 
virtual void setTarget (const vec3 &_target)
 
const vec3getTarget () const
 
virtual void setAngle (float _angle)
 
float getAngle () const
 
virtual ege::Ray getRayFromScreen (const vec2 &_offset)
 
virtual void drawDebug (ememory::SharedPtr< ewol::resource::Colored3DObject > _draw, ememory::SharedPtr< ege::Camera > _camera)
 
virtual float getTetha ()
 
virtual float getPsy ()
 
- Public Member Functions inherited from ege::Camera
 Camera ()
 
virtual ~Camera ()
 
virtual void periodicCall (float _step)
 
virtual void configureOpenGL ()
 
const mat4getMatrixCamera () const
 
const mat4getMatrixProjection () const
 
virtual void setAspectRatio (float _ratio)
 
virtual void setSceenSize (const vec2 &_screenSize)
 
float getAspectRatio () const
 
virtual void setXAngleView (float _angleRad)
 
virtual void setYAngleView (float _angleRad)
 
float getXAngleView () const
 
virtual void setZFar (float _distance)
 
float getZFar ()
 
virtual void setZNear (float _distance)
 
float getZNear ()
 
ege::Ray getRayFromScreenPosition (const vec2 &_position, const vec2 &_size)
 
- Public Member Functions inherited from ememory::EnableSharedFromThis< Camera >
ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis ()
 
const ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis () const
 
ememory::WeakPtr< EMEMORY_TYPE > weakFromThis ()
 
const ememory::WeakPtr< EMEMORY_TYPE > weakFromThis () const
 

Protected Member Functions

void update ()
 
virtual vec3 getViewVector () const
 
- Protected Member Functions inherited from ege::Camera
virtual void updateProjectionMatrix ()
 
vec2 tansformPositionToAngle (vec3 _vect)
 

Protected Attributes

vec3 m_eye
 
vec3 m_target
 
float m_angle
 
- Protected Attributes inherited from ege::Camera
mat4 m_matrix
 
mat4 m_matrixProjection
 
float m_aspectRatio
 
float m_angleView
 
float m_zFar
 
float m_zNear
 

Constructor & Destructor Documentation

§ View()

ege::camera::View::View ( const vec3 _eye = vec3(0, 0, 0),
const vec3 _target = vec3(0, 0, 1),
float  _angle = 0.0f 
)

Constructor.

§ ~View()

ege::camera::View::~View ( )
inline

Destructor.

Member Function Documentation

§ drawDebug()

virtual void ege::camera::View::drawDebug ( ememory::SharedPtr< ewol::resource::Colored3DObject >  _draw,
ememory::SharedPtr< ege::Camera _camera 
)
virtual

Debug display of the current element.

Parameters
[in,out]drawBasic system to draw the debug shape and informations

Reimplemented from ege::Camera.

§ getAngle()

float ege::camera::View::getAngle ( ) const
inline

Get the camera angle.

Returns
the up camera angle.

§ getEye()

virtual vec3 ege::camera::View::getEye ( ) const
inlinevirtual

get the curent Camera Eye position.

Returns
the current position.

Reimplemented from ege::Camera.

§ getRayFromScreen()

virtual ege::Ray ege::camera::View::getRayFromScreen ( const vec2 _offset)
virtual

Get ray from the camera with the screen offset.

Parameters
[in]_offsetOffset in the screen [-1..1]
Returns
the ray requested.

Reimplemented from ege::Camera.

§ getTarget()

const vec3& ege::camera::View::getTarget ( ) const
inline

Get the curent Camera target position.

Returns
The target position.

§ setAngle()

virtual void ege::camera::View::setAngle ( float  _angle)
virtual

Set the camera angle.

Parameters
[in]_anglecamera angle.

§ setEye()

virtual void ege::camera::View::setEye ( const vec3 _eye)
virtual

set the position of the camera.

Parameters
[in]posPosition of the camera.

§ setTarget()

virtual void ege::camera::View::setTarget ( const vec3 _target)
virtual

set a new Camera target position.

Parameters
[in]_targetNew camera target position.

§ update()

void ege::camera::View::update ( )
protected

update the matrix property

Member Data Documentation

§ m_angle

float ege::camera::View::m_angle
protected

rotation angle of the camera (in rad) through the axis origin->eye

§ m_eye

vec3 ege::camera::View::m_eye
protected

position where the camera see

§ m_target

vec3 ege::camera::View::m_target
protected

origin of the camera


The documentation for this class was generated from the following file:
  • framework/atria-soft/ege/ege/camera/View.hpp