28 #include "../common/STLUtils.h"
29 #include "../geometry/Polygon.h"
74 std::map<std::string, te::gm::Polygon*>::iterator it = m_roiMap.find(
id);
76 if(it != m_roiMap.end())
void setLabel(std::string label)
Set the ROI label.
void addPolygon(te::gm::Polygon *p, std::string id)
Add a new region into this ROI.
ROI(std::string label)
Default constructor.
virtual ~ROI()
Virtual destructor.
void setColor(std::string color)
Set the ROI color using the hexadecimal color name.
void removePolygon(std::string id)
Removes a region from this ROI.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
std::string getLabel()
Get the ROI label.
A region of interest (often abbreviated ROI), is a selected subset of samples within a dataset identi...
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...
std::map< std::string, te::gm::Polygon * > & getPolygons()
Get all polygons belongs to this roi.
std::string getColor()
Get the ROI color defined by a hexadecimal color name.