FTExtrdGlyph Class Reference

#include <FTExtrdGlyph.h>

Inheritance diagram for FTExtrdGlyph:

FTGlyph FTGlyph List of all members.

Public Member Functions

 FTExtrdGlyph (FT_GlyphSlot glyph, float depth, bool useDisplayList)
virtual ~FTExtrdGlyph ()
virtual const FTPointRender (const FTPoint &pen)
 FTExtrdGlyph (FT_GlyphSlot glyph, float depth, bool useDisplayList)
virtual ~FTExtrdGlyph ()
virtual const FTPointRender (const FTPoint &pen)

Private Member Functions

FTPoint GetNormal (const FTPoint &a, const FTPoint &b)
FTPoint GetNormal (const FTPoint &a, const FTPoint &b)

Private Attributes

GLuint glList

Detailed Description

FTExtrdGlyph is a specialisation of FTGlyph for creating tessellated extruded polygon glyphs.

See also:
FTGlyphContainer

FTVectoriser

Definition at line 21 of file FTExtrdGlyph.h.


Constructor & Destructor Documentation

FTExtrdGlyph::FTExtrdGlyph ( FT_GlyphSlot  glyph,
float  depth,
bool  useDisplayList 
)

Constructor. Sets the Error to Invalid_Outline if the glyph isn't an outline.

Parameters:
glyph The Freetype glyph to be processed
depth The distance along the z axis to extrude the glyph
useDisplayList Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists.

FTPoint point = subMesh->Point(pointIndex);

Definition at line 9 of file FTExtrdGlyph.cxx.

References FTGlyph::bBox, c, FTVectoriser::Contour(), FTVectoriser::ContourCount(), FTVectoriser::ContourFlag(), FTGlyph::err, FT_GlyphSlotRec_::face, FT_GlyphSlotRec_::format, ft_glyph_format_outline, ft_outline_reverse_fill, FTVectoriser::GetMesh(), GetNormal(), GL_COMPILE, GL_QUAD_STRIP, glBegin(), glEnd(), glEndList(), glGenLists(), glList, glNewList(), glNormal3d(), glNormal3dv(), glTexCoord2f(), glVertex3f(), j, FTVectoriser::MakeMesh(), FT_SizeRec_::metrics, FTContour::PointCount(), FTVectoriser::PointCount(), FTTesselation::PolygonType(), FTBBox::SetDepth(), FT_FaceRec_::size, size_t, FTMesh::Tesselation(), FTMesh::TesselationCount(), FT_Size_Metrics_::x_ppem, POINT::Y, and FT_Size_Metrics_::y_ppem.

FTExtrdGlyph::~FTExtrdGlyph (  )  [virtual]

Destructor

Definition at line 134 of file FTExtrdGlyph.cxx.

References glDeleteLists(), and glList.

FTExtrdGlyph::FTExtrdGlyph ( FT_GlyphSlot  glyph,
float  depth,
bool  useDisplayList 
)

Constructor. Sets the Error to Invalid_Outline if the glyph isn't an outline.

Parameters:
glyph The Freetype glyph to be processed
depth The distance along the z axis to extrude the glyph
useDisplayList Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists.

virtual FTExtrdGlyph::~FTExtrdGlyph (  )  [virtual]

Destructor


Member Function Documentation

const FTPoint & FTExtrdGlyph::Render ( const FTPoint pen  )  [virtual]

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.

Definition at line 140 of file FTExtrdGlyph.cxx.

References FTGlyph::advance, glCallList(), glList, glTranslatef(), FTPoint::X(), and FTPoint::Y().

FTPoint FTExtrdGlyph::GetNormal ( const FTPoint a,
const FTPoint b 
) [private]

Calculate the normal vector to 2 points. This is 2D and ignores the z component. The normal will be normalised

Parameters:
a 
b 
Returns:

Definition at line 153 of file FTExtrdGlyph.cxx.

References a, b, length, and sqrt().

Referenced by FTExtrdGlyph().

virtual const FTPoint& FTExtrdGlyph::Render ( const FTPoint pen  )  [virtual]

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.

FTPoint FTExtrdGlyph::GetNormal ( const FTPoint a,
const FTPoint b 
) [private]

Calculate the normal vector to 2 points. This is 2D and ignores the z component. The normal will be normalised

Parameters:
a 
b 
Returns:


Member Data Documentation

GLuint FTExtrdGlyph::glList [private]

OpenGL display list

Definition at line 63 of file FTExtrdGlyph.h.

Referenced by FTExtrdGlyph(), Render(), and ~FTExtrdGlyph().


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