Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::numeric::MA_3DGizmo Class Reference

#include <nc_gizmo.h>

Inheritance diagram for darc::numeric::MA_3DGizmo:
darc::protox::PX_Camera darc::protox::PX_Camera_Ghost darc::protox::PX_Camera_Shooter darc::protox::PX_Camera_Temp

List of all members.

Public Member Functions

 MA_3DGizmo ()
virtual ~MA_3DGizmo ()
void lookAt (Vector3D _vPos, Vector3D _vUp, Vector3D _vAt)
Matrix4D getGizmoInverted () const
Matrix4D getGizmoTransformation () const

Protected Member Functions

void updateLocalFrame ()

Protected Attributes

Vector3D m_vUpGlobal
Vector3D m_vPosGlobal
Vector3D m_vDirLocal
Vector3D m_vUpLocal
Vector3D m_vSideLocal
Matrix4D m_mYXZ
float fRy
float fRx
float fRz

Constructor & Destructor Documentation

virtual darc::numeric::MA_3DGizmo::~MA_3DGizmo ( ) [inline, virtual]

Must be defined as virtual to prevent memory leak.


Member Function Documentation

Multiplying the world with this matrix transforms everything into camera space.

void darc::numeric::MA_3DGizmo::lookAt ( Vector3D  _vPos,
Vector3D  _vUp,
Vector3D  _vAt 
)

This sets the position of the gizmo, similarly to the GLUT implementation.

Parameters:
_vPosPosition of the local camera coordinate system in world space.

Member Data Documentation

float darc::numeric::MA_3DGizmo::fRx [protected]
float darc::numeric::MA_3DGizmo::fRy [protected]
float darc::numeric::MA_3DGizmo::fRz [protected]

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