K3dTriangle Class Reference

#include <K3dTriangle.h>

Inheritance diagram for K3dTriangle:

K3dTriangleObj List of all members.

Public Member Functions

 K3dTriangle ()
 K3dTriangle (K3dVector3Obj *_pV0, K3dVector3Obj *_pV1, K3dVector3Obj *_pV2)
 Set vertex indexes.
 ~K3dTriangle ()
void Reset ()
 Reset variables.
K3dVector3ObjGetColor ()
 Get color.
void SetColor (K3dVector3Obj *_pColor)
 Set color.
bool & GetIsBlend ()
 Get or set blend triangle.
K3dVector3Obj ** GetVertexArray ()
 Get or set triangle vertices.
K3dVector3ObjGetNormal ()
 Get triangle normal vector.
const K3dVector3ObjGetNormal () const
 Get triangle normal vector.
void SetNormal (K3dVector3Obj *_pNormal)
 Set triangle normal vector.
K3dVector3ObjGetCentre ()
 Get triangle centre.
const K3dVector3ObjGetCentre () const
 Get triangle Centre.
void SetCentre (K3dVector3Obj *_pCentre)
 Set triangle Centre.
const K3dVector3Objoperator[] (const int _id) const
 Overloaded operator[] allows set vector arrays.
K3dVector3operator[] (const int _id)
 Overloaded operator[] allows set vector arrays.
K3dVector3ObjGetVertex (const int _id)
 Get vertex.
const K3dVector3ObjGetVertex (const int _id) const
void SetVertex (const int _id, K3dVector3Obj *_pVertex)
 Set vertex.

Private Attributes

K3dVector3Objm_pVertexArray [3]
 Triangle vertices.
K3dVector3Objm_pNormal
 Normal vector.
K3dVector3Objm_pColor
 Triangle color.
K3dVector3Objm_pCentre
 Triangle centre.
bool m_bIsBlend
 Is blend triangle?

Detailed Description

Definition at line 38 of file K3dTriangle.h.


Constructor & Destructor Documentation

K3dTriangle::K3dTriangle (  ) 

Definition at line 36 of file K3dTriangle.cpp.

References m_pCentre, m_pColor, m_pNormal, and m_pVertexArray.

K3dTriangle::K3dTriangle ( K3dVector3Obj _pV0,
K3dVector3Obj _pV1,
K3dVector3Obj _pV2 
) [inline]

Set vertex indexes.

Definition at line 48 of file K3dTriangle.h.

References m_pVertexArray.

K3dTriangle::~K3dTriangle (  ) 

Definition at line 47 of file K3dTriangle.cpp.


Member Function Documentation

void K3dTriangle::Reset (  ) 

Reset variables.

K3dVector3Obj* K3dTriangle::GetColor (  )  [inline]

Get color.

Return values:
K3dVector3* Color vector

Definition at line 61 of file K3dTriangle.h.

References m_pColor.

void K3dTriangle::SetColor ( K3dVector3Obj _pColor  )  [inline]

Set color.

Definition at line 67 of file K3dTriangle.h.

References m_pColor.

Referenced by K3dTriangleBuild::CreateNewTriangleObj().

bool& K3dTriangle::GetIsBlend (  )  [inline]

Get or set blend triangle.

Definition at line 73 of file K3dTriangle.h.

References m_bIsBlend.

K3dVector3Obj** K3dTriangle::GetVertexArray (  )  [inline]

Get or set triangle vertices.

Definition at line 79 of file K3dTriangle.h.

References m_pVertexArray.

K3dVector3Obj* K3dTriangle::GetNormal (  )  [inline]

Get triangle normal vector.

Definition at line 85 of file K3dTriangle.h.

References m_pNormal.

Referenced by K3dTriangleWork::CalcNormal(), K3dIntersection::LineTriangle(), and K3dIntersection::RayTriangle().

const K3dVector3Obj* K3dTriangle::GetNormal (  )  const [inline]

Get triangle normal vector.

Definition at line 91 of file K3dTriangle.h.

References m_pNormal.

void K3dTriangle::SetNormal ( K3dVector3Obj _pNormal  )  [inline]

Set triangle normal vector.

Definition at line 97 of file K3dTriangle.h.

References m_pNormal.

Referenced by K3dTriangleBuild::CreateNewTriangleObj().

K3dVector3Obj* K3dTriangle::GetCentre (  )  [inline]

Get triangle centre.

Definition at line 103 of file K3dTriangle.h.

References m_pCentre.

Referenced by K3dTriangleWork::CalcTriangleCentre().

const K3dVector3Obj* K3dTriangle::GetCentre (  )  const [inline]

Get triangle Centre.

Definition at line 109 of file K3dTriangle.h.

References m_pCentre.

void K3dTriangle::SetCentre ( K3dVector3Obj _pCentre  )  [inline]

Set triangle Centre.

Definition at line 115 of file K3dTriangle.h.

References m_pCentre.

Referenced by K3dTriangleBuild::CreateNewTriangleObj().

const K3dVector3Obj* K3dTriangle::operator[] ( const int  _id  )  const [inline]

Overloaded operator[] allows set vector arrays.

Definition at line 121 of file K3dTriangle.h.

References m_pVertexArray.

K3dVector3* K3dTriangle::operator[] ( const int  _id  )  [inline]

Overloaded operator[] allows set vector arrays.

Definition at line 130 of file K3dTriangle.h.

References m_pVertexArray.

K3dVector3Obj* K3dTriangle::GetVertex ( const int  _id  )  [inline]

Get vertex.

Definition at line 140 of file K3dTriangle.h.

References m_pVertexArray.

Referenced by K3dTriangleWork::CalcNormal(), K3dTriangleWork::CalcScale(), K3dTriangleWork::CalcTriangleCentre(), K3dIntersection::LineTriangle(), and K3dIntersection::RayTriangle().

const K3dVector3Obj* K3dTriangle::GetVertex ( const int  _id  )  const [inline]

Definition at line 149 of file K3dTriangle.h.

References m_pVertexArray.

void K3dTriangle::SetVertex ( const int  _id,
K3dVector3Obj _pVertex 
) [inline]

Set vertex.

Definition at line 159 of file K3dTriangle.h.

References m_pVertexArray.

Referenced by K3dTriangleBuild::CreateNewTriangleObj().


Member Data Documentation

K3dVector3Obj* K3dTriangle::m_pVertexArray[3] [private]

Triangle vertices.

Definition at line 40 of file K3dTriangle.h.

Referenced by GetVertex(), GetVertexArray(), K3dTriangle(), operator[](), and SetVertex().

K3dVector3Obj* K3dTriangle::m_pNormal [private]

Normal vector.

Definition at line 41 of file K3dTriangle.h.

Referenced by GetNormal(), K3dTriangle(), and SetNormal().

K3dVector3Obj* K3dTriangle::m_pColor [private]

Triangle color.

Definition at line 42 of file K3dTriangle.h.

Referenced by GetColor(), K3dTriangle(), and SetColor().

K3dVector3Obj* K3dTriangle::m_pCentre [private]

Triangle centre.

Definition at line 43 of file K3dTriangle.h.

Referenced by GetCentre(), K3dTriangle(), and SetCentre().

bool K3dTriangle::m_bIsBlend [private]

Is blend triangle?

Definition at line 44 of file K3dTriangle.h.

Referenced by GetIsBlend().


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