te::at::Element Class Reference

#include <Element.h>

Public Member Functions

Elementclone () const
 It clones the Element. More...
 
 Element ()
 Text Element constructor. More...
 
 Element (const std::string &value, te::gm::Geometry *location=0, te::gm::Geometry *leaderLine=0)
 Text Element constructor. More...
 
const AttributesgetAttributes () const
 it returns the text attributes. More...
 
const te::gm::GeometrygetLeaderLine () const
 it returns the text leader line. More...
 
const te::gm::GeometrygetLocation () const
 it returns the text location. More...
 
const std::string & getValue () const
 it returns the text string. More...
 
void setAttributes (Attributes *attribute)
 it sets the text attributes. More...
 
void setLeaderLine (te::gm::Geometry *leaderLine)
 it sets the text leader line. More...
 
void setLocation (te::gm::Geometry *location)
 it sets the text location. More...
 
void setValue (const std::string &value)
 it sets the text string. More...
 
 ~Element ()
 Text Element destructor. More...
 

Not Allowed Methods

No copy allowed.

std::string m_value
 text value More...
 
te::gm::Geometrym_location
 location More...
 
te::gm::Geometrym_leaderLine
 leader line More...
 
Attributesm_attribute
 attributes More...
 
 Element (const Element &rhs)
 No copy constructor allowed. More...
 
Elementoperator= (const Element &rhs)
 No assignment operator allowed. More...
 

Detailed Description

Definition at line 55 of file Element.h.

Constructor & Destructor Documentation

te::at::Element::Element ( )

Text Element constructor.

te::at::Element::Element ( const std::string &  value,
te::gm::Geometry location = 0,
te::gm::Geometry leaderLine = 0 
)

Text Element constructor.

Parameters
valueThe string value.
locationThe Text entry point in world coordinates.
leaderLineThe Text leader line in world coordinates.
Note
The Element will become owner of location and leaderLine pointers.
te::at::Element::~Element ( )

Text Element destructor.

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

No copy constructor allowed.

Parameters
rhsThe other element.

Member Function Documentation

Element* te::at::Element::clone ( ) const

It clones the Element.

Returns
A copy of the given Element.
Note
The caller of this method will take the ownership of the returned Element.
const Attributes* te::at::Element::getAttributes ( ) const

it returns the text attributes.

The text attributes.

const te::gm::Geometry* te::at::Element::getLeaderLine ( ) const

it returns the text leader line.

Returns
The text leader line.
const te::gm::Geometry* te::at::Element::getLocation ( ) const

it returns the text location.

Returns
The text location.
const std::string& te::at::Element::getValue ( ) const

it returns the text string.

Returns
The text string.
Element& te::at::Element::operator= ( const Element rhs)
private

No assignment operator allowed.

Parameters
rhsThe other element.
Returns
A reference for this.
void te::at::Element::setAttributes ( Attributes attribute)

it sets the text attributes.

Parameters
attThe text attributes.
Note
The Element will become owner of attribute pointer.
void te::at::Element::setLeaderLine ( te::gm::Geometry leaderLine)

it sets the text leader line.

Parameters
leaderLineThe text leader line.
Note
The Element will become owner of leaderLine pointer.
void te::at::Element::setLocation ( te::gm::Geometry location)

it sets the text location.

Parameters
locationThe text location.
Note
The Element will become owner of location pointer.
void te::at::Element::setValue ( const std::string &  value)

it sets the text string.

Parameters
valueThe text string.

Member Data Documentation

Attributes* te::at::Element::m_attribute
private

attributes

Definition at line 176 of file Element.h.

te::gm::Geometry* te::at::Element::m_leaderLine
private

leader line

Definition at line 175 of file Element.h.

te::gm::Geometry* te::at::Element::m_location
private

location

Definition at line 174 of file Element.h.

std::string te::at::Element::m_value
private

text value

Definition at line 173 of file Element.h.


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