FTMesh Class Reference

#include <FTVectoriser.h>

List of all members.

Public Member Functions

 FTMesh ()
 ~FTMesh ()
void AddPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
const FTGL_DOUBLECombine (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
void Begin (GLenum meshType)
void End ()
void Error (GLenum e)
unsigned int TesselationCount () const
const FTTesselationTesselation (unsigned int index) const
const PointListTempPointList () const
GLenum Error () const
 FTMesh ()
 ~FTMesh ()
void AddPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
const FTGL_DOUBLECombine (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
void Begin (GLenum meshType)
void End ()
void Error (GLenum e)
unsigned int TesselationCount () const
const FTTesselationTesselation (unsigned int index) const
const PointListTempPointList () const
GLenum Error () const

Private Types

typedef FTVector< FTTesselation * > TesselationVector
typedef FTList< FTPointPointList
typedef FTVector< FTTesselation * > TesselationVector
typedef FTList< FTPointPointList

Private Attributes

FTTesselationcurrentTesselation
TesselationVector tesselationList
PointList tempPointList
GLenum err
FTTesselationcurrentTesselation


Detailed Description

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

Definition at line 80 of file FTVectoriser.h.


Member Typedef Documentation

typedef FTVector<FTTesselation*> FTMesh::TesselationVector [private]

Definition at line 82 of file FTVectoriser.h.

typedef FTList<FTPoint> FTMesh::PointList [private]

Definition at line 83 of file FTVectoriser.h.

typedef FTVector<FTTesselation*> FTMesh::TesselationVector [private]

Definition at line 82 of file FTVectoriser.h.

typedef FTList<FTPoint> FTMesh::PointList [private]

Definition at line 83 of file FTVectoriser.h.


Constructor & Destructor Documentation

FTMesh::FTMesh (  ) 

Default constructor

Definition at line 51 of file FTVectoriser.cxx.

References FTVector< FT_VECTOR_ITEM_TYPE >::reserve(), and tesselationList.

FTMesh::~FTMesh (  ) 

Destructor

Definition at line 59 of file FTVectoriser.cxx.

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

FTMesh::FTMesh (  ) 

Default constructor

FTMesh::~FTMesh (  ) 

Destructor


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.cxx.

References FTTesselation::AddPoint(), and currentTesselation.

Referenced by ftglVertex().

const 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.cxx.

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

Referenced by ftglCombine().

void FTMesh::Begin ( GLenum  meshType  ) 

Begin a new polygon

Definition at line 83 of file FTVectoriser.cxx.

References currentTesselation.

Referenced by ftglBegin().

void FTMesh::End (  ) 

End a polygon

Definition at line 89 of file FTVectoriser.cxx.

References currentTesselation, FTVector< FT_VECTOR_ITEM_TYPE >::push_back(), and tesselationList.

Referenced by ftglEnd().

void FTMesh::Error ( GLenum  e  )  [inline]

Record a gluTesselation error

Definition at line 119 of file FTVectoriser.h.

Referenced by ftglError().

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().

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

Get a tesselation by index

Definition at line 95 of file FTVectoriser.cxx.

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

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

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

Return the temporary point list. For testing only.

Definition at line 134 of file FTVectoriser.h.

GLenum FTMesh::Error (  )  const [inline]

Get the GL ERROR returned by the glu tesselator

Definition at line 139 of file FTVectoriser.h.

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

Add a point to the mesh

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

Create a combine point for the gluTesselator

void FTMesh::Begin ( GLenum  meshType  ) 

Begin a new polygon

void FTMesh::End (  ) 

End a polygon

void FTMesh::Error ( GLenum  e  )  [inline]

Record a gluTesselation error

Definition at line 119 of file FTVectoriser.h.

unsigned int FTMesh::TesselationCount (  )  const [inline]

The number of tesselations in the mesh

Definition at line 124 of file FTVectoriser.h.

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

Get a tesselation by index

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

Return the temporary point list. For testing only.

Definition at line 134 of file FTVectoriser.h.

GLenum FTMesh::Error (  )  const [inline]

Get the GL ERROR returned by the glu tesselator

Definition at line 139 of file FTVectoriser.h.


Member Data Documentation

FTTesselation* FTMesh::currentTesselation [private]

The current sub mesh that we are constructing.

Definition at line 145 of file FTVectoriser.h.

Referenced by AddPoint(), Begin(), and End().

TesselationVector FTMesh::tesselationList [private]

Holds each sub mesh that comprises this glyph.

Definition at line 150 of file FTVectoriser.h.

Referenced by End(), FTMesh(), Tesselation(), and ~FTMesh().

PointList FTMesh::tempPointList [private]

Holds extra points created by gluTesselator. See ftglCombine.

Definition at line 155 of file FTVectoriser.h.

Referenced by Combine().

GLenum FTMesh::err [private]

GL ERROR returned by the glu tesselator

Definition at line 160 of file FTVectoriser.h.

FTTesselation* FTMesh::currentTesselation [private]

The current sub mesh that we are constructing.

Definition at line 145 of file FTVectoriser.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1