SGE::CLT_POS< VectorType > Class Template Reference

CLT_POS class is used to store position/rotation/scale of graphical objects in 2D/3D space depending on the type of template vector used. More...

#include <cl_pos.h>

Inheritance diagram for SGE::CLT_POS< VectorType >:

Inheritance graph
[legend]
Collaboration diagram for SGE::CLT_POS< VectorType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

_SG_TLS_INLINE CLT_POS ()
 Default constructor.
_SG_TLS_INLINE CLT_POS (CLT_POS &_Pos)
 Copy constructor.
_SG_TLS_INLINE ~CLT_POS ()
 Destructor.
_SG_TLS_INLINE void Clear ()
 Set rotation/position to 0 and scale to 1.
_SG_TLS_INLINE void DoTranslate ()
 Apply an opengl translation of vector Pos.
_SG_TLS_INLINE void DoRotate ()
 Apply an opengl rotation of vector Rot.
_SG_TLS_INLINE void DoScale ()
 Apply an opengl scale of vector Scale.
_SG_TLS_INLINE void SetScale (VectorType _v)
 Set the value of the Scale vector.
_SG_TLS_INLINE void SetRot (VectorType _v)
 Set the value of the Rot vector.
_SG_TLS_INLINE void SetPos (VectorType _v)
 Set the value of the Pos vector.
_SG_TLS_INLINE CLT_POSoperator= (const CLT_POS &_Pos)
 Affectation operator.
_SG_TLS_INLINE bool operator== (const CLT_POS &_Pos)
 Comparaison operator.

Public Attributes

VectorType Pos
 Position.
VectorType Rot
 Rotation.
VectorType Scale
 Scale of the object.

Detailed Description

template<class VectorType>
class SGE::CLT_POS< VectorType >

CLT_POS class is used to store position/rotation/scale of graphical objects in 2D/3D space depending on the type of template vector used.

Todo:
Add matrix conversion support


Member Function Documentation

template<class VectorType>
_SG_TLS_INLINE CLT_POS& SGE::CLT_POS< VectorType >::operator= const CLT_POS< VectorType > &  _Pos  )  [inline]
 

Affectation operator.

Returns:
The current CL_POS object.

template<class VectorType>
_SG_TLS_INLINE bool SGE::CLT_POS< VectorType >::operator== const CLT_POS< VectorType > &  _Pos  )  [inline]
 

Comparaison operator.

Returns:
True => All vectors are eguals.

false => At least one of the vectors is different.

template<class VectorType>
_SG_TLS_INLINE void SGE::CLT_POS< VectorType >::SetPos VectorType  _v  )  [inline]
 

Set the value of the Pos vector.

Parameters:
_v => input value;

template<class VectorType>
_SG_TLS_INLINE void SGE::CLT_POS< VectorType >::SetRot VectorType  _v  )  [inline]
 

Set the value of the Rot vector.

Parameters:
_v => input value;

template<class VectorType>
_SG_TLS_INLINE void SGE::CLT_POS< VectorType >::SetScale VectorType  _v  )  [inline]
 

Set the value of the Scale vector.

Parameters:
_v => input value;


The documentation for this class was generated from the following file:
Generated on Mon Mar 19 23:15:16 2007 for SugoiTools by  doxygen 1.4.6-NO