#include <Face.h>
Collaboration diagram for model::Face:
Public Member Functions | |
Face () | |
Face (Vertex *vertex1, Vertex *vertex2) | |
Face (Vertex *vertex1, Vertex *vertex2, Vertex *vertex3) | |
Face (Vertex *vertex1, Vertex *vertex2, Vertex *vertex3, Vertex *vertex4) | |
~Face () | |
Face (const Face &other) | |
Face & | operator= (const Face &other) |
int | getCount () |
void | setVertex (int iIndex, Vertex *vertex) |
void | setVertices (Vertex *vertex1, Vertex *vertex2) |
void | setVertices (Vertex *vertex1, Vertex *vertex2, Vertex *vertex3) |
void | setVertices (Vertex *vertex1, Vertex *vertex2, Vertex *vertex3, Vertex *vertex4) |
Vertex * | getVertex (int iIndex) |
vector< Vertex * > | getVertices () |
IvVector3 | computeNormal () |
bool | operator== (const Face &other) const |
bool | operator!= (const Face &other) const |
Private Attributes | |
Vertex * | m_vertices |
int | m_iCount |
Constition of Vertex's.
Definition at line 33 of file Face.h.
|
Definition at line 43 of file Face.h. 00043 {};
|
|
Write brief comment for Face here.
Definition at line 27 of file Face.cpp. References setVertices(). 00027 { 00028 setVertices(vertex1, vertex2); 00029 }
|
Here is the call graph for this function:
|
Write brief comment for Face here.
Definition at line 55 of file Face.cpp. References setVertices(). 00055 { 00056 setVertices(vertex1, vertex2, vertex3); 00057 }
|
Here is the call graph for this function:
|
Write brief comment for Face here.
Definition at line 86 of file Face.cpp. References setVertices(). 00086 { 00087 setVertices(vertex1, vertex2, vertex3, vertex4); 00088 }
|
Here is the call graph for this function:
|
Definition at line 47 of file Face.h. 00047 {};
|
|
Write brief comment for Face here.
Definition at line 108 of file Face.cpp. References m_iCount, and m_vertices. 00108 { 00109 m_vertices = other.m_vertices; 00110 m_iCount = other.m_iCount; 00111 }
|
|
Write brief comment for computeNormal here.
Definition at line 307 of file Face.cpp. 00307 {
00308 return IvVector3();
00309 }
|
|
Write brief comment for getCount here.
Definition at line 395 of file Face.cpp. 00395 {
00396 return m_iCount;
00397 }
|
|
Write brief comment for getVertex here.
Definition at line 285 of file Face.cpp. References m_vertices. Referenced by functions::Importer::readAttributes(), pcggui::Render(), and model::Model::save(). 00285 { 00286 return m_vertices[iIndex]; 00287 }
|
|
Write brief comment for getVertices here.
Definition at line 417 of file Face.cpp. 00417 {
00418 return m_vertices;
00419 }
|
|
Write brief comment for operator != here.
Definition at line 365 of file Face.cpp. References m_iCount, and m_vertices. 00366 { 00367 if(other.m_vertices[0] == m_vertices[0] 00368 && other.m_vertices[1] == m_vertices[1] 00369 && other.m_vertices[2] == m_vertices[2] 00370 && other.m_vertices[3] == m_vertices[3] 00371 && other.m_iCount == m_iCount) { 00372 return false; 00373 } 00374 return true; 00375 }
|
|
Write brief comment for operator = here.
Definition at line 134 of file Face.cpp. References m_iCount, and m_vertices. 00135 { 00136 // if same object 00137 if ( this == &other ) 00138 return *this; 00139 00140 m_vertices = other.m_vertices; 00141 m_iCount = other.m_iCount; 00142 00143 return *this; 00144 }
|
|
Write brief comment for operator == here.
Definition at line 332 of file Face.cpp. References m_iCount, and m_vertices. 00333 { 00334 if(other.m_vertices[0] == m_vertices[0] 00335 && other.m_vertices[1] == m_vertices[1] 00336 && other.m_vertices[2] == m_vertices[2] 00337 && other.m_vertices[3] == m_vertices[3] 00338 && other.m_iCount == m_iCount) { 00339 return true; 00340 } 00341 return false; 00342 }
|
|
Write brief comment for setVertex here.
Definition at line 167 of file Face.cpp. References m_vertices. 00167 { 00168 m_vertices[iIndex] = vertex; 00169 }
|
|
Write brief comment for setVertices here.
Definition at line 256 of file Face.cpp. References m_iCount, and m_vertices. 00256 { 00257 m_iCount = 4; 00258 m_vertices.push_back(vertex1); 00259 m_vertices.push_back(vertex2); 00260 m_vertices.push_back(vertex3); 00261 m_vertices.push_back(vertex4); 00262 }
|
|
Write brief comment for setVertices here.
Definition at line 222 of file Face.cpp. References m_iCount, and m_vertices. 00222 { 00223 m_iCount = 3; 00224 m_vertices.push_back(vertex1); 00225 m_vertices.push_back(vertex2); 00226 m_vertices.push_back(vertex3); 00227 }
|
|
Write brief comment for setVertices here.
Definition at line 192 of file Face.cpp. References m_iCount, and m_vertices. Referenced by pcggui::CovertScene(), Face(), and model::Model::load(). 00192 { 00193 m_iCount = 2; 00194 m_vertices.push_back(vertex1); 00195 m_vertices.push_back(vertex2); 00196 }
|
|
Definition at line 40 of file Face.h. Referenced by Face(), operator!=(), operator=(), operator==(), and setVertices(). |
|
Definition at line 36 of file Face.h. Referenced by Face(), getVertex(), operator!=(), operator=(), operator==(), setVertex(), and setVertices(). |