K3dPolyPlaneBuild Class Reference

#include <K3dPolyPlaneBuild.h>

Inheritance diagram for K3dPolyPlaneBuild:

K3dObjectBuild K3dMngGeometry K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dPolyPlaneBuild (K3dGameData *_pGameData)
 ~K3dPolyPlaneBuild (void)
K3dPolyPlaneCreateNewPolyPlaneObj ()
 Create new plane object and add this to the gloabal data.
K3dPolyPlaneCreateNewPolyPlaneObj (const K3dVector3Obj &_rkPosition, const K3dVector3Obj &_rkNormal)
 Create new polyhedron plane from position and normal vector.
K3dPolyPlaneCreateNewPolyPlaneObj (const K3dVector3Obj &_rkV0, const K3dVector3Obj &_rkV1, const K3dVector3Obj &_rkV2)
 Create new polyhedron plane from three vectors.
void CalcVertsOnPlane (K3dPolyPlane *_pPlane)
 Calculate vertices lies on the plane.
void DeletePolyPlanes ()
 Delete polyhedron planes.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dPlaneBuildm_pPlaneBuild
 Pointer to plane build.

Detailed Description

Definition at line 41 of file K3dPolyPlaneBuild.h.


Constructor & Destructor Documentation

K3dPolyPlaneBuild::K3dPolyPlaneBuild ( K3dGameData _pGameData  ) 

Definition at line 35 of file K3dPolyPlaneBuild.cpp.

References K3dSceneData::GetPlaneBuild(), m_pGameData, m_pPlaneBuild, and K3dSceneData::SetPolyPlaneBuild().

K3dPolyPlaneBuild::~K3dPolyPlaneBuild ( void   ) 

Definition at line 43 of file K3dPolyPlaneBuild.cpp.

References DeletePolyPlanes().


Member Function Documentation

K3dPolyPlane * K3dPolyPlaneBuild::CreateNewPolyPlaneObj (  ) 

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

Return values:
K3dPolyPlane* New polyhedron plane object

Definition at line 66 of file K3dPolyPlaneBuild.cpp.

References K3dPlaneBuild::CreateNewPlaneObj(), K3dPlaneVis::GetColor(), K3dPlaneObj::GetId(), K3dPlaneMove::GetMatrix(), K3dPlane::GetNormal(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetPolyPlaneSP(), K3dPlane::GetPosition(), K3dPlaneMove::GetRelNormal(), K3dPlaneMove::GetRelPosition(), K3dPlaneMove::GetRotation(), K3dPlaneMove::GetRotMatrix(), K3dPlaneVis::GetVertexArray(), m_pGameData, m_pPlaneBuild, K3dSafePointer< _T >::New(), K3dPlaneVis::SetColor(), K3dPlaneMove::SetMatrix(), K3dPlane::SetNormal(), K3dPlane::SetPosition(), K3dPlaneMove::SetRelNormal(), K3dPlaneMove::SetRelPosition(), K3dPlaneMove::SetRotation(), and K3dPlaneMove::SetRotMatrix().

Referenced by K3dCutPoly::AddNewPlane(), K3dConvex::CreateConvexPlane(), CreateNewPolyPlaneObj(), and K3dBoxBuild::CreatePlane().

K3dPolyPlane * K3dPolyPlaneBuild::CreateNewPolyPlaneObj ( const K3dVector3Obj _rkPosition,
const K3dVector3Obj _rkNormal 
)

Create new polyhedron plane from position and normal vector.

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

Definition at line 98 of file K3dPolyPlaneBuild.cpp.

References K3dPlaneWork::CalcPlane(), CreateNewPolyPlaneObj(), and m_pPlaneBuild.

K3dPolyPlane * K3dPolyPlaneBuild::CreateNewPolyPlaneObj ( const K3dVector3Obj _rkV0,
const K3dVector3Obj _rkV1,
const K3dVector3Obj _rkV2 
)

Create new polyhedron plane from three vectors.

Parameters:
_rkV0 First vertex on the plane
_rkV1 Second vertex on the plane
_rkV2 Third vertex on the plane
Return values:
K3dPolyPlane* New plane object

Definition at line 110 of file K3dPolyPlaneBuild.cpp.

References K3dPlaneWork::CalcPlane(), CreateNewPolyPlaneObj(), and m_pPlaneBuild.

void K3dPolyPlaneBuild::CalcVertsOnPlane ( K3dPolyPlane _pPlane  ) 

Calculate vertices lies on the plane.

Definition at line 49 of file K3dPolyPlaneBuild.cpp.

References K3dSceneData::GetIntersection(), K3dPolyPlane::GetOnPlaneVertexArray(), K3dPlaneVis::GetVertexArray(), m_pGameData, and K3dDistance::PointPlane().

Referenced by K3dCutPoly::AddNewPlane(), and K3dBoxBuild::CreatePlane().

void K3dPolyPlaneBuild::DeletePolyPlanes (  ) 

Delete polyhedron planes.

Definition at line 84 of file K3dPolyPlaneBuild.cpp.

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

Referenced by ~K3dPolyPlaneBuild().


Member Data Documentation

K3dGameData* K3dPolyPlaneBuild::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.

Definition at line 43 of file K3dPolyPlaneBuild.h.

Referenced by CalcVertsOnPlane(), CreateNewPolyPlaneObj(), DeletePolyPlanes(), and K3dPolyPlaneBuild().

K3dPlaneBuild* K3dPolyPlaneBuild::m_pPlaneBuild [private]

Pointer to plane build.

Definition at line 44 of file K3dPolyPlaneBuild.h.

Referenced by CreateNewPolyPlaneObj(), and K3dPolyPlaneBuild().


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