K3dPlaneBuild Class Reference

#include <K3dPlaneBuild.h>

Inheritance diagram for K3dPlaneBuild:

K3dPlaneWork K3dObjectBuild K3dMngGeometry K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dPlaneBuild (K3dGameData *_pGameData)
 Constructor.
 ~K3dPlaneBuild (void)
void LoadPlanes ()
 Load planes for visualization from map file.
void DeletePlanes ()
 Delete visualization planes.
K3dPlaneObjCreateNewPlaneObj ()
 Create new plane object and add this to the gloabal data.
K3dPlaneObjCreateNewPlaneObj (const K3dVector3Obj &_rkPosition, const K3dVector3Obj &_rkNormal)
 Create new plane from position and normal vector.
K3dPlaneObjCreateNewPlaneObj (const K3dVector3Obj &_rkV0, const K3dVector3Obj &_rkV1, const K3dVector3Obj &_rkV2)
 Create new plane from three vectors.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dVector3Buildm_pVector3Build
 Pointer to 3d vector builder.
K3dColor3Buildm_pColor3Build
 Pointer to 3d color builder.
K3dMatrixBuildm_pMatrixBuild
 Pointer to matrix builder.

Detailed Description

Definition at line 43 of file K3dPlaneBuild.h.


Constructor & Destructor Documentation

K3dPlaneBuild::K3dPlaneBuild ( K3dGameData _pGameData  ) 

Constructor.

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

Definition at line 38 of file K3dPlaneBuild.cpp.

References K3dSceneData::GetColor3Build(), K3dSceneData::GetMatrixBuild(), K3dSceneData::GetVector3Build(), m_pColor3Build, m_pGameData, m_pMatrixBuild, m_pVector3Build, and K3dSceneData::SetPlaneBuild().

K3dPlaneBuild::~K3dPlaneBuild ( void   ) 

Definition at line 48 of file K3dPlaneBuild.cpp.

References DeletePlanes().


Member Function Documentation

void K3dPlaneBuild::LoadPlanes (  ) 

Load planes for visualization from map file.

Definition at line 79 of file K3dPlaneBuild.cpp.

References K3dString::AddNumber(), CreateNewPlaneObj(), K3dSceneData::GetLua(), K3dString::GetString(), K3dPlaneWork::Init(), K_STR_B, K_STR_G, K_STR_HEIGHT, K_STR_NAME, K_STR_NORMAL_X, K_STR_NORMAL_Y, K_STR_NORMAL_Z, K_STR_NUM_PLANES, K_STR_PLANE, 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 K3dPlaneBuild::DeletePlanes (  ) 

Delete visualization planes.

Definition at line 122 of file K3dPlaneBuild.cpp.

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

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

K3dPlaneObj * K3dPlaneBuild::CreateNewPlaneObj (  ) 

Create new plane object and add this to the gloabal data.

Return values:
K3dPlaneObj* New plane object pointer

Definition at line 55 of file K3dPlaneBuild.cpp.

References K3dPlaneVis::AddVertex(), K3dColor3Build::CreateNewColor3(), K3dMatrixBuild::CreateNewMatrix(), K3dVector3Build::CreateNewVector3(), K3dPlaneVis::DeleteVertexArray(), K3dColor3::GetB(), K3dPlaneVis::GetColor(), K3dColor3::GetG(), K3dPlaneObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetPlaneObjSP(), K3dColor3::GetR(), m_pColor3Build, m_pGameData, m_pMatrixBuild, m_pVector3Build, K3dSafePointer< _T >::New(), K3dPlaneVis::SetColor(), K3dPlaneMove::SetMatrix(), K3dPlane::SetNormal(), K3dPlane::SetPosition(), K3dPlaneMove::SetRelNormal(), K3dPlaneMove::SetRelPosition(), K3dPlaneMove::SetRotation(), and K3dPlaneMove::SetRotMatrix().

Referenced by CreateNewPlaneObj(), K3dPolyPlaneBuild::CreateNewPolyPlaneObj(), K3dVorBsp::FindBestDividingPlane(), K3dConvex::InitConvex(), K3dCutPoly::InitCutPoly(), K3dSphereWork::InitSphereWork(), and LoadPlanes().

K3dPlaneObj * K3dPlaneBuild::CreateNewPlaneObj ( const K3dVector3Obj _rkPosition,
const K3dVector3Obj _rkNormal 
)

Create new plane from position and normal vector.

Parameters:
_rkPosition New plane position
_rkNormal New plane normal
Return values:
K3dPlaneObj* New plane object

Definition at line 136 of file K3dPlaneBuild.cpp.

References K3dPlaneWork::CalcPlane(), and CreateNewPlaneObj().

K3dPlaneObj * K3dPlaneBuild::CreateNewPlaneObj ( const K3dVector3Obj _rkV0,
const K3dVector3Obj _rkV1,
const K3dVector3Obj _rkV2 
)

Create new plane from three vectors.

Parameters:
_rkV0 First new plane position
_rkV1 Second new plane position
_rkV2 Third new plane position
Return values:
K3dPlaneObj* New plane object

Definition at line 148 of file K3dPlaneBuild.cpp.

References K3dPlaneWork::CalcPlane(), and CreateNewPlaneObj().


Member Data Documentation

K3dGameData* K3dPlaneBuild::m_pGameData [private]

Global game data, data centered game system.

Reimplemented from K3dPlaneWork.

Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.

Definition at line 45 of file K3dPlaneBuild.h.

Referenced by CreateNewPlaneObj(), DeletePlanes(), K3dPlaneBuild(), and LoadPlanes().

K3dVector3Build* K3dPlaneBuild::m_pVector3Build [private]

Pointer to 3d vector builder.

Definition at line 46 of file K3dPlaneBuild.h.

Referenced by CreateNewPlaneObj(), and K3dPlaneBuild().

K3dColor3Build* K3dPlaneBuild::m_pColor3Build [private]

Pointer to 3d color builder.

Definition at line 47 of file K3dPlaneBuild.h.

Referenced by CreateNewPlaneObj(), and K3dPlaneBuild().

K3dMatrixBuild* K3dPlaneBuild::m_pMatrixBuild [private]

Pointer to matrix builder.

Definition at line 48 of file K3dPlaneBuild.h.

Referenced by CreateNewPlaneObj(), and K3dPlaneBuild().


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