#include <K3dTriangleBuild.h>
Inheritance diagram for K3dTriangleBuild:
Public Member Functions | |
K3dTriangleBuild (K3dGameData *_pGameData) | |
Constructor. | |
~K3dTriangleBuild (void) | |
void | LoadTriangles () |
Load triangles and add them to global data. | |
void | DeleteTriangles () |
Delete all triangles from global data. | |
K3dTriangleObj * | CreateNewTriangleObj () |
K3dTriangleObj * | CreateNewTriangleObj (K3dVector3Obj *_pV0, K3dVector3Obj *_pV1, K3dVector3Obj *_pV2) |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dVector3Build * | m_pVector3Build |
Pointer to 3d vector builder. | |
K3dTriangleWork * | m_pTriangleWork |
Pointer to triangle work. |
Definition at line 43 of file K3dTriangleBuild.h.
K3dTriangleBuild::K3dTriangleBuild | ( | K3dGameData * | _pGameData | ) |
Constructor.
_pGameData | Pointer to global game data |
Definition at line 39 of file K3dTriangleBuild.cpp.
References K3dSceneData::GetTriangleWork(), K3dSceneData::GetVector3Build(), m_pGameData, m_pTriangleWork, m_pVector3Build, and K3dSceneData::SetTriangleBuild().
K3dTriangleBuild::~K3dTriangleBuild | ( | void | ) |
void K3dTriangleBuild::LoadTriangles | ( | ) |
void K3dTriangleBuild::DeleteTriangles | ( | ) |
Delete all triangles from global data.
Definition at line 116 of file K3dTriangleBuild.cpp.
References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetTriangleObjSP(), and m_pGameData.
Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dTriangleBuild().
K3dTriangleObj * K3dTriangleBuild::CreateNewTriangleObj | ( | ) |
Definition at line 126 of file K3dTriangleBuild.cpp.
References K3dVector3Build::CreateNewVector3(), K3dTriangleObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetTriangleObjSP(), m_pGameData, m_pVector3Build, K3dSafePointer< _T >::New(), K3dTriangle::SetCentre(), K3dTriangle::SetColor(), K3dTriangle::SetNormal(), and K3dTriangle::SetVertex().
Referenced by K3dTriangulation::CreateNewTriangle().
K3dTriangleObj * K3dTriangleBuild::CreateNewTriangleObj | ( | K3dVector3Obj * | _pV0, | |
K3dVector3Obj * | _pV1, | |||
K3dVector3Obj * | _pV2 | |||
) |
Definition at line 140 of file K3dTriangleBuild.cpp.
References K3dTriangleWork::CalcNormal(), K3dTriangleWork::CalcTriangleCentre(), K3dVector3Build::CreateNewVector3(), K3dTriangleObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetTriangleObjSP(), m_pGameData, m_pTriangleWork, m_pVector3Build, K3dSafePointer< _T >::New(), K3dTriangle::SetCentre(), K3dTriangle::SetColor(), K3dTriangle::SetNormal(), and K3dTriangle::SetVertex().
K3dGameData* K3dTriangleBuild::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented from K3dTriangleWork.
Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.
Definition at line 46 of file K3dTriangleBuild.h.
Referenced by CreateNewTriangleObj(), DeleteTriangles(), and K3dTriangleBuild().
K3dVector3Build* K3dTriangleBuild::m_pVector3Build [private] |
Pointer to 3d vector builder.
Definition at line 47 of file K3dTriangleBuild.h.
Referenced by CreateNewTriangleObj(), and K3dTriangleBuild().
K3dTriangleWork* K3dTriangleBuild::m_pTriangleWork [private] |
Pointer to triangle work.
Definition at line 48 of file K3dTriangleBuild.h.
Referenced by CreateNewTriangleObj(), and K3dTriangleBuild().