version 3.3

VRS::TEXT::TextureText Class Reference

Text with glyphs rasterized on a texture. More...

#include <vrs/text/texturetext.h>

Inheritance diagram for VRS::TEXT::TextureText:

VRS::TEXT::BaseText VRS::TEXT::AbstractText VRS::Shape VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::TEXT::DisplacedTextureText

List of all members.

Public Member Functions

 TextureText (SO< FontDefinition > fd, const std::string &text)
 Creates a TextureText for the given FontDefinion with the given text.
 TextureText (SO< FontDefinition > fd, TextureText *bt)
 Copy constructor.
virtual ~TextureText ()
 D-tor.
virtual const FontTextureSet getCachedTextures () const
 The used Textures.
virtual const SO< PolygonSetgetCollisionPolygonSet () const
 Returns the polygons used for collision (one set, matrix applied, no UV-coords).
virtual const SO< PolygonSetgetPolygonSet (SO< FontTexture >) const
 Returns the polygons for rendering.
virtual void setMatrix (const Matrix &m)
 Sets the local matrix for the text.
virtual void setMatrix (AbstractText::TextPlane tp, const Vector &offset=Vector(0, 0, 0), const Vector &scale=Vector(1, 1, 1))
 Sets the local matrix for the text.
virtual Bounds boundingBox () const
 Override from Shape.
virtual Matrix calculateScreenSize (Engine *E) const
 Calculates the needed scaling to match texel-size to screen pixel size.
virtual void rebuildAllCaches ()
 Refreshes all caches.
virtual void updateCachedTextures ()
 Regenerates the List of textures used in this TextureText.
virtual void updateCachedPolygons ()
 Builds the Polygon sets.
 VRS_TYPEINFO (TextureText, BaseText)
 VRS_SERIALIZABLE (TextureText)

Protected Member Functions

 TextureText ()
 Constructor for persistency.

Protected Attributes

FontTextureSet m_CachedTextures
 The used Textures for this TextureText.
SO< PolygonSetm_CollisionPolygonSet
 The PolygonSet for intersection.
SO< TexturePolygonMapm_RenderPolygonSets
 A map of all PolygonSets.


Detailed Description

Text with glyphs rasterized on a texture.

Simply placeable into a scenenode, the upper-left border of the text resides at (0,0,0), the up-axis is Y, the right-axis is X, looking into -Z.

If no right or bottom border are set, the text origin is defined by the horizontal and vertical alignment. If those are AbstractText::CENTER/AbstractTextMIDDLE the center of the text is at (0,0,0), if horizontal-alignment is AbstractText::RIGHT, the right edge is at 0, with AbstractText::LEFT, the left edge is placed 0. Default is AbstractText::LEFT, AbstractText::TOP.

If right or bottom border are set, the text will be aligned to those borders, but not being cropped if the width of the whole text is greater than the width of border.

See also:
AbstractText

BaseText


Constructor & Destructor Documentation

VRS::TEXT::TextureText::TextureText ( SO< FontDefinition fd,
const std::string &  text 
)

Creates a TextureText for the given FontDefinion with the given text.

VRS::TEXT::TextureText::TextureText ( SO< FontDefinition fd,
TextureText bt 
)

Copy constructor.

virtual VRS::TEXT::TextureText::~TextureText (  )  [virtual]

D-tor.

VRS::TEXT::TextureText::TextureText (  )  [protected]

Constructor for persistency.


Member Function Documentation

virtual const FontTextureSet VRS::TEXT::TextureText::getCachedTextures (  )  const [virtual]

The used Textures.

virtual const SO< PolygonSet > VRS::TEXT::TextureText::getCollisionPolygonSet (  )  const [virtual]

Returns the polygons used for collision (one set, matrix applied, no UV-coords).

virtual const SO< PolygonSet > VRS::TEXT::TextureText::getPolygonSet ( SO< FontTexture  )  const [virtual]

Returns the polygons for rendering.

virtual void VRS::TEXT::TextureText::setMatrix ( const Matrix m  )  [virtual]

Sets the local matrix for the text.

Reimplemented from VRS::TEXT::BaseText.

virtual void VRS::TEXT::TextureText::setMatrix ( AbstractText::TextPlane  tp,
const Vector offset = Vector(0,0,0),
const Vector scale = Vector(1,1,1) 
) [inline, virtual]

Sets the local matrix for the text.

Reimplemented from VRS::TEXT::BaseText.

virtual Bounds VRS::TEXT::TextureText::boundingBox (  )  const [virtual]

Override from Shape.

Reimplemented from VRS::TEXT::BaseText.

Reimplemented in VRS::TEXT::DisplacedTextureText.

virtual Matrix VRS::TEXT::TextureText::calculateScreenSize ( Engine E  )  const [virtual]

Calculates the needed scaling to match texel-size to screen pixel size.

virtual void VRS::TEXT::TextureText::rebuildAllCaches (  )  [virtual]

Refreshes all caches.

Reimplemented from VRS::TEXT::BaseText.

virtual void VRS::TEXT::TextureText::updateCachedTextures (  )  [virtual]

Regenerates the List of textures used in this TextureText.

virtual void VRS::TEXT::TextureText::updateCachedPolygons (  )  [virtual]

Builds the Polygon sets.

Reimplemented in VRS::TEXT::DisplacedTextureText.

VRS::TEXT::TextureText::VRS_TYPEINFO ( TextureText  ,
BaseText   
)

VRS::TEXT::TextureText::VRS_SERIALIZABLE ( TextureText   ) 


Member Data Documentation

The used Textures for this TextureText.

The PolygonSet for intersection.

A map of all PolygonSets.


The documentation for this class was generated from the following file:

Generated on Tue May 21 06:00:41 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact