All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 31 of file Element.cpp.

References m_attribute, m_leaderLine, m_location, and m_value.

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.

Definition at line 39 of file Element.cpp.

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

Text Element destructor.

Definition at line 47 of file Element.cpp.

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

No copy constructor allowed.

Parameters
rhsThe other element.

Member Function Documentation

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

Definition at line 54 of file Element.cpp.

References setAttributes(), setLeaderLine(), setLocation(), and setValue().

const te::at::Attributes * te::at::Element::getAttributes ( ) const

it returns the text attributes.

The text attributes.

Definition at line 102 of file Element.cpp.

Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().

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

it returns the text leader line.

Returns
The text leader line.

Definition at line 91 of file Element.cpp.

Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().

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

it returns the text location.

Returns
The text location.

Definition at line 80 of file Element.cpp.

Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().

const std::string & te::at::Element::getValue ( ) const

it returns the text string.

Returns
The text string.

Definition at line 69 of file Element.cpp.

Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().

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.

Definition at line 96 of file Element.cpp.

Referenced by clone().

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.

Definition at line 85 of file Element.cpp.

Referenced by clone().

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.

Definition at line 74 of file Element.cpp.

Referenced by clone().

void te::at::Element::setValue ( const std::string &  value)

it sets the text string.

Parameters
valueThe text string.

Definition at line 64 of file Element.cpp.

Referenced by clone().

Member Data Documentation

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

attributes

Definition at line 176 of file Element.h.

Referenced by Element().

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

leader line

Definition at line 175 of file Element.h.

Referenced by Element().

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

location

Definition at line 174 of file Element.h.

Referenced by Element().

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

text value

Definition at line 173 of file Element.h.

Referenced by Element().


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