openvrml::vrml97_node::text_node::glyph_geometry Struct Reference

List of all members.

Detailed Description

Used to hold the geometry of individual glyphs.

For internal use only.


Public Member Functions

 glyph_geometry (const std::vector< std::vector< vec2f > > &contours, float advance_width, float advance_height) throw (std::bad_alloc)
 Construct from a set of contours.

Public Attributes

std::vector< vec2fcoord
 Glyph coordinates.
std::vector< int32coord_index
 Glyph coordinate indices.
float advance_width
 The distance the pen should advance horizontally after drawing the glyph.
float advance_height
 The distance the pen should advance vertically after drawing the glyph.

Constructor & Destructor Documentation

openvrml::vrml97_node::text_node::glyph_geometry::glyph_geometry ( const std::vector< std::vector< vec2f > > &  contours,
float  advance_width,
float  advance_height 
) throw (std::bad_alloc)

Construct from a set of contours.

Parameters:
contours a vector of closed contours that make up the glyph's outline.
advance_width the distance the pen should advance horizontally after drawing the glyph.
advance_height the distance the pen should advance vertically after drawing the glyph.
Exceptions:
std::bad_alloc if memory allocation fails.


Member Data Documentation

Glyph coordinates.

Glyph coordinate indices.

The distance the pen should advance horizontally after drawing the glyph.

The distance the pen should advance vertically after drawing the glyph.