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.

Definition at line 31 of file Text.cpp.

Referenced by clone().

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

Text destructor.

Definition at line 48 of file Text.cpp.

References te::common::FreeContents(), and m_elements.

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

No copy constructor allowed.

Parameters
rhsThe other Text.

Definition at line 35 of file Text.cpp.

References m_elements, and m_envelope.

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.

Definition at line 80 of file Text.cpp.

References m_elements.

Referenced by TsCanvas::tcPerformance().

te::at::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.

Definition at line 54 of file Text.cpp.

References m_elements, m_envelope, setElements(), setEnvelope(), and Text().

const std::vector< te::at::Element * > & te::at::Text::getElements ( ) const

It returns the elements.

Returns
The elements.

Definition at line 85 of file Text.cpp.

References m_elements.

Referenced by te::ag::Canvas::draw().

const te::gm::Envelope & te::at::Text::getEnvelope ( )

It returns the envelope.

Returns
The envelope.

Definition at line 67 of file Text.cpp.

References m_envelope.

te::at::Text & te::at::Text::operator= ( const Text rhs)
private

No assignment operator allowed.

Parameters
rhsThe other Text.
Returns
A reference for this.

Definition at line 41 of file Text.cpp.

References m_elements, and m_envelope.

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.

Definition at line 72 of file Text.cpp.

References te::common::FreeContents(), and m_elements.

Referenced by clone().

void te::at::Text::setEnvelope ( const te::gm::Envelope envelope)

It sets the envelope.

Parameters
envelopeThe envelope.

Definition at line 62 of file Text.cpp.

References m_envelope.

Referenced by clone().

Member Data Documentation

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

Definition at line 135 of file Text.h.

Referenced by add(), clone(), getElements(), operator=(), setElements(), Text(), and ~Text().

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

Definition at line 134 of file Text.h.

Referenced by clone(), getEnvelope(), operator=(), setEnvelope(), and Text().


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