26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_CLOUDDETECTIONDIALOG_H
27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_CLOUDDETECTIONDIALOG_H
30 #include "../Config.h"
32 #include "../../../dataaccess/datasource/DataSource.h"
33 #include "../../../dataaccess/datasource/DataSourceInfo.h"
34 #include "../../../maptools/AbstractLayer.h"
43 namespace Ui {
class CloudDetectionDialogForm; }
48 namespace da {
class DataSetType; }
49 namespace gm {
class Envelope; }
50 namespace mem {
class DataSet; }
58 class RasterHistogramWidget;
75 void setLayers(std::list<te::map::AbstractLayerPtr> layers);
82 void onCloudLayerComboBoxActivated(
int index);
84 void onShadowLayerComboBoxActivated(
int index);
86 void onCloudBandComboBoxActivated(
int index);
88 void onShadowBandComboBoxActivated(
int index);
90 void onSearchCloudLayerToolButtonClicked();
92 void onSearchShadowLayerToolButtonClicked();
94 void onUpToolButtonClicked();
96 void onDownToolButtonClicked();
98 void onPreviewCheckBoxToggled(
bool isChecked);
100 void onNewROIPushButtonClicked();
102 void onCellClicked(
int row,
int column);
104 void onCellDoubleClicked(
int row,
int column);
106 void onCellChanged(
int row,
int column);
108 void onFilterCellClicked(
int row,
int column);
110 void onFilterCellDoubleClicked(
int row,
int column);
112 void onFilterCellChanged(
int row,
int column);
114 void onTargetDatasourceToolButtonClicked();
116 void onTargetFileToolButtonClicked();
120 void onOkPushButtonClicked();
132 bool vectorize(
te::rst::Raster* raster, std::vector<te::gm::Geometry*>& geomVec, std::vector< double >& geomsValues);
134 void setCloudBands();
136 void setShadowBands();
138 void setCloudMinMax();
140 void setShadowMinMax();
142 void drawHistogram();
146 void getRasterFromROI();
149 std::auto_ptr<te::da::DataSetType> createDataSetType(std::string dataSetName,
int srid);
152 std::auto_ptr<te::mem::DataSet> createDataSet(
te::da::DataSetType* dsType, std::vector<te::gm::Geometry*>& geoms, std::vector< double >& geomsValues);
157 void closeEvent(QCloseEvent* e);
164 std::auto_ptr<Ui::CloudDetectionDialogForm>
m_ui;
190 #endif // __TERRALIB_QT_PLUGINS_RP_INTERNAL_CLOUDDETECTIONDIALOG_H
boost::shared_ptr< DataSource > DataSourcePtr
A class that models the description of a dataset.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver...
An Envelope defines a 2D rectangular region.
An abstract class for raster data strucutures.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr