Darc Library
2012.11
|
#include <nc_gizmo.h>
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 |
darc::numeric::MA_3DGizmo::MA_3DGizmo | ( | ) | [inline] |
virtual darc::numeric::MA_3DGizmo::~MA_3DGizmo | ( | ) | [inline, virtual] |
Must be defined as virtual to prevent memory leak.
Matrix4D darc::numeric::MA_3DGizmo::getGizmoInverted | ( | ) | const [inline] |
Multiplying the world with this matrix transforms everything into camera space.
Matrix4D darc::numeric::MA_3DGizmo::getGizmoTransformation | ( | ) | const [inline] |
void darc::numeric::MA_3DGizmo::lookAt | ( | Vector3D | _vPos, |
Vector3D | _vUp, | ||
Vector3D | _vAt | ||
) |
This sets the position of the gizmo, similarly to the GLUT implementation.
_vPos | Position of the local camera coordinate system in world space. |
void darc::numeric::MA_3DGizmo::updateLocalFrame | ( | ) | [protected] |
float darc::numeric::MA_3DGizmo::fRx [protected] |
float darc::numeric::MA_3DGizmo::fRy [protected] |
float darc::numeric::MA_3DGizmo::fRz [protected] |
Matrix4D darc::numeric::MA_3DGizmo::m_mYXZ [protected] |
Vector3D darc::numeric::MA_3DGizmo::m_vDirLocal [protected] |
Vector3D darc::numeric::MA_3DGizmo::m_vPosGlobal [protected] |
Vector3D darc::numeric::MA_3DGizmo::m_vSideLocal [protected] |
Vector3D darc::numeric::MA_3DGizmo::m_vUpGlobal [protected] |
Vector3D darc::numeric::MA_3DGizmo::m_vUpLocal [protected] |