27 #include "../common/STLUtils.h" 28 #include "../dataaccess/dataset/ObjectId.h" 29 #include "../datatype/AbstractData.h" 30 #include "../geometry/Geometry.h" 40 m_colorChanged(false),
41 m_currentOperationType(
SELECT),
194 std::map<std::size_t, te::dt::AbstractData*> data;
195 for(std::map<std::size_t, te::dt::AbstractData*>::const_iterator it =
m_data.begin(); it !=
m_data.end(); ++it)
197 if(it->second != NULL)
198 data[it->first] = it->second->clone();
void setId(te::da::ObjectId *id)
#define TE_EDIT_FEATURE_FILL_COLOR
TEEDITEXPORT te::da::ObjectId * GenerateId()
te::gm::Geometry * m_geom
te::color::RGBAColor getFillColor() const
te::da::ObjectId * getId() const
te::gm::Geometry * getGeometry() const
void setFillColor(const te::color::RGBAColor &fillColor)
std::map< std::size_t, te::dt::AbstractData * > m_data
void set(te::da::ObjectId *id, te::gm::Geometry *geom)
This class represents a geographic feature.
te::edit::OperationType getOperationTypeId() const
te::color::RGBAColor m_fillColor
te::color::RGBAColor getContourColor() const
void setOperationTypeId(const te::edit::OperationType ¤tOperationType)
te::edit::OperationType m_currentOperationType
This class represents an unique id for a data set element.
bool isEquals(te::da::ObjectId *id)
std::string getValueAsString() const
It gets the properties values used to uniquely identify a data set element as string.
virtual AbstractData * clone() const =0
It returns a clone of this object.
void setData(const std::map< std::size_t, te::dt::AbstractData * > &data)
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
#define TE_EDIT_FEATURE_CONTOUR_COLOR
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
void setGeometry(te::gm::Geometry *geom)
void setContourColor(const te::color::RGBAColor &contourColor)
te::color::RGBAColor m_contourColor
void setEditable(const bool &editable)
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...
const std::map< std::size_t, te::dt::AbstractData * > & getData() const