K3dLineMove Class Reference

#include <K3dLineMove.h>

Inheritance diagram for K3dLineMove:

K3dLine K3dRay K3dLineObj List of all members.

Public Member Functions

 K3dLineMove ()
 ~K3dLineMove ()
K3dLineMoveoperator= (K3dLineMove &_rkLineMove)
void UpdateMatrix ()
 Set position, rotation matrix, normal, distance and vertex array from render matrix.
void Init ()
 Init line for moving by matrix.
K3dVector3ObjGetPosition ()
 Get line position.
const K3dVector3ObjGetPosition () const
 Get line position.
void SetPosition (K3dVector3Obj *_pPosition)
 Set line position.
K3dVector3ObjGetRotation ()
 Get line rotation.
const K3dVector3ObjGetRotation () const
 Get line rotation.
void SetRotation (K3dVector3Obj *_pRotation)
 Set line rotation.
K3dVector3ObjGetRelOrigin ()
 Get relative line origin.
const K3dVector3ObjGetRelOrigin () const
 Get relative line origin.
void SetRelOrigin (K3dVector3Obj *_pRelOrigin)
 Set relative line origin.
K3dVector3ObjGetRelDirection ()
 Get relative line direction.
const K3dVector3ObjGetRelDirection () const
 Get relative line direction.
void SetRelDirection (K3dVector3Obj *_pRelDirection)
 Set relative line direction.
K3dMatrixGetMatrix ()
 Get render matrix.
const K3dMatrixGetMatrix () const
 Get render matrix.
void SetMatrix (K3dMatrix *_pMatrix)
 Set render matrix.
K3dMatrixGetRotMatrix ()
 Get rotation matrix.
const K3dMatrixGetRotMatrix () const
 Get rotation matrix.
void SetRotMatrix (K3dMatrix *_pMatrix)
 Set rotation matrix.

Private Member Functions

void SetRenderMatrix ()
 Set render matrix from position and rotation.

Private Attributes

K3dVector3Objm_pPosition
 Line position.
K3dVector3Objm_pRotation
 Line rotation angle.
K3dVector3Objm_pRelOrigin
 Line relative origin.
K3dVector3Objm_pRelDirection
 Line relative direction.
K3dMatrixm_pMatrix
 Render matrix.
K3dMatrixm_pRotMatrix
 Rotation matrix.

Detailed Description

Definition at line 41 of file K3dLineMove.h.


Constructor & Destructor Documentation

K3dLineMove::K3dLineMove (  ) 

Definition at line 35 of file K3dLineMove.cpp.

References m_pMatrix, m_pPosition, m_pRelDirection, m_pRelOrigin, m_pRotation, and m_pRotMatrix.

K3dLineMove::~K3dLineMove (  ) 

Definition at line 44 of file K3dLineMove.cpp.


Member Function Documentation

void K3dLineMove::SetRenderMatrix (  )  [private]

Set render matrix from position and rotation.

Definition at line 89 of file K3dLineMove.cpp.

References GetPosition(), m_pMatrix, m_pRotMatrix, and K3dMatrix::Translation().

K3dLineMove & K3dLineMove::operator= ( K3dLineMove _rkLineMove  ) 

Definition at line 48 of file K3dLineMove.cpp.

References K3dLine::GetColor(), K3dRay::GetDirection(), GetMatrix(), K3dRay::GetOrigin(), GetPosition(), GetRelDirection(), GetRelOrigin(), GetRotation(), GetRotMatrix(), and K3dLine::GetWidth().

void K3dLineMove::UpdateMatrix (  ) 

Set position, rotation matrix, normal, distance and vertex array from render matrix.

Definition at line 71 of file K3dLineMove.cpp.

References K3dMatrix::ChangeVectorGL(), K3dRay::GetDirection(), K3dRay::GetOrigin(), GetPosition(), K3dMatrix::GetTranslation(), m_pMatrix, m_pPosition, m_pRelDirection, m_pRelOrigin, m_pRotMatrix, and K3dMatrix::ResetTranslation().

Referenced by K3dLineWork::UpdateLines().

void K3dLineMove::Init (  ) 

Init line for moving by matrix.

Definition at line 64 of file K3dLineMove.cpp.

References K3dRay::GetDirection(), K3dRay::GetOrigin(), GetRelDirection(), and GetRelOrigin().

Referenced by K3dBoxBuild::CreateEdge().

K3dVector3Obj* K3dLineMove::GetPosition (  )  [inline]

Get line position.

Definition at line 61 of file K3dLineMove.h.

References m_pPosition.

Referenced by operator=(), SetRenderMatrix(), and UpdateMatrix().

const K3dVector3Obj* K3dLineMove::GetPosition (  )  const [inline]

Get line position.

Definition at line 67 of file K3dLineMove.h.

References m_pPosition.

void K3dLineMove::SetPosition ( K3dVector3Obj _pPosition  )  [inline]

Set line position.

Definition at line 73 of file K3dLineMove.h.

References m_pPosition.

Referenced by K3dLineBuild::CreateNewLineObj().

K3dVector3Obj* K3dLineMove::GetRotation (  )  [inline]

Get line rotation.

Definition at line 79 of file K3dLineMove.h.

References m_pRotation.

Referenced by operator=().

const K3dVector3Obj* K3dLineMove::GetRotation (  )  const [inline]

Get line rotation.

Definition at line 85 of file K3dLineMove.h.

References m_pRotation.

void K3dLineMove::SetRotation ( K3dVector3Obj _pRotation  )  [inline]

Set line rotation.

Definition at line 91 of file K3dLineMove.h.

References m_pRotation.

Referenced by K3dLineBuild::CreateNewLineObj().

K3dVector3Obj* K3dLineMove::GetRelOrigin (  )  [inline]

Get relative line origin.

Definition at line 97 of file K3dLineMove.h.

References m_pRelOrigin.

Referenced by Init(), operator=(), and K3dVM::SetLine().

const K3dVector3Obj* K3dLineMove::GetRelOrigin (  )  const [inline]

Get relative line origin.

Definition at line 103 of file K3dLineMove.h.

References m_pRelOrigin.

void K3dLineMove::SetRelOrigin ( K3dVector3Obj _pRelOrigin  )  [inline]

Set relative line origin.

Definition at line 109 of file K3dLineMove.h.

References m_pRelOrigin.

Referenced by K3dLineBuild::CreateNewLineObj().

K3dVector3Obj* K3dLineMove::GetRelDirection (  )  [inline]

Get relative line direction.

Definition at line 115 of file K3dLineMove.h.

References m_pRelDirection.

Referenced by Init(), operator=(), and K3dVM::SetLine().

const K3dVector3Obj* K3dLineMove::GetRelDirection (  )  const [inline]

Get relative line direction.

Definition at line 121 of file K3dLineMove.h.

References m_pRelDirection.

void K3dLineMove::SetRelDirection ( K3dVector3Obj _pRelDirection  )  [inline]

Set relative line direction.

Definition at line 127 of file K3dLineMove.h.

References m_pRelDirection.

Referenced by K3dLineBuild::CreateNewLineObj().

K3dMatrix* K3dLineMove::GetMatrix (  )  [inline]

Get render matrix.

Definition at line 133 of file K3dLineMove.h.

References m_pMatrix.

Referenced by operator=().

const K3dMatrix* K3dLineMove::GetMatrix (  )  const [inline]

Get render matrix.

Definition at line 139 of file K3dLineMove.h.

References m_pMatrix.

void K3dLineMove::SetMatrix ( K3dMatrix _pMatrix  )  [inline]

Set render matrix.

Definition at line 145 of file K3dLineMove.h.

References m_pMatrix.

Referenced by K3dLineBuild::CreateNewLineObj(), and K3dSphereWork::UpdateSpheres().

K3dMatrix* K3dLineMove::GetRotMatrix (  )  [inline]

Get rotation matrix.

Definition at line 151 of file K3dLineMove.h.

References m_pRotMatrix.

Referenced by operator=().

const K3dMatrix* K3dLineMove::GetRotMatrix (  )  const [inline]

Get rotation matrix.

Definition at line 157 of file K3dLineMove.h.

References m_pRotMatrix.

void K3dLineMove::SetRotMatrix ( K3dMatrix _pMatrix  )  [inline]

Set rotation matrix.

Definition at line 163 of file K3dLineMove.h.

References m_pRotMatrix.

Referenced by K3dLineBuild::CreateNewLineObj().


Member Data Documentation

K3dVector3Obj* K3dLineMove::m_pPosition [private]

Line position.

Definition at line 43 of file K3dLineMove.h.

Referenced by GetPosition(), K3dLineMove(), SetPosition(), and UpdateMatrix().

K3dVector3Obj* K3dLineMove::m_pRotation [private]

Line rotation angle.

Definition at line 44 of file K3dLineMove.h.

Referenced by GetRotation(), K3dLineMove(), and SetRotation().

K3dVector3Obj* K3dLineMove::m_pRelOrigin [private]

Line relative origin.

Definition at line 45 of file K3dLineMove.h.

Referenced by GetRelOrigin(), K3dLineMove(), SetRelOrigin(), and UpdateMatrix().

K3dVector3Obj* K3dLineMove::m_pRelDirection [private]

Line relative direction.

Definition at line 46 of file K3dLineMove.h.

Referenced by GetRelDirection(), K3dLineMove(), SetRelDirection(), and UpdateMatrix().

K3dMatrix* K3dLineMove::m_pMatrix [private]

Render matrix.

Definition at line 47 of file K3dLineMove.h.

Referenced by GetMatrix(), K3dLineMove(), SetMatrix(), SetRenderMatrix(), and UpdateMatrix().

K3dMatrix* K3dLineMove::m_pRotMatrix [private]

Rotation matrix.

Definition at line 48 of file K3dLineMove.h.

Referenced by GetRotMatrix(), K3dLineMove(), SetRenderMatrix(), SetRotMatrix(), and UpdateMatrix().


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