K3dIntrLinePlane Class Reference

#include <K3dIntrLinePlane.h>

Inheritance diagram for K3dIntrLinePlane:

K3dDistance K3dIntrLinSph K3dIntersection K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dIntrLinePlane (K3dGameData *_pGameData)
 ~K3dIntrLinePlane ()
bool LinePlane (const K3dRay &_rkLine, const K3dPlane &_rkPlane)
 Find the point where a line intersect a plane.
K3dVector3ObjGetIntrPoint ()
 Get intersection point.
float & GetDistanceOrigin ()
 Get distance between plane and edge origin.
const float & GetDistanceOrigin () const
float & GetDistanceDirection ()
 Get distance between plane and edge direction.
const float & GetDistanceDirection () const
ELinePlanePosGetLinePlanePos ()
 Get line position oposit plane after intersection.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dVector3Obj m_kIntrPoint
 Intersection point if intersection true.
float m_fDistanceOrigin
 Distance between plane and edge origin.
float m_fDistanceDirection
 Distance between plane and edge origin.
ELinePlanePos m_eLinePos
 Line position oposit plane after intersection.

Detailed Description

Definition at line 49 of file K3dIntrLinePlane.h.


Constructor & Destructor Documentation

K3dIntrLinePlane::K3dIntrLinePlane ( K3dGameData _pGameData  ) 

Definition at line 35 of file K3dIntrLinePlane.cpp.

References m_pGameData.

K3dIntrLinePlane::~K3dIntrLinePlane (  ) 

Definition at line 41 of file K3dIntrLinePlane.cpp.


Member Function Documentation

bool K3dIntrLinePlane::LinePlane ( const K3dRay _rkLine,
const K3dPlane _rkPlane 
)

Find the point where a line intersect a plane.

Return values:
bool True,if edge intersect the plane

Definition at line 47 of file K3dIntrLinePlane.cpp.

References K3dVector3Work::Dot(), K3dRay::GetDirection(), K3dPlane::GetDistance(), K3dPlane::GetNormal(), K3dRay::GetOrigin(), K3dSceneData::GetVector3Work(), K3D_BACK_LINE, K3D_FRONT_LINE, K3D_LINE_INTR_PLANE, K3D_ON_PLANE_LINE, m_eLinePos, m_fDistanceDirection, m_fDistanceOrigin, m_kIntrPoint, m_pGameData, K3dDistance::PointPlane(), K3dVector3::Reset(), and K3dMath::Sign().

Referenced by K3dCutEdge::CutEdge(), K3dObjectWork::GetIntersection(), K3dIntersection::LineTriangle(), and K3dSphereWork::MoveByMouse().

K3dVector3Obj& K3dIntrLinePlane::GetIntrPoint (  )  [inline]

Get intersection point.

Definition at line 63 of file K3dIntrLinePlane.h.

References m_kIntrPoint.

Referenced by K3dCutEdge::CutEdge(), K3dObjectWork::GetIntersection(), K3dIntersection::LineTriangle(), and K3dSphereWork::MoveByMouse().

float& K3dIntrLinePlane::GetDistanceOrigin (  )  [inline]

Get distance between plane and edge origin.

Definition at line 69 of file K3dIntrLinePlane.h.

References m_fDistanceOrigin.

const float& K3dIntrLinePlane::GetDistanceOrigin (  )  const [inline]

Definition at line 73 of file K3dIntrLinePlane.h.

References m_fDistanceOrigin.

float& K3dIntrLinePlane::GetDistanceDirection (  )  [inline]

Get distance between plane and edge direction.

Definition at line 79 of file K3dIntrLinePlane.h.

References m_fDistanceDirection.

const float& K3dIntrLinePlane::GetDistanceDirection (  )  const [inline]

Definition at line 83 of file K3dIntrLinePlane.h.

References m_fDistanceDirection.

ELinePlanePos& K3dIntrLinePlane::GetLinePlanePos (  )  [inline]

Get line position oposit plane after intersection.

Definition at line 89 of file K3dIntrLinePlane.h.

References m_eLinePos.

Referenced by K3dCutPoly::Cut().


Member Data Documentation

K3dGameData* K3dIntrLinePlane::m_pGameData [private]

Global game data, data centered game system.

Reimplemented from K3dDistance.

Reimplemented in K3dIntersection, K3dIntrLinSph, K3dScene, and K3dMngSystem.

Definition at line 51 of file K3dIntrLinePlane.h.

Referenced by K3dIntrLinePlane(), and LinePlane().

K3dVector3Obj K3dIntrLinePlane::m_kIntrPoint [private]

Intersection point if intersection true.

Definition at line 52 of file K3dIntrLinePlane.h.

Referenced by GetIntrPoint(), and LinePlane().

float K3dIntrLinePlane::m_fDistanceOrigin [private]

Distance between plane and edge origin.

Definition at line 53 of file K3dIntrLinePlane.h.

Referenced by GetDistanceOrigin(), and LinePlane().

float K3dIntrLinePlane::m_fDistanceDirection [private]

Distance between plane and edge origin.

Definition at line 54 of file K3dIntrLinePlane.h.

Referenced by GetDistanceDirection(), and LinePlane().

ELinePlanePos K3dIntrLinePlane::m_eLinePos [private]

Line position oposit plane after intersection.

Definition at line 55 of file K3dIntrLinePlane.h.

Referenced by GetLinePlanePos(), and LinePlane().


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