| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/text/texturetext.h>

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< PolygonSet > | getCollisionPolygonSet () const |
| Returns the polygons used for collision (one set, matrix applied, no UV-coords). | |
| virtual const SO< PolygonSet > | getPolygonSet (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< PolygonSet > | m_CollisionPolygonSet |
| The PolygonSet for intersection. | |
| SO< TexturePolygonMap > | m_RenderPolygonSets |
| A map of all PolygonSets. | |
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.
| 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.
| 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] |
| 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] |
| virtual Bounds VRS::TEXT::TextureText::boundingBox | ( | ) | const [virtual] |
Override from Shape.
Reimplemented from VRS::TEXT::BaseText.
Reimplemented in VRS::TEXT::DisplacedTextureText.
Calculates the needed scaling to match texel-size to screen pixel size.
| virtual void VRS::TEXT::TextureText::rebuildAllCaches | ( | ) | [virtual] |
| virtual void VRS::TEXT::TextureText::updateCachedTextures | ( | ) | [virtual] |
Regenerates the List of textures used in this TextureText.
| virtual void VRS::TEXT::TextureText::updateCachedPolygons | ( | ) | [virtual] |
| VRS::TEXT::TextureText::VRS_TYPEINFO | ( | TextureText | , | |
| BaseText | ||||
| ) |
| VRS::TEXT::TextureText::VRS_SERIALIZABLE | ( | TextureText | ) |
The used Textures for this TextureText.
SO< PolygonSet > VRS::TEXT::TextureText::m_CollisionPolygonSet [protected] |
The PolygonSet for intersection.
SO< TexturePolygonMap > VRS::TEXT::TextureText::m_RenderPolygonSets [protected] |
A map of all PolygonSets.