version 3.3

VRS::TEXT::TextBoundedScale Class Reference

A scaler resizing a text so its size won't exceed maximum or minimum size. More...

#include <vrs/text/textboundedscale.h>

Inheritance diagram for VRS::TEXT::TextBoundedScale:

VRS::Transform VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  InterpolationMode { IM_NONE, IM_LINEAR, IM_CUBIC }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (InterpolationMode)
 TextBoundedScale (SO< TextureText > tt=NULL, float minimumScale=0.125, float maximumScale=2.0, InterpolationMode im=IM_CUBIC, float startDistance=0.0, float endDistance=500.0)
virtual ~TextBoundedScale ()
 Destructor.
virtual const Matrixmatrix (Engine *engine=0) const
 Returns the Matrix for this transform.
 VRS_TYPEINFO (TextBoundedScale, Transform)
 VRS_SERIALIZABLE (TextBoundedScale)


Detailed Description

A scaler resizing a text so its size won't exceed maximum or minimum size.

Member Enumeration Documentation

Enumerator:
IM_NONE 
IM_LINEAR 
IM_CUBIC 


Constructor & Destructor Documentation

VRS::TEXT::TextBoundedScale::TextBoundedScale ( SO< TextureText tt = NULL,
float  minimumScale = 0.125,
float  maximumScale = 2.0,
InterpolationMode  im = IM_CUBIC,
float  startDistance = 0.0,
float  endDistance = 500.0 
)

Parameters:
minimumScale The smallest scale relative to the normal size (1.0), will not be under-run
maximumScale The greatest scale relative to the normal size (1.0), will not be exceeded
im The way the values between min and max will be interpolated

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

Destructor.


Member Function Documentation

VRS::TEXT::TextBoundedScale::VRS_SERIALIZABLE_CLASS_ENUM ( InterpolationMode   ) 

virtual const Matrix& VRS::TEXT::TextBoundedScale::matrix ( Engine engine = 0  )  const [virtual]

Returns the Matrix for this transform.

Implements VRS::Transform.

VRS::TEXT::TextBoundedScale::VRS_TYPEINFO ( TextBoundedScale  ,
Transform   
)

VRS::TEXT::TextBoundedScale::VRS_SERIALIZABLE ( TextBoundedScale   ) 


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

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