#include <K3dVertexWork.h>
Inheritance diagram for K3dVertexWork:
Public Member Functions | |
K3dVertexWork (K3dGameData *_pGameData) | |
~K3dVertexWork (void) | |
int | FindVertexId (const char *_strName) |
Find vertex index from global vertex data by vertex name. | |
K3dVertexObj * | FindVertex (const char *_strName) |
Find vertex from global vertex data by vertex name. | |
void | CheckVertexArray (TVertexArray &_rvVertex, ofstream *_pOut) |
Check vertex array. | |
void | DeleteVertex (K3dVertexObj *_pVertex, TVertexArray &_rvVertex) |
Delete vertex from vertex array. | |
void | DeleteDupVerts (TVertexArray &_rvVertex) |
Delete duplicated vertices from vertex array. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 38 of file K3dVertexWork.h.
K3dVertexWork::K3dVertexWork | ( | K3dGameData * | _pGameData | ) |
Definition at line 35 of file K3dVertexWork.cpp.
References m_pGameData, and K3dSceneData::SetVertexWork().
K3dVertexWork::~K3dVertexWork | ( | void | ) |
Definition at line 42 of file K3dVertexWork.cpp.
int K3dVertexWork::FindVertexId | ( | const char * | _strName | ) |
Find vertex index from global vertex data by vertex name.
Definition at line 47 of file K3dVertexWork.cpp.
References K3dSafePointer< _T >::Get(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetVertexObjSP(), and m_pGameData.
Referenced by K3dObjectWork::FindObjectId().
K3dVertexObj * K3dVertexWork::FindVertex | ( | const char * | _strName | ) |
Find vertex from global vertex data by vertex name.
Definition at line 62 of file K3dVertexWork.cpp.
References K3dSafePointer< _T >::Get(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetVertexObjSP(), and m_pGameData.
Referenced by K3dFaceBuild::LoadFaces().
void K3dVertexWork::CheckVertexArray | ( | TVertexArray & | _rvVertex, | |
ofstream * | _pOut | |||
) |
Check vertex array.
Definition at line 77 of file K3dVertexWork.cpp.
Referenced by K3dPolyWork::CheckPoly().
void K3dVertexWork::DeleteVertex | ( | K3dVertexObj * | _pVertex, | |
TVertexArray & | _rvVertex | |||
) |
Delete vertex from vertex array.
_pVertex | Vertex will be deleting from vertex array if exists in vertex array | |
_rvVertex | Vertex array |
Definition at line 103 of file K3dVertexWork.cpp.
Referenced by DeleteDupVerts().
void K3dVertexWork::DeleteDupVerts | ( | TVertexArray & | _rvVertex | ) |
Delete duplicated vertices from vertex array.
&_rvVertex | Input, output vertex array |
Definition at line 119 of file K3dVertexWork.cpp.
References DeleteVertex().
Referenced by K3dConvex::CreatePolyFromVertexArray().
K3dGameData* K3dVertexWork::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dObjectBuild, K3dVertexBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.
Definition at line 40 of file K3dVertexWork.h.
Referenced by FindVertex(), FindVertexId(), and K3dVertexWork().