Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Face Class Reference

Store the Vertices for a Face. More...

#include <ReadLandscapeFile.h>

List of all members.

Public Types

typedef std::list< UVCoords
* >::iterator 
uvIter

Public Member Functions

 Face (Vertex *v1, Vertex *v2, Vertex *v3)
 constructor with 3 vertices (Triangle)
 Face (Vertex *v1, Vertex *v2, Vertex *v3, Vertex *v4)
 constructor with 4 vertices (Quad)
 Face (std::list< Vertex * > li)
 constructor with a list of vertices (Poly)
virtual ~Face (void)
 destructor
VertexgetVertex (int Stelle)
 get the pointer to the vertex at the position Stelle of the face
void setVertex (int Stelle, Vertex *new_v)
 set the vertex at the position Stelle of the face
UVCoordsgetUVCoords (int Stelle)
void setUVCoords (int Stelle, UVCoords *new_uv)
int getCornerCount ()
 get the number of vertices of the face

Private Attributes

std::list< Vertex * > verticesForFace
int cornerCount
std::list< UVCoords * > uvList


Detailed Description

Store the Vertices for a Face.

Constructors for Faces with 3, 4 or more Vertices. The pointers to these are stored in a list.


Member Typedef Documentation

typedef std::list<UVCoords*>::iterator Face::uvIter
 


Constructor & Destructor Documentation

Face::Face Vertex v1,
Vertex v2,
Vertex v3
 

constructor with 3 vertices (Triangle)

Parameters:
Pointer to the first vertex of the face (against clock-direction)
Pointer to the second vertex of the face
Pointer to the third vertex of the face

Face::Face Vertex v1,
Vertex v2,
Vertex v3,
Vertex v4
 

constructor with 4 vertices (Quad)

Parameters:
Pointer to the first vertex of the face (against clock-direction)
Pointer to the second vertex of the face
Pointer to the third vertex of the face
Pointer to the fourth vertex of the face

Face::Face std::list< Vertex * >  li  ) 
 

constructor with a list of vertices (Poly)

Parameters:
list of vertex pointers of the face

Face::~Face void   )  [virtual]
 

destructor


Member Function Documentation

int Face::getCornerCount  ) 
 

get the number of vertices of the face

Returns:
number of vertices of the face

UVCoords * Face::getUVCoords int  Stelle  ) 
 

Vertex * Face::getVertex int  Stelle  ) 
 

get the pointer to the vertex at the position Stelle of the face

Parameters:
position of the vertex in the face
Returns:
vertex pointer to the vertex at the position in face

void Face::setUVCoords int  Stelle,
UVCoords new_uv
 

void Face::setVertex int  Stelle,
Vertex new_v
 

set the vertex at the position Stelle of the face

Parameters:
position of the vertex in the face
pointer to the vertex which replaces the vertex at position Stelle in the face


Member Data Documentation

int Face::cornerCount [private]
 

std::list<UVCoords*> Face::uvList [private]
 

std::list<Vertex*> Face::verticesForFace [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:32 2005 for Loud and Proud by doxygen 1.3.8