te::edit::Feature Class Reference

#include <Feature.h>

Public Member Functions

Featureclone () const
 
 Feature ()
 
 Feature (te::da::ObjectId *id)
 
 Feature (te::da::ObjectId *id, te::gm::Geometry *geom)
 
te::color::RGBAColor getContourColor () const
 
const std::map< std::size_t, te::dt::AbstractData * > & getData () const
 
te::color::RGBAColor getFillColor () const
 
te::gm::GeometrygetGeometry () const
 
te::da::ObjectIdgetId () const
 
te::edit::OperationType getOperationTypeId () const
 
bool hasColorChanged ()
 
bool isEditable () const
 
bool isEquals (te::da::ObjectId *id)
 
void set (te::da::ObjectId *id, te::gm::Geometry *geom)
 
void setContourColor (const te::color::RGBAColor &contourColor)
 
void setData (const std::map< std::size_t, te::dt::AbstractData * > &data)
 
void setEditable (const bool &editable)
 
void setFillColor (const te::color::RGBAColor &fillColor)
 
void setGeometry (te::gm::Geometry *geom)
 
void setId (te::da::ObjectId *id)
 
void setOperationTypeId (const te::edit::OperationType &currentOperationType)
 
 ~Feature ()
 

Private Attributes

bool m_colorChanged
 
te::color::RGBAColor m_contourColor
 
te::edit::OperationType m_currentOperationType
 
std::map< std::size_t, te::dt::AbstractData * > m_data
 
te::color::RGBAColor m_fillColor
 
te::gm::Geometrym_geom
 
te::da::ObjectIdm_id
 
bool m_isEditable
 

Detailed Description

Definition at line 57 of file Feature.h.

Constructor & Destructor Documentation

te::edit::Feature::Feature ( )

Definition at line 36 of file Feature.cpp.

References te::edit::GenerateId(), and m_id.

Referenced by clone().

te::edit::Feature::Feature ( te::da::ObjectId id)

Definition at line 47 of file Feature.cpp.

References m_id.

te::edit::Feature::Feature ( te::da::ObjectId id,
te::gm::Geometry geom 
)

Definition at line 59 of file Feature.cpp.

References m_geom, and m_id.

te::edit::Feature::~Feature ( )

Definition at line 72 of file Feature.cpp.

References te::common::FreeContents(), m_data, m_geom, and m_id.

Member Function Documentation

te::color::RGBAColor te::edit::Feature::getContourColor ( ) const

Definition at line 154 of file Feature.cpp.

References m_contourColor.

Referenced by te::edit::Renderer::prepare().

const std::map< std::size_t, te::dt::AbstractData * > & te::edit::Feature::getData ( ) const

Definition at line 144 of file Feature.cpp.

References m_data.

Referenced by te::edit::EditInfoTool::getInfo(), and te::edit::EditInfoTool::mousePressEvent().

te::color::RGBAColor te::edit::Feature::getFillColor ( ) const

Definition at line 149 of file Feature.cpp.

References m_fillColor.

Referenced by te::edit::Renderer::prepare().

bool te::edit::Feature::hasColorChanged ( )

Definition at line 164 of file Feature.cpp.

References m_colorChanged.

Referenced by te::edit::Renderer::prepare().

bool te::edit::Feature::isEditable ( ) const

Definition at line 177 of file Feature.cpp.

References m_isEditable.

bool te::edit::Feature::isEquals ( te::da::ObjectId id)

Definition at line 169 of file Feature.cpp.

References te::da::ObjectId::getValueAsString(), and m_id.

void te::edit::Feature::set ( te::da::ObjectId id,
te::gm::Geometry geom 
)

Definition at line 81 of file Feature.cpp.

References setGeometry(), and setId().

void te::edit::Feature::setContourColor ( const te::color::RGBAColor contourColor)

Definition at line 117 of file Feature.cpp.

References m_colorChanged, and m_contourColor.

Referenced by clone().

void te::edit::Feature::setData ( const std::map< std::size_t, te::dt::AbstractData * > &  data)
void te::edit::Feature::setEditable ( const bool editable)

Definition at line 129 of file Feature.cpp.

References m_isEditable.

Referenced by clone().

void te::edit::Feature::setFillColor ( const te::color::RGBAColor fillColor)

Definition at line 110 of file Feature.cpp.

References m_colorChanged, and m_fillColor.

Referenced by clone().

void te::edit::Feature::setId ( te::da::ObjectId id)

Member Data Documentation

bool te::edit::Feature::m_colorChanged
private

Definition at line 113 of file Feature.h.

Referenced by clone(), hasColorChanged(), setContourColor(), and setFillColor().

te::color::RGBAColor te::edit::Feature::m_contourColor
private

Definition at line 112 of file Feature.h.

Referenced by clone(), getContourColor(), and setContourColor().

te::edit::OperationType te::edit::Feature::m_currentOperationType
private

Definition at line 115 of file Feature.h.

Referenced by clone(), getOperationTypeId(), and setOperationTypeId().

std::map<std::size_t, te::dt::AbstractData*> te::edit::Feature::m_data
private

Definition at line 109 of file Feature.h.

Referenced by clone(), getData(), setData(), and ~Feature().

te::color::RGBAColor te::edit::Feature::m_fillColor
private

Definition at line 111 of file Feature.h.

Referenced by clone(), getFillColor(), and setFillColor().

te::gm::Geometry* te::edit::Feature::m_geom
private

Definition at line 108 of file Feature.h.

Referenced by clone(), Feature(), getGeometry(), setGeometry(), and ~Feature().

te::da::ObjectId* te::edit::Feature::m_id
private

Definition at line 107 of file Feature.h.

Referenced by clone(), Feature(), getId(), isEquals(), setId(), and ~Feature().

bool te::edit::Feature::m_isEditable
private

Definition at line 116 of file Feature.h.

Referenced by clone(), isEditable(), and setEditable().


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