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" 35 #include "../../../qt/widgets/rp/RpToolsWidget.h" 36 #include "../se/PolygonSymbolizerWidget.h" 45 namespace Ui {
class CloudDetectionDialogForm; }
50 namespace da {
class DataSetType; }
51 namespace gm {
class Envelope; }
52 namespace mem {
class DataSet; }
60 class RasterHistogramWidget;
77 void setLayers(std::list<te::map::AbstractLayerPtr> layers);
81 void setActionGroup(QActionGroup* actionGroup);
83 void setUserPath(std::string path);
87 void onCloudLayerComboBoxActivated(
int index);
89 void onShadowLayerComboBoxActivated(
int index);
91 void onCloudBandComboBoxActivated(
int index);
93 void onShadowBandComboBoxActivated(
int index);
95 void onSearchCloudLayerToolButtonClicked();
97 void onSearchShadowLayerToolButtonClicked();
99 void onUpToolButtonClicked();
101 void onDownToolButtonClicked();
103 void onPreviewCheckBoxToggled(
bool isChecked);
105 void onCellClicked(
int row,
int column);
107 void onCellDoubleClicked(
int row,
int column);
109 void onCellChanged(
int row,
int column);
111 void onFilterCellClicked(
int row,
int column);
113 void onFilterCellDoubleClicked(
int row,
int column);
115 void onFilterCellChanged(
int row,
int column);
117 void onTargetDatasourceToolButtonClicked();
119 void onTargetFileToolButtonClicked();
123 void onMapDisplayExtentChanged();
125 void onOkPushButtonClicked();
127 void onStyleToolButtonClicked();
139 bool vectorize(
te::rst::Raster* raster, std::vector<te::gm::Geometry*>& geomVec, std::vector< double >& geomsValues);
141 void setCloudBands();
143 void setShadowBands();
145 void setCloudMinMax();
147 void setShadowMinMax();
149 void drawHistogram();
155 void getRasterFromROI();
162 std::unique_ptr<te::da::DataSetType> createDataSetType(std::string dataSetName,
int srid);
165 std::unique_ptr<te::mem::DataSet> createDataSet(
te::da::DataSetType* dsType, std::vector<te::gm::Geometry*>& geoms, std::vector< double >& geomsValues);
172 void closeEvent(QCloseEvent* e);
176 std::unique_ptr<Ui::CloudDetectionDialogForm>
m_ui;
192 std::unique_ptr<te::gm::Geometry>
m_geom;
212 #endif // __TERRALIB_QT_PLUGINS_RP_INTERNAL_CLOUDDETECTIONDIALOG_H
boost::shared_ptr< DataSource > DataSourcePtr
A class that models the description of a dataset.
A Symbolizer describes how a feature is to appear on a map.
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.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr