A ROISet is a set of ROI's. More...
#include <ROISet.h>
Public Member Functions | |
| void | addROI (te::cl::ROI *roi) | 
| Add a new ROI to this set.  More... | |
| void | exportToFile (std::string fileName, int srid) | 
| Export the ROISet to a shapefile.  More... | |
| te::cl::ROI * | getROI (std::string label) | 
| Gets a ROI from this set.  More... | |
| std::map< std::string,  te::cl::ROI * > &  | getROISet () | 
| Get the roi set map.  More... | |
| void | removeROI (std::string label) | 
| Removes a ROI from this set.  More... | |
| ROISet () | |
| Default constructor.  More... | |
| virtual | ~ROISet () | 
| Virtual destructor.  More... | |
Static Public Member Functions | |
| static te::cl::ROISet * | createROISet (std::auto_ptr< te::da::DataSet > ds) | 
| Imports the ROISet from a dataset.  More... | |
Protected Member Functions | |
| std::auto_ptr< te::da::DataSet > | getDataSet () | 
| Creates a dataset that with the roi set information.  More... | |
| std::auto_ptr < te::da::DataSetType >  | getDataSetType () | 
| Creates a dataset type that defines a roi.  More... | |
Private Attributes | |
| std::map< std::string,  te::cl::ROI * >  | m_roiMap | 
| The map of ROI's.  More... | |
| te::cl::ROISet::ROISet | ( | ) | 
Default constructor.
Definition at line 46 of file ROISet.cpp.
      
  | 
  virtual | 
Virtual destructor.
Definition at line 50 of file ROISet.cpp.
References te::common::FreeContents().
| void te::cl::ROISet::addROI | ( | te::cl::ROI * | roi | ) | 
Add a new ROI to this set.
| roi | A pointer to a ROI object. | 
Definition at line 66 of file ROISet.cpp.
References te::cl::ROI::getLabel().
Referenced by createROISet().
      
  | 
  static | 
Imports the ROISet from a dataset.
| ds | The dataset with the ROISet information | 
Definition at line 126 of file ROISet.cpp.
References te::cl::ROI::addPolygon(), addROI(), te::gm::GeometryCollection::getGeometries(), getROI(), te::cl::ROI::setColor(), TE_CL_ROI_COLOR_NAME, TE_CL_ROI_GEOM_ID_NAME, and TE_CL_ROI_LABEL_NAME.
Referenced by te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked().
| void te::cl::ROISet::exportToFile | ( | std::string | fileName, | 
| int | srid | ||
| ) | 
Export the ROISet to a shapefile.
| fileName | The file name path. | 
| srid | The spatial reference system used to export the ROI's. | 
Definition at line 84 of file ROISet.cpp.
References te::da::CreateAdapter(), te::da::DataSetTypeConverter::getResult(), and te::da::DataSourceFactory::make().
      
  | 
  protected | 
Creates a dataset that with the roi set information.
Definition at line 199 of file ROISet.cpp.
References te::gm::Polygon::clone(), te::cl::ROI::getColor(), te::cl::ROI::getLabel(), te::cl::ROI::getPolygons(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setString(), TE_CL_ROI_COLOR_NAME, TE_CL_ROI_GEOM_ID_NAME, TE_CL_ROI_GEOM_NAME, and TE_CL_ROI_LABEL_NAME.
      
  | 
  protected | 
Creates a dataset type that defines a roi.
Definition at line 175 of file ROISet.cpp.
References te::da::PrimaryKey::add(), te::da::DataSetType::add(), TE_CL_ROI_COLOR_NAME, TE_CL_ROI_GEOM_ID_NAME, TE_CL_ROI_GEOM_NAME, TE_CL_ROI_LABEL_NAME, and TE_CL_ROI_PK_NAME.
| te::cl::ROI * te::cl::ROISet::getROI | ( | std::string | label | ) | 
Gets a ROI from this set.
| label | The label of the ROI to be selected. | 
Definition at line 56 of file ROISet.cpp.
Referenced by createROISet().
| std::map< std::string, te::cl::ROI * > & te::cl::ROISet::getROISet | ( | ) | 
Get the roi set map.
Definition at line 79 of file ROISet.cpp.
Referenced by te::qt::widgets::ClassifierWizardPage::getMAPSamples(), te::qt::widgets::ClassifierWizardPage::getSAMSamples(), and te::qt::widgets::ClassifierWizardPage::onRoiSetChanged().
| void te::cl::ROISet::removeROI | ( | std::string | label | ) | 
Removes a ROI from this set.
| label | The label of the ROI to be removed. | 
Definition at line 71 of file ROISet.cpp.
      
  | 
  private |