K3dSphereMove Class Reference

#include <K3dSphereMove.h>

Inheritance diagram for K3dSphereMove:

K3dSphereVis K3dSphere K3dSphereObj List of all members.

Public Member Functions

 K3dSphereMove ()
 ~K3dSphereMove ()
void Move (const K3dVector3Obj &_rkPosition, const K3dVector3Obj &_rkAngle)
 Move to position.
K3dVector3ObjGetRelPosition ()
 Get or set relative position.
const K3dVector3ObjGetRelPosition () const
 Get or set relative position.
void SetRelPosition (K3dVector3Obj *_pRelPosition)
 Set relative position.
K3dVector3ObjGetRotation ()
 Get or set rotation.
void SetRotation (K3dVector3Obj *_pRotation)
 Set rotation.
K3dMatrixGetMatrix ()
 Get render matrix.
void SetMatrix (K3dMatrix *_pMatrix)
 Set render matrix.
K3dMatrixGetRotMatrix ()
 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

K3dVector3Objm_pRotation
 Plane rotation angle.
K3dVector3Objm_pRelPosition
 Relative plane position.
K3dMatrixm_pMatrix
 Render matrix.
K3dMatrixm_pRotMatrix
 Rotation matrix.

Detailed Description

Definition at line 41 of file K3dSphereMove.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Get render matrix.

Definition at line 89 of file K3dSphereMove.h.

References m_pMatrix.

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]

Get rotation matrix.

Definition at line 101 of file K3dSphereMove.h.

References m_pRotMatrix.

void K3dSphereMove::SetRotMatrix ( K3dMatrix _pRotMatrix  )  [inline]

Set rotation matrix.

Definition at line 107 of file K3dSphereMove.h.

References m_pRotMatrix.

Referenced by K3dSphereBuild::CreateNewSphereObj().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:34 2007 for K3dEngine by  doxygen 1.5.0