#include <K3dLineMove.h>
Inheritance diagram for K3dLineMove:
Public Member Functions | |
K3dLineMove () | |
~K3dLineMove () | |
K3dLineMove & | operator= (K3dLineMove &_rkLineMove) |
void | UpdateMatrix () |
Set position, rotation matrix, normal, distance and vertex array from render matrix. | |
void | Init () |
Init line for moving by matrix. | |
K3dVector3Obj * | GetPosition () |
Get line position. | |
const K3dVector3Obj * | GetPosition () const |
Get line position. | |
void | SetPosition (K3dVector3Obj *_pPosition) |
Set line position. | |
K3dVector3Obj * | GetRotation () |
Get line rotation. | |
const K3dVector3Obj * | GetRotation () const |
Get line rotation. | |
void | SetRotation (K3dVector3Obj *_pRotation) |
Set line rotation. | |
K3dVector3Obj * | GetRelOrigin () |
Get relative line origin. | |
const K3dVector3Obj * | GetRelOrigin () const |
Get relative line origin. | |
void | SetRelOrigin (K3dVector3Obj *_pRelOrigin) |
Set relative line origin. | |
K3dVector3Obj * | GetRelDirection () |
Get relative line direction. | |
const K3dVector3Obj * | GetRelDirection () const |
Get relative line direction. | |
void | SetRelDirection (K3dVector3Obj *_pRelDirection) |
Set relative line direction. | |
K3dMatrix * | GetMatrix () |
Get render matrix. | |
const K3dMatrix * | GetMatrix () const |
Get render matrix. | |
void | SetMatrix (K3dMatrix *_pMatrix) |
Set render matrix. | |
K3dMatrix * | GetRotMatrix () |
Get rotation matrix. | |
const K3dMatrix * | GetRotMatrix () 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 | |
K3dVector3Obj * | m_pPosition |
Line position. | |
K3dVector3Obj * | m_pRotation |
Line rotation angle. | |
K3dVector3Obj * | m_pRelOrigin |
Line relative origin. | |
K3dVector3Obj * | m_pRelDirection |
Line relative direction. | |
K3dMatrix * | m_pMatrix |
Render matrix. | |
K3dMatrix * | m_pRotMatrix |
Rotation matrix. |
Definition at line 41 of file K3dLineMove.h.
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.
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] |
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] |
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] |
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] |
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] |
void K3dLineMove::SetRotMatrix | ( | K3dMatrix * | _pMatrix | ) | [inline] |
Set rotation matrix.
Definition at line 163 of file K3dLineMove.h.
References m_pRotMatrix.
Referenced by K3dLineBuild::CreateNewLineObj().
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().