Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTMesh Class Reference

#include <FTVectoriser.h>


Detailed Description

FTMesh is a container of FTTesselation's that make up a polygon glyph.

Definition at line 80 of file FTVectoriser.h.

Public Member Functions

 FTMesh ()
 Default constructor.

 ~FTMesh ()
 Destructor.

void AddPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Add a point to the mesh.

FTGL_DOUBLECombine (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Create a combine point for the gluTesselator.

void Begin (GLenum meshType)
 Begin a new polygon.

void End ()
 End a polygon.

void Error (GLenum e)
 Record a gluTesselation error.

unsigned int TesselationCount () const
 The number of tesselations in the mesh.

const FTTesselation *const  Tesselation (unsigned int index) const
 Get a tesselation by index.

const PointListTempPointList () const
 Return the temporary point list.

GLenum Error () const
 Get the GL ERROR returned by the glu tesselator.


Constructor & Destructor Documentation

FTMesh::FTMesh  ) 
 

Default constructor.

Definition at line 51 of file FTVectoriser.cpp.

References FTVector< FT_VECTOR_ITEM_TYPE >::reserve().

FTMesh::~FTMesh  ) 
 

Destructor.

Definition at line 59 of file FTVectoriser.cpp.

References FTVector< FT_VECTOR_ITEM_TYPE >::clear(), and FTVector< FT_VECTOR_ITEM_TYPE >::size().


Member Function Documentation

void FTMesh::AddPoint const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z
 

Add a point to the mesh.

Definition at line 70 of file FTVectoriser.cpp.

References FTTesselation::AddPoint(), and FTGL_DOUBLE.

Referenced by ftglVertex().

void FTMesh::Begin GLenum  meshType  ) 
 

Begin a new polygon.

Definition at line 83 of file FTVectoriser.cpp.

Referenced by ftglBegin().

FTGL_DOUBLE * FTMesh::Combine const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z
 

Create a combine point for the gluTesselator.

Definition at line 76 of file FTVectoriser.cpp.

References FTList< FT_LIST_ITEM_TYPE >::back(), FTGL_DOUBLE, and FTList< FT_LIST_ITEM_TYPE >::push_back().

Referenced by ftglCombine().

void FTMesh::End  ) 
 

End a polygon.

Definition at line 89 of file FTVectoriser.cpp.

References FTVector< FT_VECTOR_ITEM_TYPE >::push_back().

Referenced by ftglEnd().

GLenum FTMesh::Error  )  const [inline]
 

Get the GL ERROR returned by the glu tesselator.

Definition at line 139 of file FTVectoriser.h.

void FTMesh::Error GLenum  e  )  [inline]
 

Record a gluTesselation error.

Definition at line 119 of file FTVectoriser.h.

Referenced by ftglError().

const PointList& FTMesh::TempPointList  )  const [inline]
 

Return the temporary point list.

For testing only.

Definition at line 134 of file FTVectoriser.h.

const FTTesselation *const FTMesh::Tesselation unsigned int  index  )  const
 

Get a tesselation by index.

Definition at line 95 of file FTVectoriser.cpp.

References FTVector< FT_VECTOR_ITEM_TYPE >::size().

Referenced by FTExtrdGlyph::FTExtrdGlyph(), and FTPolyGlyph::FTPolyGlyph().

unsigned int FTMesh::TesselationCount  )  const [inline]
 

The number of tesselations in the mesh.

Definition at line 124 of file FTVectoriser.h.

Referenced by FTExtrdGlyph::FTExtrdGlyph(), and FTPolyGlyph::FTPolyGlyph().


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 22:24:07 2004 for FTGL by doxygen 1.3.6