#include <K3dFaceBuild.h>
Inheritance diagram for K3dFaceBuild:
Public Member Functions | |
K3dFaceBuild (K3dGameData *_pGameData) | |
Constructor. | |
~K3dFaceBuild (void) | |
void | LoadFaces () |
Load faces and add them to global data. | |
void | DeleteFaces () |
Delete all faces from global data. | |
K3dFaceObj * | CreateNewFaceObj () |
Create new face object and add this to the gloabal data. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dVertexWork * | m_pVertexWork |
Pointer to vertex worker. |
Definition at line 42 of file K3dFaceBuild.h.
K3dFaceBuild::K3dFaceBuild | ( | K3dGameData * | _pGameData | ) |
Constructor.
_pGameData | Pointer to global game data |
Definition at line 39 of file K3dFaceBuild.cpp.
References K3dSceneData::GetVertexWork(), m_pGameData, and m_pVertexWork.
K3dFaceBuild::~K3dFaceBuild | ( | void | ) |
void K3dFaceBuild::LoadFaces | ( | ) |
Load faces and add them to global data.
Definition at line 66 of file K3dFaceBuild.cpp.
References K3dString::AddNumber(), CreateNewFaceObj(), K3dVertexWork::FindVertex(), K3dVertex::GetColor(), K3dGameData::GetFaceObjSP(), K3dSceneData::GetLua(), K3dSafePointer< _T >::GetNum(), K3dColor4::GetR(), K3dString::GetString(), K_STR_A, K_STR_B, K_STR_FACE, K_STR_G, K_STR_NAME, K_STR_NUM_FACES, K_STR_NUM_VERTICES, K_STR_R, K_STR_VERTEX, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGameData, and m_pVertexWork.
Referenced by K3dMngGeometry::InitMngGeometry().
void K3dFaceBuild::DeleteFaces | ( | ) |
Delete all faces from global data.
Definition at line 136 of file K3dFaceBuild.cpp.
References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dGameData::GetFaceObjSP(), K3dSafePointer< _T >::GetNum(), and m_pGameData.
Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dFaceBuild().
K3dFaceObj * K3dFaceBuild::CreateNewFaceObj | ( | ) |
Create new face object and add this to the gloabal data.
K3dFaceObj* | New face object pointer |
Definition at line 52 of file K3dFaceBuild.cpp.
References K3dSafePointer< _T >::Add(), K3dGameData::GetColor4SP(), K3dGameData::GetFaceObjSP(), K3dFaceObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetVector3SP(), m_pGameData, K3dSafePointer< _T >::New(), K3dFace::SetCentre(), K3dFace::SetColor(), and K3dFace::SetNormal().
Referenced by LoadFaces().
K3dGameData* K3dFaceBuild::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.
Definition at line 44 of file K3dFaceBuild.h.
Referenced by CreateNewFaceObj(), DeleteFaces(), K3dFaceBuild(), and LoadFaces().
K3dVertexWork* K3dFaceBuild::m_pVertexWork [private] |
Pointer to vertex worker.
Definition at line 45 of file K3dFaceBuild.h.
Referenced by K3dFaceBuild(), and LoadFaces().