#include <K3dTriangle.h>
Inheritance diagram for K3dTriangle:
Public Member Functions | |
K3dTriangle () | |
K3dTriangle (K3dVector3Obj *_pV0, K3dVector3Obj *_pV1, K3dVector3Obj *_pV2) | |
Set vertex indexes. | |
~K3dTriangle () | |
void | Reset () |
Reset variables. | |
K3dVector3Obj * | GetColor () |
Get color. | |
void | SetColor (K3dVector3Obj *_pColor) |
Set color. | |
bool & | GetIsBlend () |
Get or set blend triangle. | |
K3dVector3Obj ** | GetVertexArray () |
Get or set triangle vertices. | |
K3dVector3Obj * | GetNormal () |
Get triangle normal vector. | |
const K3dVector3Obj * | GetNormal () const |
Get triangle normal vector. | |
void | SetNormal (K3dVector3Obj *_pNormal) |
Set triangle normal vector. | |
K3dVector3Obj * | GetCentre () |
Get triangle centre. | |
const K3dVector3Obj * | GetCentre () const |
Get triangle Centre. | |
void | SetCentre (K3dVector3Obj *_pCentre) |
Set triangle Centre. | |
const K3dVector3Obj * | operator[] (const int _id) const |
Overloaded operator[] allows set vector arrays. | |
K3dVector3 * | operator[] (const int _id) |
Overloaded operator[] allows set vector arrays. | |
K3dVector3Obj * | GetVertex (const int _id) |
Get vertex. | |
const K3dVector3Obj * | GetVertex (const int _id) const |
void | SetVertex (const int _id, K3dVector3Obj *_pVertex) |
Set vertex. | |
Private Attributes | |
K3dVector3Obj * | m_pVertexArray [3] |
Triangle vertices. | |
K3dVector3Obj * | m_pNormal |
Normal vector. | |
K3dVector3Obj * | m_pColor |
Triangle color. | |
K3dVector3Obj * | m_pCentre |
Triangle centre. | |
bool | m_bIsBlend |
Is blend triangle? |
Definition at line 38 of file K3dTriangle.h.
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] |
K3dTriangle::~K3dTriangle | ( | ) |
Definition at line 47 of file K3dTriangle.cpp.
void K3dTriangle::Reset | ( | ) |
Reset variables.
K3dVector3Obj* K3dTriangle::GetColor | ( | ) | [inline] |
Get color.
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] |
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] |
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] |
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] |
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().
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] |