TerraLib 4.1
TeText Class Reference

TeText : A class for handling text. More...

#include <TeGeometry.h>

Inheritance diagram for TeText:
TeGeomSingle< TeCoord2D > TeVector TeGeometry

List of all members.

Public Member Functions

 TeText (const string &txt="")
 Default contructor.
 TeText (TeCoord2D &location, const string &txt="")
 Constructor.
 TeText (const TeText &other)
 Copy constructor.
TeTextoperator= (const TeText &other)
 Operator =.
bool operator== (const TeText &tx) const
 Returns TRUE if a text is equal to other.
void setLocation (const TeCoord2D &l)
 Sets anew value for the location of the text.
string textValue () const
 Returns the string value of a text.
void setTextValue (const string &text)
 Sets the string value of a text.
double angle () const
 Returns the text inclination.
void setAngle (double angle)
 Sets the text inclination.
double height () const
 Returns the text height.
void setHeight (double height)
 Sets the text height.
double alignmentVert () const
 Returns the text vertical alignment.
void setAlignmentVert (double alig)
 Sets the text vertical alignment.
double alignmentHoriz () const
 Returns the text horizontal alignment.
void setAlignmentHoriz (double alig)
 Sets the text horizontal alignment.
TeGeomRep elemType () const
 Returns the basic geometry in a set of geometries structure.

Detailed Description

TeText : A class for handling text.


Constructor & Destructor Documentation

TeText::TeText ( const string txt = "") [inline]

Default contructor.

Parameters:
txtthe string of character that form the text (default is an empty string)
TeText::TeText ( TeCoord2D location,
const string txt = "" 
) [inline]

Constructor.

Parameters:
locationbasic position of the text
txtthe string of character that form the text (default is an empty string)
TeText::TeText ( const TeText other) [inline]

Copy constructor.


Member Function Documentation

double TeText::alignmentHoriz ( ) const [inline]

Returns the text horizontal alignment.

double TeText::alignmentVert ( ) const [inline]

Returns the text vertical alignment.

double TeText::angle ( ) const [inline]

Returns the text inclination.

TeGeomRep TeText::elemType ( ) const [inline, virtual]

Returns the basic geometry in a set of geometries structure.

Reimplemented from TeGeometry.

double TeText::height ( ) const [inline]

Returns the text height.

TeText& TeText::operator= ( const TeText other) [inline]

Operator =.

bool TeText::operator== ( const TeText tx) const [inline]

Returns TRUE if a text is equal to other.

void TeText::setAlignmentHoriz ( double  alig) [inline]

Sets the text horizontal alignment.

void TeText::setAlignmentVert ( double  alig) [inline]

Sets the text vertical alignment.

void TeText::setAngle ( double  angle) [inline]

Sets the text inclination.

void TeText::setHeight ( double  height) [inline]

Sets the text height.

void TeText::setLocation ( const TeCoord2D l) [inline]

Sets anew value for the location of the text.

void TeText::setTextValue ( const string text) [inline]

Sets the string value of a text.

string TeText::textValue ( ) const [inline]

Returns the string value of a text.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines