K3dVertexBuild Class Reference

#include <K3dVertexBuild.h>

Inheritance diagram for K3dVertexBuild:

K3dVertexWork K3dObjectBuild K3dMngGeometry K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dVertexBuild (K3dGameData *_pGameData)
 Constructor.
 ~K3dVertexBuild (void)
void LoadVertices ()
 Load vertices and add to global data.
void DeleteVertices ()
 Delete all vertices from global data.
K3dVertexObjCreateNewVertexObj ()
 Create new vertex and add this to the gloabal data.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.

Detailed Description

Definition at line 44 of file K3dVertexBuild.h.


Constructor & Destructor Documentation

K3dVertexBuild::K3dVertexBuild ( K3dGameData _pGameData  ) 

Constructor.

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

Definition at line 39 of file K3dVertexBuild.cpp.

References m_pGameData, and K3dSceneData::SetVertexBuild().

K3dVertexBuild::~K3dVertexBuild ( void   ) 

Definition at line 47 of file K3dVertexBuild.cpp.

References DeleteVertices().


Member Function Documentation

void K3dVertexBuild::LoadVertices (  ) 

Load vertices and add to global data.

Definition at line 68 of file K3dVertexBuild.cpp.

References K3dString::AddNumber(), CreateNewVertexObj(), K3dSceneData::GetLua(), K3dString::GetString(), K_STR_A, K_STR_B, K_STR_COORD_X, K_STR_COORD_Y, K_STR_G, K_STR_NAME, K_STR_NORMAL_X, K_STR_NORMAL_Y, K_STR_NORMAL_Z, K_STR_NUM_VERTICES, K_STR_POS_X, K_STR_POS_Y, K_STR_POS_Z, K_STR_R, K_STR_VERTEX, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), and m_pGameData.

Referenced by K3dMngGeometry::InitMngGeometry().

void K3dVertexBuild::DeleteVertices (  ) 

Delete all vertices from global data.

Definition at line 129 of file K3dVertexBuild.cpp.

References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetVertexObjSP(), and m_pGameData.

Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dVertexBuild().

K3dVertexObj * K3dVertexBuild::CreateNewVertexObj (  ) 

Create new vertex and add this to the gloabal data.

Return values:
K3dVertexObj* New vertex pointer

Definition at line 54 of file K3dVertexBuild.cpp.

References K3dColor4Build::CreateNewColor4(), K3dVector2Build::CreateNewVector2(), K3dVector3Build::CreateNewVector3(), K3dSceneData::GetColor4Build(), K3dVertexObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dSceneData::GetVector2Build(), K3dSceneData::GetVector3Build(), K3dGameData::GetVertexObjSP(), m_pGameData, K3dSafePointer< _T >::New(), K3dVertex::SetColor(), K3dVertex::SetNormal(), K3dVertex::SetPosition(), and K3dVertex::SetTexCoord().

Referenced by K3dVM::AddVertex(), K3dBoxBuild::CreateSceneBox(), and LoadVertices().


Member Data Documentation

K3dGameData* K3dVertexBuild::m_pGameData [private]

Global game data, data centered game system.

Reimplemented from K3dVertexWork.

Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.

Definition at line 47 of file K3dVertexBuild.h.

Referenced by CreateNewVertexObj(), DeleteVertices(), K3dVertexBuild(), and LoadVertices().


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