K3dTriangleBuild Class Reference

#include <K3dTriangleBuild.h>

Inheritance diagram for K3dTriangleBuild:

K3dTriangleWork K3dObjectBuild K3dMngGeometry K3dMngSystem K3dScene List of all members.

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.
K3dTriangleObjCreateNewTriangleObj ()
K3dTriangleObjCreateNewTriangleObj (K3dVector3Obj *_pV0, K3dVector3Obj *_pV1, K3dVector3Obj *_pV2)

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dVector3Buildm_pVector3Build
 Pointer to 3d vector builder.
K3dTriangleWorkm_pTriangleWork
 Pointer to triangle work.

Detailed Description

Definition at line 43 of file K3dTriangleBuild.h.


Constructor & Destructor Documentation

K3dTriangleBuild::K3dTriangleBuild ( K3dGameData _pGameData  ) 

Constructor.

Parameters:
_pGameData Pointer to global game data
See also:
K3dGameData

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   ) 

Definition at line 49 of file K3dTriangleBuild.cpp.

References DeleteTriangles().


Member Function Documentation

void K3dTriangleBuild::LoadTriangles (  ) 

Load triangles and add them to global data.

Definition at line 55 of file K3dTriangleBuild.cpp.

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().


Member Data Documentation

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().


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