Home | Download | Screen shots | Discussion | Documentation | Links |
---|
Inheritance diagram for Text:
Public Methods | |
Text (const NodeType &nodeType, const ScopePtr &scope) | |
Constructor. | |
virtual | ~Text () throw () |
Destructor. | |
virtual bool | isModified () const |
Determine whether the node has been modified. | |
virtual void | updateModified (NodePath &path, int flags=0x003) |
Propagate the bvolume dirty flag from children to parents. | |
virtual Viewer::Object | insertGeometry (Viewer &viewer, VrmlRenderContext context) |
Insert this geometry into viewer's display list. | |
Private Types | |
typedef std::vector< std::vector< FcChar32 > > | Ucs4String |
A vector of FcChar32 vectors. | |
typedef std::map< FT_UInt, GlyphGeometry > | GlyphGeometryMap |
Maps FT_UInts to GlyphGeometry. | |
Private Methods | |
virtual void | initializeImpl (double timestamp) throw () |
Initialize. | |
void | processSet_string (const FieldValue &mfstring, double timestamp) throw (std::bad_cast, std::bad_alloc) |
set_string eventIn handler. | |
void | processSet_fontStyle (const FieldValue &sfnode, double timestamp) throw (std::bad_cast, std::bad_alloc) |
set_fontStyle eventIn handler. | |
void | processSet_length (const FieldValue &mffloat, double timestamp) throw (std::bad_cast, std::bad_alloc) |
set_length eventIn handler. | |
void | processSet_maxExtent (const FieldValue &sffloat, double timestamp) throw (std::bad_cast) |
set_maxExtent eventIn handler. | |
void | updateUcs4 () throw (std::bad_alloc) |
Called when string changes to update the UCS-4 text. | |
void | updateFace () throw (std::bad_alloc) |
Called when fontStyle changes to update the font face. | |
void | updateGeometry () throw (std::bad_alloc) |
Called to update textGeometry. | |
Private Attributes | |
MFString | string |
string exposedField. | |
SFNode | fontStyle |
fontStyle exposedField. | |
MFFloat | length |
length exposedField. | |
SFFloat | maxExtent |
maxExtent exposedField. | |
Ucs4String | ucs4String |
UCS-4 equivalent of the (UTF-8) data in string. | |
FT_Face | face |
Handle to the font face. | |
GlyphGeometryMap | glyphGeometryMap |
Map of glyph indices to GlyphGeometry. | |
TextGeometry | textGeometry |
The text geometry. | |
Friends | |
class | TextClass |
Class object for Text instances. |
|
Maps FT_UInts to GlyphGeometry.
|
|
A vector of FcChar32 vectors.
|
|
Constructor.
|
|
Destructor.
|
|
Initialize.
Reimplemented from Node. |
|
Insert this geometry into
Implements GeometryNode. |
|
Determine whether the node has been modified.
Reimplemented from Node. |
|
set_fontStyle eventIn handler.
|
|
set_length eventIn handler.
|
|
set_maxExtent eventIn handler.
|
|
set_string eventIn handler.
|
|
Called when fontStyle changes to update the font face.
|
|
Called to update textGeometry.
|
|
Propagate the bvolume dirty flag from children to parents.
Reimplemented from Node. |
|
Called when string changes to update the UCS-4 text.
|
|
Class object for Text instances.
|
|
Handle to the font face.
|
|
fontStyle exposedField.
|
|
Map of glyph indices to GlyphGeometry. GlyphGeometry instances are created as needed, as new glyphs are encountered. Once they are created, they are cached in the glyphGeometryMap for rapid retrieval the next time the glyph is encountered. |
|
length exposedField.
|
|
maxExtent exposedField.
|
|
string exposedField.
|
|
The text geometry.
|
|
UCS-4 equivalent of the (UTF-8) data in string.
|