K3dFace Class Reference

#include <K3dFace.h>

Inheritance diagram for K3dFace:

K3dFaceWork K3dFaceObj List of all members.

Public Member Functions

 K3dFace ()
 ~K3dFace ()
TVertexArrayGetVertexArray ()
 Get vertex array.
void AddVertex (K3dVertexObj *_pVertex)
 Add vertex to the array.
void DeleteVertex (K3dVertexObj *_pVertex)
 Delete vertex index from array.
K3dColor4GetColor ()
 Get color.
void SetColor (K3dColor4 *_pColor)
 Set color.
bool & IsBlend ()
 Get or set blend face.
K3dVector3ObjGetNormal ()
 Get face normal vector.
const K3dVector3ObjGetNormal () const
 Get face normal vector.
void SetNormal (K3dVector3Obj *_pNormal)
 Set face normal vector.
K3dVector3ObjGetCentre ()
 Get or set face centre.
const K3dVector3ObjGetCentre () const
 Get or set face Centre.
void SetCentre (K3dVector3Obj *_pCentre)
 Set face centre.

Private Attributes

TVertexArray m_vVertex
 Vertex array.
TVertexArray::iterator m_itVertex
 Vertex array iterator.
K3dVector3Objm_pNormal
 Normal vector.
K3dColor4m_pColor
 Face color.
K3dVector3Objm_pCentre
 Face centre.
bool m_bIsBlend
 Is blend face?

Detailed Description

Definition at line 42 of file K3dFace.h.


Constructor & Destructor Documentation

K3dFace::K3dFace (  ) 

Definition at line 36 of file K3dFace.cpp.

References m_pCentre, m_pColor, and m_pNormal.

K3dFace::~K3dFace (  ) 

Definition at line 43 of file K3dFace.cpp.


Member Function Documentation

TVertexArray& K3dFace::GetVertexArray (  )  [inline]

Get vertex array.

Definition at line 55 of file K3dFace.h.

References m_vVertex.

Referenced by K3dFaceWork::CalcCentre(), and K3dFaceWork::CalcNormal().

void K3dFace::AddVertex ( K3dVertexObj _pVertex  )  [inline]

Add vertex to the array.

Definition at line 61 of file K3dFace.h.

References m_vVertex.

void K3dFace::DeleteVertex ( K3dVertexObj _pVertex  )  [inline]

Delete vertex index from array.

Definition at line 67 of file K3dFace.h.

References m_itVertex, and m_vVertex.

K3dColor4* K3dFace::GetColor (  )  [inline]

Get color.

Return values:
m_pColor Color vector

Definition at line 82 of file K3dFace.h.

References m_pColor.

void K3dFace::SetColor ( K3dColor4 _pColor  )  [inline]

Set color.

Parameters:
_pColor Color vector

Definition at line 89 of file K3dFace.h.

References m_pColor.

Referenced by K3dFaceBuild::CreateNewFaceObj().

bool& K3dFace::IsBlend (  )  [inline]

Get or set blend face.

Definition at line 95 of file K3dFace.h.

References m_bIsBlend.

K3dVector3Obj* K3dFace::GetNormal (  )  [inline]

Get face normal vector.

Definition at line 101 of file K3dFace.h.

References m_pNormal.

Referenced by K3dFaceWork::CalcNormal().

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

Get face normal vector.

Definition at line 107 of file K3dFace.h.

References m_pNormal.

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

Set face normal vector.

Definition at line 113 of file K3dFace.h.

References m_pNormal.

Referenced by K3dFaceBuild::CreateNewFaceObj().

K3dVector3Obj* K3dFace::GetCentre (  )  [inline]

Get or set face centre.

Definition at line 119 of file K3dFace.h.

References m_pCentre.

Referenced by K3dFaceWork::CalcCentre().

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

Get or set face Centre.

Definition at line 125 of file K3dFace.h.

References m_pCentre.

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

Set face centre.

Definition at line 131 of file K3dFace.h.

References m_pCentre.

Referenced by K3dFaceBuild::CreateNewFaceObj().


Member Data Documentation

TVertexArray K3dFace::m_vVertex [private]

Vertex array.

Definition at line 44 of file K3dFace.h.

Referenced by AddVertex(), DeleteVertex(), and GetVertexArray().

TVertexArray::iterator K3dFace::m_itVertex [private]

Vertex array iterator.

Definition at line 45 of file K3dFace.h.

Referenced by DeleteVertex().

K3dVector3Obj* K3dFace::m_pNormal [private]

Normal vector.

Definition at line 46 of file K3dFace.h.

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

K3dColor4* K3dFace::m_pColor [private]

Face color.

Definition at line 47 of file K3dFace.h.

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

K3dVector3Obj* K3dFace::m_pCentre [private]

Face centre.

Definition at line 48 of file K3dFace.h.

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

bool K3dFace::m_bIsBlend [private]

Is blend face?

Definition at line 49 of file K3dFace.h.

Referenced by IsBlend().


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