te::at::Text Class Reference

A Text may contain 1 or more Text Elements. More...

#include <Text.h>

Public Member Functions

void add (Element *element)
 It adds the element. More...
 
Textclone ()
 It clones the Text. More...
 
const std::vector< Element * > & getElements () const
 It returns the elements. More...
 
const te::gm::EnvelopegetEnvelope ()
 It returns the envelope. More...
 
void setElements (const std::vector< Element * > elements)
 It sets the elements. More...
 
void setEnvelope (const te::gm::Envelope &envelope)
 It sets the envelope. More...
 
 Text ()
 Text constructor. More...
 
 ~Text ()
 Text destructor. More...
 

Not Allowed Methods

No copy allowed.

te::gm::Envelope m_envelope
 
std::vector< Element * > m_elements
 
 Text (const Text &rhs)
 No copy constructor allowed. More...
 
Textoperator= (const Text &rhs)
 No assignment operator allowed. More...
 

Detailed Description

A Text may contain 1 or more Text Elements.

Definition at line 51 of file Text.h.

Constructor & Destructor Documentation

te::at::Text::Text ( )

Text constructor.

te::at::Text::~Text ( )

Text destructor.

te::at::Text::Text ( const Text rhs)
private

No copy constructor allowed.

Parameters
rhsThe other Text.

Member Function Documentation

void te::at::Text::add ( Element element)

It adds the element.

Parameters
elementThe element to be added.
Note
The Text will become owner of the element.
Text* te::at::Text::clone ( )

It clones the Text.

Returns
A copy of the given Text.
Note
The caller of this method will take the ownership of the returned Text.
const std::vector<Element*>& te::at::Text::getElements ( ) const

It returns the elements.

Returns
The elements.
const te::gm::Envelope& te::at::Text::getEnvelope ( )

It returns the envelope.

Returns
The envelope.
Text& te::at::Text::operator= ( const Text rhs)
private

No assignment operator allowed.

Parameters
rhsThe other Text.
Returns
A reference for this.
void te::at::Text::setElements ( const std::vector< Element * >  elements)

It sets the elements.

Parameters
envelopeThe envelope.
Note
The Text will become owner of elements.
void te::at::Text::setEnvelope ( const te::gm::Envelope envelope)

It sets the envelope.

Parameters
envelopeThe envelope.

Member Data Documentation

std::vector<Element*> te::at::Text::m_elements
private

Definition at line 135 of file Text.h.

te::gm::Envelope te::at::Text::m_envelope
private

Definition at line 134 of file Text.h.


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