#include <K3dFace.h>
Inheritance diagram for K3dFace:
Public Member Functions | |
K3dFace () | |
~K3dFace () | |
TVertexArray & | GetVertexArray () |
Get vertex array. | |
void | AddVertex (K3dVertexObj *_pVertex) |
Add vertex to the array. | |
void | DeleteVertex (K3dVertexObj *_pVertex) |
Delete vertex index from array. | |
K3dColor4 * | GetColor () |
Get color. | |
void | SetColor (K3dColor4 *_pColor) |
Set color. | |
bool & | IsBlend () |
Get or set blend face. | |
K3dVector3Obj * | GetNormal () |
Get face normal vector. | |
const K3dVector3Obj * | GetNormal () const |
Get face normal vector. | |
void | SetNormal (K3dVector3Obj *_pNormal) |
Set face normal vector. | |
K3dVector3Obj * | GetCentre () |
Get or set face centre. | |
const K3dVector3Obj * | GetCentre () 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. | |
K3dVector3Obj * | m_pNormal |
Normal vector. | |
K3dColor4 * | m_pColor |
Face color. | |
K3dVector3Obj * | m_pCentre |
Face centre. | |
bool | m_bIsBlend |
Is blend face? |
Definition at line 42 of file K3dFace.h.
K3dFace::K3dFace | ( | ) |
K3dFace::~K3dFace | ( | ) |
Definition at line 43 of file K3dFace.cpp.
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] |
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] |
void K3dFace::SetColor | ( | K3dColor4 * | _pColor | ) | [inline] |
Set color.
_pColor | Color vector |
Definition at line 89 of file K3dFace.h.
References m_pColor.
Referenced by K3dFaceBuild::CreateNewFaceObj().
bool& K3dFace::IsBlend | ( | ) | [inline] |
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] |
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] |
void K3dFace::SetCentre | ( | K3dVector3Obj * | _pCentre | ) | [inline] |
Set face centre.
Definition at line 131 of file K3dFace.h.
References m_pCentre.
Referenced by K3dFaceBuild::CreateNewFaceObj().
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] |
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] |