#include <K3dLineWork.h>
Inheritance diagram for K3dLineWork:
Public Member Functions | |
K3dLineWork (K3dGameData *_pGameData) | |
~K3dLineWork (void) | |
int | FindLineId (const char *_strName) |
Find line index in global line data by line name. | |
void | UpdateLines () |
Update lines. | |
void | DeleteLine (K3dLineObj *_pLine, TLineArray &_rvLine) |
Delete line from line array. | |
void | DeleteDupLines (TLineArray &_rvLine) |
Delete duplicated lines from line array. | |
void | CheckLineArray (TLineArray &_rvLine) |
Check line array structure. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 37 of file K3dLineWork.h.
K3dLineWork::K3dLineWork | ( | K3dGameData * | _pGameData | ) |
K3dLineWork::~K3dLineWork | ( | void | ) |
Definition at line 40 of file K3dLineWork.cpp.
int K3dLineWork::FindLineId | ( | const char * | _strName | ) |
Find line index in global line data by line name.
Definition at line 45 of file K3dLineWork.cpp.
References K3dSafePointer< _T >::Get(), K3dGameData::GetLineObjSP(), K3dSafePointer< _T >::GetNum(), and m_pGameData.
Referenced by K3dObjectWork::FindObjectId().
void K3dLineWork::UpdateLines | ( | ) |
Update lines.
Definition at line 60 of file K3dLineWork.cpp.
References K3dSafePointer< _T >::Get(), K3dGameData::GetLineObjSP(), K3dSafePointer< _T >::GetNum(), m_pGameData, and K3dLineMove::UpdateMatrix().
Referenced by K3dMngGeometry::UpdateMngGeometry().
void K3dLineWork::DeleteLine | ( | K3dLineObj * | _pLine, | |
TLineArray & | _rvLine | |||
) |
Delete line from line array.
_pLine | Line will be deleting from line array if exists in line array | |
_rvLine | Line array |
Definition at line 71 of file K3dLineWork.cpp.
Referenced by DeleteDupLines().
void K3dLineWork::DeleteDupLines | ( | TLineArray & | _rvLine | ) |
Delete duplicated lines from line array.
&_rvLine | Input, output line array |
Definition at line 86 of file K3dLineWork.cpp.
References DeleteLine().
Referenced by K3dConvex::CreatePolyFromVertexArray().
void K3dLineWork::CheckLineArray | ( | TLineArray & | _rvLine | ) |
Check line array structure.
_rvLine | Checked line array |
Definition at line 126 of file K3dLineWork.cpp.
References K3dLineObj::GetId().
K3dGameData* K3dLineWork::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, K3dMngSystem, and K3dObjectWork.
Definition at line 39 of file K3dLineWork.h.
Referenced by FindLineId(), K3dLineWork(), and UpdateLines().