29 #include "../common/STLUtils.h"
64 m_envelope = envelope;
77 m_elements = elements;
82 m_elements.push_back(element);
const te::gm::Envelope & getEnvelope()
It returns the envelope.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
An Text Element consists of a string, location, leader line and may have attribute.
te::gm::Envelope m_envelope
void setEnvelope(const te::gm::Envelope &envelope)
It sets the envelope.
Text * clone()
It clones the Text.
A Text may contain 1 or more Text Elements.
void add(Element *element)
It adds the element.
Text & operator=(const Text &rhs)
No assignment operator allowed.
void setElements(const std::vector< Element * > elements)
It sets the elements.
An Text Element consists of a string, location, leader line and may have attribute.
std::vector< Element * > m_elements
An Envelope defines a 2D rectangular region.
const std::vector< Element * > & getElements() const
It returns the elements.