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

Public Types | |
| enum | LodMode { LM_NONE, LM_FIRST, LM_LAST, LM_DISTANCE, LM_SIZE } |
| Describes how the active FontDefinition will be determined. More... | |
Public Member Functions | |
| VRS_SERIALIZABLE_CLASS_ENUM (LodMode) | |
| FontLodText (SO< AbstractText > at) | |
| Creates the FontLodText and inserts the FontDefinition of at as the first LodDefinition. | |
| virtual | ~FontLodText () |
| D-tor. | |
| virtual void | setAbstractText (SO< AbstractText > at) |
| Sets the Text that will be used for rendering. | |
| virtual SO< AbstractText > | getAbstractText () const |
| Gets the Text that is used for rendering. | |
| virtual void | setLodMode (FontLodText::LodMode) |
| Sets how the active FontDefinition will be determined. | |
| virtual FontLodText::LodMode | getLodMode () const |
| Returns how the active FontDefinition will be determined. | |
| virtual SO< FontDefinition > | getLodFontDefinition (unsigned int lodLevel) const |
| Returns the FontDefinition for the given Level or NULL if none was found. | |
| virtual unsigned int | getNumLodLevels () const |
| Returns the number of Lod. | |
| virtual unsigned int | getLodLevelByDistance (float distance) const |
| Gets the Lod Level ID for a distance. | |
| virtual unsigned int | getLodLevelBySize (float size) const |
| Gets the Lod Level ID for a size. | |
| virtual void | addLodLevel (SO< FontDefinition > fd, float lodstart=-1.0) |
| Adds a FontDefinition for use in greater distance. | |
| virtual void | removeLodLevel (unsigned int level) |
| Removes a lodlevel. | |
| virtual void | clearLodLevels () |
| Removes all Lod Levels. | |
| virtual const std::string & | getText () const |
| Returns the text to be rendered. | |
| virtual void | setText (const std::string &str) |
| Sets the new text to be rendered. | |
| virtual SO< FontDefinition > | getFontDefinition () const |
| Returns the FontDefinition. | |
| virtual void | setFontDefinition (SO< FontDefinition >) |
| Sets the FontDefinition. | |
| virtual AbstractText::HorizontalAlignment | getHorizontalAlignment () const |
| Returns the Horizontal Alignment. | |
| virtual void | setHorizontalAlignment (AbstractText::HorizontalAlignment tva) |
| Sets the Horizontal Alignment. | |
| virtual AbstractText::VerticalAlignment | getVerticalAlignment () const |
| Returns the Vertical Alignment. | |
| virtual void | setVerticalAlignment (AbstractText::VerticalAlignment tva) |
| Sets the Vertical Alignment. | |
| virtual AbstractText::HorizontalDirection | getHorizontalDirection () const |
| Returns the Horizontal Direction. | |
| virtual void | setHorizontalDirection (AbstractText::HorizontalDirection thd) |
| Sets the Horizontal Direction. | |
| virtual AbstractText::VerticalDirection | getVerticalDirection () const |
| Returns the Vertical Direction. | |
| virtual void | setVerticalDirection (AbstractText::VerticalDirection thd) |
| Sets the Vertical Direction. | |
| virtual AbstractText::Direction | getDirection () const |
| Returns the visible Direction. | |
| virtual void | setDirection (AbstractText::Direction td) |
| Set the visible Direction. | |
| virtual void | setAlignmentBounds (float rightBorder, float bottomBorder) |
| Sets the bottom and right bounds of the Text. | |
| virtual void | setRightAlignmentBound (float rightBorder) |
| Sets the right alignement bound. | |
| virtual void | setBottomAlignmentBound (float bottomBorder) |
| Sets the bottom alignement bound. | |
| virtual float | getRightAlignmentBound () const |
| Returns the right alignement bound. | |
| virtual float | getBottomAlignmentBound () const |
| Returns the bottom alignement bound. | |
| virtual float | getLineSpacing () const |
| Returns the Scale of the inter line gap. | |
| virtual void | setLineSpacing (float LineSpacing) |
| Sets the Scale of the inter line gap. | |
| virtual void | setColor (const Color &color, bool use=true) |
| Sets the Color of this Text. | |
| virtual Color | getColor () const |
| Returns the Color of this Text. | |
| virtual bool | useColor () const |
| Should the Color be used. | |
| virtual Matrix | getMatrix () const |
| Returns the local matrix for the text. | |
| virtual void | setMatrix (const Matrix &m) |
| Sets the local matrix for the text. | |
| virtual Bounds | boundingBox () const |
| Bounds (with Matrix applied). | |
| virtual Bounds | getLocalBounds () const |
| Bounds (without Matrix applied). | |
| VRS_TYPEINFO (FontLodText, Shape) | |
| VRS_SERIALIZABLE (FontLodText) | |
Describes how the active FontDefinition will be determined.
| VRS::TEXT::FontLodText::FontLodText | ( | SO< AbstractText > | at | ) |
Creates the FontLodText and inserts the FontDefinition of at as the first LodDefinition.
| virtual VRS::TEXT::FontLodText::~FontLodText | ( | ) | [virtual] |
D-tor.
| VRS::TEXT::FontLodText::VRS_SERIALIZABLE_CLASS_ENUM | ( | LodMode | ) |
| virtual void VRS::TEXT::FontLodText::setAbstractText | ( | SO< AbstractText > | at | ) | [virtual] |
Sets the Text that will be used for rendering.
| virtual SO<AbstractText> VRS::TEXT::FontLodText::getAbstractText | ( | ) | const [virtual] |
Gets the Text that is used for rendering.
| virtual void VRS::TEXT::FontLodText::setLodMode | ( | FontLodText::LodMode | ) | [virtual] |
Sets how the active FontDefinition will be determined.
| virtual FontLodText::LodMode VRS::TEXT::FontLodText::getLodMode | ( | ) | const [virtual] |
Returns how the active FontDefinition will be determined.
| virtual SO<FontDefinition> VRS::TEXT::FontLodText::getLodFontDefinition | ( | unsigned int | lodLevel | ) | const [virtual] |
Returns the FontDefinition for the given Level or NULL if none was found.
| virtual unsigned int VRS::TEXT::FontLodText::getNumLodLevels | ( | ) | const [virtual] |
Returns the number of Lod.
| virtual unsigned int VRS::TEXT::FontLodText::getLodLevelByDistance | ( | float | distance | ) | const [virtual] |
Gets the Lod Level ID for a distance.
| virtual unsigned int VRS::TEXT::FontLodText::getLodLevelBySize | ( | float | size | ) | const [virtual] |
| virtual void VRS::TEXT::FontLodText::addLodLevel | ( | SO< FontDefinition > | fd, | |
| float | lodstart = -1.0 | |||
| ) | [virtual] |
Adds a FontDefinition for use in greater distance.
| fd | The FontDefinition to be used. | |
| lodstart | The distance at which the Fontdefinition will be used if < 0, then distance will be generated from lineheight |
| If | the distance already exists |
| virtual void VRS::TEXT::FontLodText::removeLodLevel | ( | unsigned int | level | ) | [virtual] |
Removes a lodlevel.
| virtual void VRS::TEXT::FontLodText::clearLodLevels | ( | ) | [virtual] |
Removes all Lod Levels.
| virtual const std::string& VRS::TEXT::FontLodText::getText | ( | ) | const [virtual] |
| virtual void VRS::TEXT::FontLodText::setText | ( | const std::string & | str | ) | [virtual] |
| virtual SO<FontDefinition> VRS::TEXT::FontLodText::getFontDefinition | ( | ) | const [virtual] |
| virtual void VRS::TEXT::FontLodText::setFontDefinition | ( | SO< FontDefinition > | ) | [virtual] |
| virtual AbstractText::HorizontalAlignment VRS::TEXT::FontLodText::getHorizontalAlignment | ( | ) | const [virtual] |
Returns the Horizontal Alignment.
Implements VRS::TEXT::AbstractText.
| virtual void VRS::TEXT::FontLodText::setHorizontalAlignment | ( | AbstractText::HorizontalAlignment | tva | ) | [virtual] |
Sets the Horizontal Alignment.
Implements VRS::TEXT::AbstractText.
| virtual AbstractText::VerticalAlignment VRS::TEXT::FontLodText::getVerticalAlignment | ( | ) | const [virtual] |
Returns the Vertical Alignment.
Implements VRS::TEXT::AbstractText.
| virtual void VRS::TEXT::FontLodText::setVerticalAlignment | ( | AbstractText::VerticalAlignment | tva | ) | [virtual] |
Sets the Vertical Alignment.
Implements VRS::TEXT::AbstractText.
| virtual AbstractText::HorizontalDirection VRS::TEXT::FontLodText::getHorizontalDirection | ( | ) | const [virtual] |
Returns the Horizontal Direction.
Implements VRS::TEXT::AbstractText.
| virtual void VRS::TEXT::FontLodText::setHorizontalDirection | ( | AbstractText::HorizontalDirection | thd | ) | [virtual] |
Sets the Horizontal Direction.
Implements VRS::TEXT::AbstractText.
| virtual AbstractText::VerticalDirection VRS::TEXT::FontLodText::getVerticalDirection | ( | ) | const [virtual] |
Returns the Vertical Direction.
Implements VRS::TEXT::AbstractText.
| virtual void VRS::TEXT::FontLodText::setVerticalDirection | ( | AbstractText::VerticalDirection | thd | ) | [virtual] |
Sets the Vertical Direction.
Implements VRS::TEXT::AbstractText.
| virtual AbstractText::Direction VRS::TEXT::FontLodText::getDirection | ( | ) | const [virtual] |
| virtual void VRS::TEXT::FontLodText::setDirection | ( | AbstractText::Direction | td | ) | [virtual] |
| virtual void VRS::TEXT::FontLodText::setAlignmentBounds | ( | float | rightBorder, | |
| float | bottomBorder | |||
| ) | [virtual] |
Sets the bottom and right bounds of the Text.
Used for alignment and justification. If no alignment bounds are specified, the bounds that will be used is the position of the texts origin. This means that with AbstractText::RIGHT, the text will bei on the right side of the origin, or with AbstractText::CENTER and AbstractText::MIDDLE the cneter of the text will be on the origin.
If specified, the text will be aligned between the origin and the given borders.
Implements VRS::TEXT::AbstractText.
| virtual void VRS::TEXT::FontLodText::setRightAlignmentBound | ( | float | rightBorder | ) | [virtual] |
| virtual void VRS::TEXT::FontLodText::setBottomAlignmentBound | ( | float | bottomBorder | ) | [virtual] |
| virtual float VRS::TEXT::FontLodText::getRightAlignmentBound | ( | ) | const [virtual] |
| virtual float VRS::TEXT::FontLodText::getBottomAlignmentBound | ( | ) | const [virtual] |
Returns the bottom alignement bound.
Implements VRS::TEXT::AbstractText.
| virtual float VRS::TEXT::FontLodText::getLineSpacing | ( | ) | const [virtual] |
| virtual void VRS::TEXT::FontLodText::setLineSpacing | ( | float | LineSpacing | ) | [virtual] |
| virtual void VRS::TEXT::FontLodText::setColor | ( | const Color & | color, | |
| bool | use = true | |||
| ) | [virtual] |
| virtual Color VRS::TEXT::FontLodText::getColor | ( | ) | const [virtual] |
| virtual bool VRS::TEXT::FontLodText::useColor | ( | ) | const [virtual] |
| virtual Matrix VRS::TEXT::FontLodText::getMatrix | ( | ) | const [virtual] |
| virtual void VRS::TEXT::FontLodText::setMatrix | ( | const Matrix & | m | ) | [virtual] |
| virtual Bounds VRS::TEXT::FontLodText::boundingBox | ( | ) | const [virtual] |
| virtual Bounds VRS::TEXT::FontLodText::getLocalBounds | ( | ) | const [virtual] |
| VRS::TEXT::FontLodText::VRS_TYPEINFO | ( | FontLodText | , | |
| Shape | ||||
| ) |
| VRS::TEXT::FontLodText::VRS_SERIALIZABLE | ( | FontLodText | ) |