#include <K3dSphereMove.h>
Inheritance diagram for K3dSphereMove:
Public Member Functions | |
K3dSphereMove () | |
~K3dSphereMove () | |
void | Move (const K3dVector3Obj &_rkPosition, const K3dVector3Obj &_rkAngle) |
Move to position. | |
K3dVector3Obj * | GetRelPosition () |
Get or set relative position. | |
const K3dVector3Obj * | GetRelPosition () const |
Get or set relative position. | |
void | SetRelPosition (K3dVector3Obj *_pRelPosition) |
Set relative position. | |
K3dVector3Obj * | GetRotation () |
Get or set rotation. | |
void | SetRotation (K3dVector3Obj *_pRotation) |
Set rotation. | |
K3dMatrix * | GetMatrix () |
Get render matrix. | |
void | SetMatrix (K3dMatrix *_pMatrix) |
Set render matrix. | |
K3dMatrix * | GetRotMatrix () |
Get rotation matrix. | |
void | SetRotMatrix (K3dMatrix *_pRotMatrix) |
Set rotation matrix. | |
Private Member Functions | |
void | Rotate (const K3dVector3 &_rkAngle) |
Rotate around position by rotation vector. | |
void | SetRenderMatrix () |
Set render matrix from position and rotation. | |
Private Attributes | |
K3dVector3Obj * | m_pRotation |
Plane rotation angle. | |
K3dVector3Obj * | m_pRelPosition |
Relative plane position. | |
K3dMatrix * | m_pMatrix |
Render matrix. | |
K3dMatrix * | m_pRotMatrix |
Rotation matrix. |
Definition at line 41 of file K3dSphereMove.h.
K3dSphereMove::K3dSphereMove | ( | ) |
Definition at line 36 of file K3dSphereMove.cpp.
References m_pMatrix, m_pRelPosition, m_pRotation, and m_pRotMatrix.
K3dSphereMove::~K3dSphereMove | ( | ) |
Definition at line 44 of file K3dSphereMove.cpp.
void K3dSphereMove::Rotate | ( | const K3dVector3 & | _rkAngle | ) | [private] |
Rotate around position by rotation vector.
Definition at line 55 of file K3dSphereMove.cpp.
References K3dQuaternion::FromAxisAngle(), K3dMath::K_DEG_TO_RAD, m_pRotMatrix, and K3dQuaternion::ToRotationMatrix().
Referenced by Move().
void K3dSphereMove::SetRenderMatrix | ( | ) | [private] |
Set render matrix from position and rotation.
Definition at line 48 of file K3dSphereMove.cpp.
References K3dSphere::GetPosition(), m_pMatrix, m_pRotMatrix, and K3dMatrix::Translation().
Referenced by Move().
void K3dSphereMove::Move | ( | const K3dVector3Obj & | _rkPosition, | |
const K3dVector3Obj & | _rkAngle | |||
) |
Move to position.
Definition at line 66 of file K3dSphereMove.cpp.
References K3dSphere::GetPosition(), Rotate(), and SetRenderMatrix().
Referenced by K3dSphereWork::MoveByMouse().
K3dVector3Obj* K3dSphereMove::GetRelPosition | ( | ) | [inline] |
Get or set relative position.
Definition at line 59 of file K3dSphereMove.h.
References m_pRelPosition.
const K3dVector3Obj* K3dSphereMove::GetRelPosition | ( | ) | const [inline] |
Get or set relative position.
Definition at line 65 of file K3dSphereMove.h.
References m_pRelPosition.
void K3dSphereMove::SetRelPosition | ( | K3dVector3Obj * | _pRelPosition | ) | [inline] |
Set relative position.
Definition at line 71 of file K3dSphereMove.h.
References m_pRelPosition.
Referenced by K3dSphereBuild::CreateNewSphereObj().
K3dVector3Obj* K3dSphereMove::GetRotation | ( | ) | [inline] |
Get or set rotation.
Definition at line 77 of file K3dSphereMove.h.
References m_pRotation.
Referenced by K3dSphereWork::MoveByMouse().
void K3dSphereMove::SetRotation | ( | K3dVector3Obj * | _pRotation | ) | [inline] |
Set rotation.
Definition at line 83 of file K3dSphereMove.h.
References m_pRotation.
Referenced by K3dSphereBuild::CreateNewSphereObj().
K3dMatrix* K3dSphereMove::GetMatrix | ( | ) | [inline] |
void K3dSphereMove::SetMatrix | ( | K3dMatrix * | _pMatrix | ) | [inline] |
Set render matrix.
Definition at line 95 of file K3dSphereMove.h.
References m_pMatrix.
Referenced by K3dSphereBuild::CreateNewSphereObj().
K3dMatrix* K3dSphereMove::GetRotMatrix | ( | ) | [inline] |
void K3dSphereMove::SetRotMatrix | ( | K3dMatrix * | _pRotMatrix | ) | [inline] |
Set rotation matrix.
Definition at line 107 of file K3dSphereMove.h.
References m_pRotMatrix.
Referenced by K3dSphereBuild::CreateNewSphereObj().
K3dVector3Obj* K3dSphereMove::m_pRotation [private] |
Plane rotation angle.
Definition at line 43 of file K3dSphereMove.h.
Referenced by GetRotation(), K3dSphereMove(), and SetRotation().
K3dVector3Obj* K3dSphereMove::m_pRelPosition [private] |
Relative plane position.
Definition at line 44 of file K3dSphereMove.h.
Referenced by GetRelPosition(), K3dSphereMove(), and SetRelPosition().
K3dMatrix* K3dSphereMove::m_pMatrix [private] |
Render matrix.
Definition at line 45 of file K3dSphereMove.h.
Referenced by GetMatrix(), K3dSphereMove(), SetMatrix(), and SetRenderMatrix().
K3dMatrix* K3dSphereMove::m_pRotMatrix [private] |
Rotation matrix.
Definition at line 46 of file K3dSphereMove.h.
Referenced by GetRotMatrix(), K3dSphereMove(), Rotate(), SetRenderMatrix(), and SetRotMatrix().