#include <K3dLineBuild.h>
Inheritance diagram for K3dLineBuild:
Public Member Functions | |
K3dLineBuild (K3dGameData *_pGameData) | |
Constructor. | |
~K3dLineBuild (void) | |
void | LoadLines () |
Load lines from map file. | |
void | BuildLines () |
Build lines from block objects. | |
void | DeleteLines () |
K3dLineObj * | CreateNewLineObj () |
Create new line object and add this to the gloabal data. | |
K3dLineObj * | CreateNewLineObj (const K3dVector3Obj &_rV0, const K3dVector3Obj &_rV1) |
Create new line object and add this to the gloabal data. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
K3dVector3Build * | m_pVector3Build |
Pointer to 3d vector builder. | |
K3dColor3Build * | m_pColor3Build |
Pointer to 3d color builder. | |
K3dMatrixBuild * | m_pMatrixBuild |
Pointer to matrix builder. |
Definition at line 40 of file K3dLineBuild.h.
K3dLineBuild::K3dLineBuild | ( | K3dGameData * | _pGameData | ) |
Constructor.
_pGameData | Pointer to global game data |
Definition at line 38 of file K3dLineBuild.cpp.
References K3dSceneData::GetColor3Build(), K3dSceneData::GetMatrixBuild(), K3dSceneData::GetVector3Build(), m_pColor3Build, m_pGameData, m_pMatrixBuild, m_pVector3Build, and K3dSceneData::SetLineBuild().
K3dLineBuild::~K3dLineBuild | ( | void | ) |
void K3dLineBuild::LoadLines | ( | ) |
Load lines from map file.
Definition at line 84 of file K3dLineBuild.cpp.
References K3dString::AddNumber(), CreateNewLineObj(), K3dSceneData::GetLua(), K3dString::GetString(), K_STR_B, K_STR_DIRECT_X, K_STR_DIRECT_Y, K_STR_DIRECT_Z, K_STR_G, K_STR_LINE, K_STR_NAME, K_STR_NUM_LINES, K_STR_ORIG_X, K_STR_ORIG_Y, K_STR_ORIG_Z, K_STR_R, K_STR_WIDTH, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), and m_pGameData.
Referenced by K3dMngGeometry::InitMngGeometry().
void K3dLineBuild::BuildLines | ( | ) |
void K3dLineBuild::DeleteLines | ( | ) |
Definition at line 166 of file K3dLineBuild.cpp.
References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dGameData::GetLineObjSP(), K3dSafePointer< _T >::GetNum(), and m_pGameData.
Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dLineBuild().
K3dLineObj * K3dLineBuild::CreateNewLineObj | ( | ) |
Create new line object and add this to the gloabal data.
K3dLineObj* | New line object |
Definition at line 55 of file K3dLineBuild.cpp.
References K3dColor3Build::CreateNewColor3(), K3dMatrixBuild::CreateNewMatrix(), K3dVector3Build::CreateNewVector3(), K3dLineObj::GetId(), K3dGameData::GetLineObjSP(), K3dSafePointer< _T >::GetNum(), m_pColor3Build, m_pGameData, m_pMatrixBuild, m_pVector3Build, K3dSafePointer< _T >::New(), K3dLine::SetColor(), K3dRay::SetDirection(), K3dLineMove::SetMatrix(), K3dRay::SetOrigin(), K3dLineMove::SetPosition(), K3dLineMove::SetRelDirection(), K3dLineMove::SetRelOrigin(), K3dLineMove::SetRotation(), and K3dLineMove::SetRotMatrix().
Referenced by K3dConvex::CheckEdge(), K3dBoxBuild::CreateEdge(), CreateNewLineObj(), K3dCutEdge::CutEdge(), and LoadLines().
K3dLineObj * K3dLineBuild::CreateNewLineObj | ( | const K3dVector3Obj & | _rV0, | |
const K3dVector3Obj & | _rV1 | |||
) |
Create new line object and add this to the gloabal data.
_rV0 | Line origin | |
_rV1 | Line direction |
K3dLineObj* | New line object |
Definition at line 75 of file K3dLineBuild.cpp.
References CreateNewLineObj(), K3dRay::GetDirection(), and K3dRay::GetOrigin().
K3dGameData* K3dLineBuild::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.
Definition at line 42 of file K3dLineBuild.h.
Referenced by CreateNewLineObj(), DeleteLines(), K3dLineBuild(), and LoadLines().
K3dVector3Build* K3dLineBuild::m_pVector3Build [private] |
Pointer to 3d vector builder.
Definition at line 43 of file K3dLineBuild.h.
Referenced by CreateNewLineObj(), and K3dLineBuild().
K3dColor3Build* K3dLineBuild::m_pColor3Build [private] |
Pointer to 3d color builder.
Definition at line 44 of file K3dLineBuild.h.
Referenced by CreateNewLineObj(), and K3dLineBuild().
K3dMatrixBuild* K3dLineBuild::m_pMatrixBuild [private] |
Pointer to matrix builder.
Definition at line 45 of file K3dLineBuild.h.
Referenced by CreateNewLineObj(), and K3dLineBuild().