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

FTVectoriser Class Reference

#include <FTVectoriser.h>


Detailed Description

FTVectoriser class is a helper class that converts font outlines into point data.

See also:
FTExtrdGlyph

FTOutlineGlyph

FTPolyGlyph

FTContour

FTPoint

Definition at line 178 of file FTVectoriser.h.

Public Member Functions

 FTVectoriser (const FT_GlyphSlot glyph)
 Constructor.

virtual ~FTVectoriser ()
 Destructor.

void MakeMesh (FTGL_DOUBLE zNormal=FTGL_FRONT_FACING)
 Build an FTMesh from the vector outline data.

const FTMesh *const  GetMesh () const
 Get the current mesh.

size_t PointCount ()
 Get the total count of points in this outline.

size_t ContourCount () const
 Get the count of contours in this outline.

const FTContour *const  Contour (unsigned int index) const
 Return a contour at index.

size_t ContourSize (int c) const
 Get the number of points in a specific contour in this outline.

int ContourFlag () const
 Get the flag for the tesselation rule for this outline.


Constructor & Destructor Documentation

FTVectoriser::FTVectoriser const FT_GlyphSlot  glyph  ) 
 

Constructor.

Parameters:
glyph The freetype glyph to be processed

Definition at line 101 of file FTVectoriser.cpp.

FTVectoriser::~FTVectoriser  )  [virtual]
 

Destructor.

Definition at line 120 of file FTVectoriser.cpp.

References ContourCount().


Member Function Documentation

const FTContour *const FTVectoriser::Contour unsigned int  index  )  const
 

Return a contour at index.

Returns:
the number of contours

Definition at line 169 of file FTVectoriser.cpp.

References ContourCount().

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

size_t FTVectoriser::ContourCount  )  const [inline]
 

Get the count of contours in this outline.

Returns:
the number of contours

Definition at line 218 of file FTVectoriser.h.

Referenced by Contour(), FTExtrdGlyph::FTExtrdGlyph(), FTOutlineGlyph::FTOutlineGlyph(), FTPolyGlyph::FTPolyGlyph(), MakeMesh(), PointCount(), and ~FTVectoriser().

int FTVectoriser::ContourFlag  )  const [inline]
 

Get the flag for the tesselation rule for this outline.

Returns:
The contour flag

Definition at line 240 of file FTVectoriser.h.

Referenced by FTExtrdGlyph::FTExtrdGlyph().

size_t FTVectoriser::ContourSize int  c  )  const [inline]
 

Get the number of points in a specific contour in this outline.

Parameters:
c The contour index
Returns:
the number of points in contour[c]

Definition at line 233 of file FTVectoriser.h.

const FTMesh* const FTVectoriser::GetMesh  )  const [inline]
 

Get the current mesh.

Definition at line 204 of file FTVectoriser.h.

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

void FTVectoriser::MakeMesh FTGL_DOUBLE  zNormal = FTGL_FRONT_FACING  ) 
 

Build an FTMesh from the vector outline data.

Parameters:
zNormal The direction of the z axis of the normal for this mesh

Definition at line 175 of file FTVectoriser.cpp.

References ContourCount(), FTGL_DOUBLE, ftglBegin(), ftglCombine(), ftglEnd(), ftglError(), ftglVertex(), FTContour::Point(), and FTContour::PointCount().

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

size_t FTVectoriser::PointCount  ) 
 

Get the total count of points in this outline.

Returns:
the number of points

Definition at line 157 of file FTVectoriser.cpp.

References ContourCount(), and FTContour::PointCount().

Referenced by FTExtrdGlyph::FTExtrdGlyph(), FTOutlineGlyph::FTOutlineGlyph(), 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