version 3.3

VRS::TEXT::DisplacedTextureText Class Reference

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

#include <vrs/text/displacedtexturetext.h>

Inheritance diagram for VRS::TEXT::DisplacedTextureText:

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

List of all members.

Public Member Functions

 DisplacedTextureText (SO< FontDefinition > fd, const std::string &text)
 Creates a DisplacedTextureText for the given FontDefinion with the given text.
 DisplacedTextureText (SO< FontDefinition > fd, DisplacedTextureText *bt)
 Copy constructor.
 DisplacedTextureText (SO< FontDefinition > fd, TextureText *bt)
 Copy constructor with basis class.
virtual ~DisplacedTextureText ()
 D-tor.
void setBaseLineModifier (SO< BaseLineModifier > mod, bool rotationToUpPlane=false)
 Sets the Baseline modifier.
SO< BaseLineModifiergetBaseLineModifier () const
 Returns the Baseline modifier.
void setUniformScaleValue (const double value)
 Set a scale value that is applied to the glyphs before the baseline modifier.
double getUniformScaleValue () const
 Get the scale value that is applied to the glyphs before the baseline modifier.
void setRoationToUpPlaneFlag (const bool flag)
 set a flag that control two variants of how glyphs a placed along the curve
bool getRoationToUpPlaneFlag () const
 get a flag that control two variants of how glyphs a placed along the curve
virtual void updateCachedPolygons ()
 Builds the Polygon sets.
virtual Bounds boundingBox () const
 Override from Shape.
 VRS_TYPEINFO (DisplacedTextureText, BaseText)
 VRS_SERIALIZABLE (DisplacedTextureText)

Protected Member Functions

 DisplacedTextureText ()
 For persistence.

Protected Attributes

SO< BaseLineModifierm_BaseLineModifier
 The displacement of the BaseLine.
Bounds m_ModCachedBounds
 The modified Bounds.
double m_uniformScaleValue
bool m_rotationToUpPlane


Detailed Description

Text with glyphs rasterized on a texture like TextureText.

Additionally the baseline of the text can be transformed by a curve, and the text can be pojected onto a height texture.

If the baseline modifier is changed, updateCachedPolygons() needs to be called for any text containing it.

See also:
AbstractText

BaseText

TextureText


Constructor & Destructor Documentation

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

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

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

Copy constructor.

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

Copy constructor with basis class.

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

D-tor.

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

For persistence.


Member Function Documentation

void VRS::TEXT::DisplacedTextureText::setBaseLineModifier ( SO< BaseLineModifier mod,
bool  rotationToUpPlane = false 
)

Sets the Baseline modifier.

SO<BaseLineModifier> VRS::TEXT::DisplacedTextureText::getBaseLineModifier (  )  const

Returns the Baseline modifier.

void VRS::TEXT::DisplacedTextureText::setUniformScaleValue ( const double  value  )  [inline]

Set a scale value that is applied to the glyphs before the baseline modifier.

double VRS::TEXT::DisplacedTextureText::getUniformScaleValue (  )  const [inline]

Get the scale value that is applied to the glyphs before the baseline modifier.

void VRS::TEXT::DisplacedTextureText::setRoationToUpPlaneFlag ( const bool  flag  )  [inline]

set a flag that control two variants of how glyphs a placed along the curve

bool VRS::TEXT::DisplacedTextureText::getRoationToUpPlaneFlag (  )  const [inline]

get a flag that control two variants of how glyphs a placed along the curve

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

Builds the Polygon sets.

Reimplemented from VRS::TEXT::TextureText.

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

Override from Shape.

Reimplemented from VRS::TEXT::TextureText.

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

VRS::TEXT::DisplacedTextureText::VRS_SERIALIZABLE ( DisplacedTextureText   ) 


Member Data Documentation

The displacement of the BaseLine.

The modified Bounds.


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

Generated on Wed May 23 06:00:34 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact