27#ifndef __TERRALIB_CLASSIFICATION_INTERNAL_ROI_H
28#define __TERRALIB_CLASSIFICATION_INTERNAL_ROI_H
65 ROI(std::string label);
void addPolygon(te::gm::Polygon *p, std::string id)
Add a new region into this ROI.
std::string getColor()
Get the ROI color defined by a hexadecimal color name.
std::string m_label
ROI label.
std::map< std::string, te::gm::Polygon * > & getPolygons()
Get all polygons belongs to this roi.
std::map< std::string, te::gm::Polygon * > m_roiMap
The map of acquired regions.
virtual ~ROI()
Virtual destructor.
void setColor(std::string color)
Set the ROI color using the hexadecimal color name.
ROI(std::string label)
Default constructor.
std::string m_color
The hexa color associated with this ROI.
void setLabel(std::string label)
Set the ROI label.
void removePolygon(std::string id)
Removes a region from this ROI.
std::string getLabel()
Get the ROI label.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
Namespace for classification module of TerraLib.
Namespace for the Color Model of TerraLib.
Namespace for the Vector Geometry module of TerraLib.
Configuration flags for the Terrralib Classification module.
#define TECLEXPORT
You can use this macro in order to export/import classes and functions from this module.