.... More...
#include <CloudDetectionDialog.h>
Signals | |
| void | addLayer (te::map::AbstractLayerPtr layer) |
| void | closeTool () |
Public Member Functions | |
| CloudDetectionDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setActionGroup (QActionGroup *actionGroup) |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| void | setMapDisplay (te::qt::widgets::MapDisplay *mapDisplay) |
| void | setUserPath (std::string path) |
| ~CloudDetectionDialog () | |
Protected Slots | |
| void | onCellChanged (int row, int column) |
| void | onCellClicked (int row, int column) |
| void | onCellDoubleClicked (int row, int column) |
| void | onCloudBandComboBoxActivated (int index) |
| void | onCloudLayerComboBoxActivated (int index) |
| void | onDownToolButtonClicked () |
| void | onEnvelopeAcquired (te::gm::Envelope env) |
| void | onFilterCellChanged (int row, int column) |
| void | onFilterCellClicked (int row, int column) |
| void | onFilterCellDoubleClicked (int row, int column) |
| void | onMapDisplayExtentChanged () |
| void | onOkPushButtonClicked () |
| void | onPreviewCheckBoxToggled (bool isChecked) |
| void | onSearchCloudLayerToolButtonClicked () |
| void | onSearchShadowLayerToolButtonClicked () |
| void | onShadowBandComboBoxActivated (int index) |
| void | onShadowLayerComboBoxActivated (int index) |
| void | onStyleToolButtonClicked () |
| void | onTargetDatasourceToolButtonClicked () |
| void | onTargetFileToolButtonClicked () |
| void | onUpToolButtonClicked () |
Protected Member Functions | |
| void | applyPreview () |
| void | clearCanvas () |
| void | closeEvent (QCloseEvent *e) |
| std::unique_ptr< te::mem::DataSet > | createDataSet (te::da::DataSetType *dsType, std::vector< te::gm::Geometry * > &geoms, std::vector< double > &geomsValues) |
| std::unique_ptr< te::da::DataSetType > | createDataSetType (std::string dataSetName, int srid) |
| void | drawGeom () |
| void | drawHistogram () |
| bool | execute () |
| void | getRasterFromROI () |
| void | readStyle () |
| void | saveDataSet (te::mem::DataSet *dataSet, te::da::DataSetType *dsType, te::da::DataSourcePtr ds, std::string dataSetName) |
| void | setCloudBands () |
| void | setCloudMinMax () |
| void | setShadowBands () |
| void | setShadowMinMax () |
| bool | vectorize (te::rst::Raster *raster, std::vector< te::gm::Geometry * > &geomVec, std::vector< double > &geomsValues) |
| void | writeStyle () |
....
Definition at line 67 of file CloudDetectionDialog.h.
| te::qt::widgets::CloudDetectionDialog::CloudDetectionDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| te::qt::widgets::CloudDetectionDialog::~CloudDetectionDialog | ( | ) |
Definition at line 164 of file CloudDetectionDialog.cpp.
References writeStyle().
|
signal |
Referenced by execute().
|
protected |
Definition at line 1087 of file CloudDetectionDialog.cpp.
References te::map::CanvasConfigurer::config(), te::common::Convert2LCase(), te::qt::widgets::Canvas::draw(), drawGeom(), te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::map::MapDisplay::getSRID(), m_cloudRasterPreview, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_polygonSymbolizerWidget, m_shadowRasterPreview, m_symbolizer, m_ui, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::Canvas::setDevice(), te::qt::widgets::Canvas::setPolygonContourColor(), te::qt::widgets::Canvas::setPolygonContourWidth(), te::qt::widgets::Canvas::setWindow(), TE_OPAQUE, vectorize(), and te::common::Exception::what().
Referenced by getRasterFromROI(), and onMapDisplayExtentChanged().
|
protected |
Definition at line 1374 of file CloudDetectionDialog.cpp.
References te::qt::widgets::Canvas::clear(), te::qt::widgets::MapDisplay::getDraftPixmap(), and m_mapDisplay.
Referenced by closeEvent(), and onOkPushButtonClicked().
|
protected |
Definition at line 1383 of file CloudDetectionDialog.cpp.
References clearCanvas(), and closeTool().
|
signal |
Referenced by closeEvent(), and onOkPushButtonClicked().
|
protected |
Function used to create the output data
Definition at line 1339 of file CloudDetectionDialog.cpp.
References ds, te::mem::DataSetItem::setGeometry(), and te::mem::DataSetItem::setInt32().
Referenced by execute().
|
protected |
Function used to create the output dataset type
Definition at line 1317 of file CloudDetectionDialog.cpp.
References te::da::PrimaryKey::add(), te::dt::INT32_TYPE, and te::gm::PolygonType.
Referenced by execute().
|
protected |
Definition at line 1223 of file CloudDetectionDialog.cpp.
References te::qt::widgets::Canvas::draw(), te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), m_geom, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::qt::widgets::Canvas::setDevice(), te::qt::widgets::Canvas::setPolygonContourColor(), te::qt::widgets::Canvas::setPolygonContourWidth(), te::qt::widgets::Canvas::setWindow(), and TE_OPAQUE.
Referenced by applyPreview(), onEnvelopeAcquired(), and onMapDisplayExtentChanged().
|
protected |
Definition at line 1058 of file CloudDetectionDialog.cpp.
References m_histogramWidget, and m_ui.
Referenced by onCellClicked(), onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onShadowBandComboBoxActivated(), and onShadowLayerComboBoxActivated().
|
protected |
Definition at line 785 of file CloudDetectionDialog.cpp.
References addLayer(), te::common::Convert2LCase(), createDataSet(), createDataSetType(), ds, dt, te::da::GetDataSource(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::map::GetRaster(), te::rst::Raster::getSRID(), m_cloudLayer, m_outputLayer, m_shadowLayer, m_ui, saveDataSet(), vectorize(), and te::common::Exception::what().
Referenced by onOkPushButtonClicked().
|
protected |
Definition at line 1244 of file CloudDetectionDialog.cpp.
References applyPreview(), te::da::GetFirstRasterProperty(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::dt::Property::getName(), te::map::MapDisplay::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), m_cloudLayer, m_cloudRasterPreview, m_geom, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_shadowLayer, m_shadowRasterPreview, m_ui, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::gm::PolygonType, and TE_UNKNOWN_SRS.
Referenced by onEnvelopeAcquired().
Definition at line 549 of file CloudDetectionDialog.cpp.
References m_lastText, and m_ui.
Definition at line 528 of file CloudDetectionDialog.cpp.
References drawHistogram(), m_cloudRaster, m_histogramWidget, m_lastSelectedRow, and m_shadowRaster.
Referenced by setLayers().
|
protectedslot |
Definition at line 544 of file CloudDetectionDialog.cpp.
References m_lastText, and m_ui.
|
protectedslot |
Definition at line 313 of file CloudDetectionDialog.cpp.
References drawHistogram(), te::common::Singleton< RasterSummaryManager >::getInstance(), m_cloudMaxValue, m_cloudMinValue, m_cloudRaster, m_histogramWidget, m_lastSelectedRow, m_shadowRaster, m_ui, setCloudMinMax(), te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
|
protectedslot |
Definition at line 257 of file CloudDetectionDialog.cpp.
References drawHistogram(), m_cloudLayer, m_cloudRaster, m_histogramWidget, m_lastSelectedRow, m_layers, m_shadowRaster, m_ui, setCloudBands(), and setCloudMinMax().
|
protectedslot |
Definition at line 458 of file CloudDetectionDialog.cpp.
References m_ui.
|
protectedslot |
Definition at line 630 of file CloudDetectionDialog.cpp.
References drawGeom(), te::gm::GetGeomFromEnvelope(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), getRasterFromROI(), te::map::MapDisplay::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::intersects(), te::gm::Envelope::isValid(), m_cloudLayer, m_geom, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, m_shadowLayer, m_ui, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, and TE_UNKNOWN_SRS.
|
protectedslot |
Definition at line 573 of file CloudDetectionDialog.cpp.
References m_lastText, and m_ui.
|
protectedslot |
Definition at line 558 of file CloudDetectionDialog.cpp.
|
protectedslot |
Definition at line 565 of file CloudDetectionDialog.cpp.
References m_lastText, and m_ui.
|
protectedslot |
Definition at line 687 of file CloudDetectionDialog.cpp.
References applyPreview(), drawGeom(), and m_ui.
Referenced by setMapDisplay().
|
protectedslot |
Definition at line 695 of file CloudDetectionDialog.cpp.
References clearCanvas(), closeTool(), execute(), and m_ui.
|
protectedslot |
Definition at line 514 of file CloudDetectionDialog.cpp.
References m_navigator, and m_ui.
|
protectedslot |
Definition at line 394 of file CloudDetectionDialog.cpp.
References te::qt::widgets::LayerSearchWidget::filterOnlyByRaster(), te::qt::widgets::LayerSearchWidget::getSelecteds(), te::qt::widgets::LayerSearchDialog::getWidget(), m_cloudLayer, m_layers, m_ui, setCloudBands(), setCloudMinMax(), and te::qt::widgets::LayerSearchWidget::setList().
|
protectedslot |
Definition at line 416 of file CloudDetectionDialog.cpp.
References b, te::qt::widgets::LayerSearchWidget::filterOnlyByRaster(), te::da::GetFirstRasterProperty(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::dt::Property::getName(), te::qt::widgets::LayerSearchWidget::getSelecteds(), te::qt::widgets::LayerSearchDialog::getWidget(), m_layers, m_shadowLayer, m_shadowMaxValue, m_shadowMinValue, m_ui, te::qt::widgets::LayerSearchWidget::setList(), setShadowBands(), setShadowMinMax(), te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
|
protectedslot |
Definition at line 354 of file CloudDetectionDialog.cpp.
References drawHistogram(), te::common::Singleton< RasterSummaryManager >::getInstance(), m_cloudRaster, m_histogramWidget, m_lastSelectedRow, m_shadowMaxValue, m_shadowMinValue, m_shadowRaster, m_ui, setShadowMinMax(), te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
|
protectedslot |
Definition at line 285 of file CloudDetectionDialog.cpp.
References drawHistogram(), m_cloudRaster, m_histogramWidget, m_lastSelectedRow, m_layers, m_shadowLayer, m_shadowRaster, m_ui, setShadowBands(), and setShadowMinMax().
|
protectedslot |
Definition at line 712 of file CloudDetectionDialog.cpp.
References m_polygonSymbolizerWidget, and m_symbolizer.
|
protectedslot |
Definition at line 585 of file CloudDetectionDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), and m_ui.
|
protectedslot |
Definition at line 602 of file CloudDetectionDialog.cpp.
References te::qt::widgets::FileDialog::exec(), te::qt::widgets::FileDialog::getFileName(), te::qt::widgets::FileDialog::getPath(), m_ui, te::qt::widgets::FileDialog::VECTOR, and te::common::Exception::what().
|
protectedslot |
Definition at line 486 of file CloudDetectionDialog.cpp.
References m_ui.
|
protected |
Definition at line 768 of file CloudDetectionDialog.cpp.
References te::common::Singleton< T >::getInstance(), m_symbolizer, m_userPath, te::xml::ReaderFactory::make(), and te::xml::START_ELEMENT.
Referenced by setUserPath().
|
protected |
Function used to save the output dataset
Definition at line 1362 of file CloudDetectionDialog.cpp.
References te::mem::DataSet::moveBeforeFirst().
Referenced by execute().
| void te::qt::widgets::CloudDetectionDialog::setActionGroup | ( | QActionGroup * | actionGroup | ) |
Definition at line 238 of file CloudDetectionDialog.cpp.
References m_navigator.
|
protected |
Definition at line 984 of file CloudDetectionDialog.cpp.
References b, te::common::Convert2String(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::map::GetRaster(), m_cloudLayer, m_cloudMaxValue, m_cloudMinValue, m_cloudRaster, m_ui, te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
Referenced by onCloudLayerComboBoxActivated(), onSearchCloudLayerToolButtonClicked(), and setLayers().
|
protected |
Definition at line 1040 of file CloudDetectionDialog.cpp.
References te::common::Convert2String(), m_cloudMaxValue, m_cloudMinValue, and m_ui.
Referenced by onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onSearchCloudLayerToolButtonClicked(), and setLayers().
| void te::qt::widgets::CloudDetectionDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Definition at line 169 of file CloudDetectionDialog.cpp.
References m_cloudLayer, m_layers, m_shadowLayer, m_ui, onCellClicked(), setCloudBands(), setCloudMinMax(), setShadowBands(), and setShadowMinMax().
| void te::qt::widgets::CloudDetectionDialog::setMapDisplay | ( | te::qt::widgets::MapDisplay * | mapDisplay | ) |
Definition at line 230 of file CloudDetectionDialog.cpp.
References m_mapDisplay, m_navigator, and onMapDisplayExtentChanged().
|
protected |
Definition at line 1012 of file CloudDetectionDialog.cpp.
References b, te::common::Convert2String(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::map::GetRaster(), m_shadowLayer, m_shadowMaxValue, m_shadowMinValue, m_shadowRaster, m_ui, te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
Referenced by onSearchShadowLayerToolButtonClicked(), onShadowLayerComboBoxActivated(), and setLayers().
|
protected |
Definition at line 1049 of file CloudDetectionDialog.cpp.
References te::common::Convert2String(), m_shadowMaxValue, m_shadowMinValue, and m_ui.
Referenced by onSearchShadowLayerToolButtonClicked(), onShadowBandComboBoxActivated(), onShadowLayerComboBoxActivated(), and setLayers().
| void te::qt::widgets::CloudDetectionDialog::setUserPath | ( | std::string | path | ) |
Definition at line 245 of file CloudDetectionDialog.cpp.
References file(), m_userPath, and readStyle().
|
protected |
Definition at line 946 of file CloudDetectionDialog.cpp.
References band, and te::rst::Raster::vectorize().
Referenced by applyPreview(), and execute().
|
protected |
Definition at line 737 of file CloudDetectionDialog.cpp.
References te::common::Singleton< T >::getInstance(), te::se::Symbolizer::getVersion(), m_symbolizer, m_userPath, and te::xml::AbstractWriterFactory::make().
Referenced by ~CloudDetectionDialog().
|
private |
Definition at line 183 of file CloudDetectionDialog.h.
Referenced by execute(), getRasterFromROI(), onCloudLayerComboBoxActivated(), onEnvelopeAcquired(), onSearchCloudLayerToolButtonClicked(), setCloudBands(), and setLayers().
|
private |
Definition at line 197 of file CloudDetectionDialog.h.
Referenced by onCloudBandComboBoxActivated(), setCloudBands(), and setCloudMinMax().
|
private |
Definition at line 196 of file CloudDetectionDialog.h.
Referenced by onCloudBandComboBoxActivated(), setCloudBands(), and setCloudMinMax().
|
private |
Definition at line 187 of file CloudDetectionDialog.h.
Referenced by onCellClicked(), onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onShadowBandComboBoxActivated(), onShadowLayerComboBoxActivated(), and setCloudBands().
|
private |
Definition at line 189 of file CloudDetectionDialog.h.
Referenced by applyPreview(), and getRasterFromROI().
|
private |
Definition at line 192 of file CloudDetectionDialog.h.
Referenced by drawGeom(), getRasterFromROI(), and onEnvelopeAcquired().
|
private |
Definition at line 178 of file CloudDetectionDialog.h.
Referenced by drawHistogram(), onCellClicked(), onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onShadowBandComboBoxActivated(), and onShadowLayerComboBoxActivated().
|
private |
Definition at line 200 of file CloudDetectionDialog.h.
Referenced by onCellClicked(), onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onShadowBandComboBoxActivated(), and onShadowLayerComboBoxActivated().
|
private |
Definition at line 195 of file CloudDetectionDialog.h.
Referenced by onCellChanged(), onCellDoubleClicked(), onFilterCellChanged(), and onFilterCellDoubleClicked().
|
private |
Definition at line 182 of file CloudDetectionDialog.h.
Referenced by onCloudLayerComboBoxActivated(), onSearchCloudLayerToolButtonClicked(), onSearchShadowLayerToolButtonClicked(), onShadowLayerComboBoxActivated(), and setLayers().
|
private |
Definition at line 193 of file CloudDetectionDialog.h.
Referenced by applyPreview(), clearCanvas(), drawGeom(), getRasterFromROI(), onEnvelopeAcquired(), and setMapDisplay().
|
private |
Definition at line 180 of file CloudDetectionDialog.h.
Referenced by onPreviewCheckBoxToggled(), setActionGroup(), and setMapDisplay().
|
private |
Definition at line 185 of file CloudDetectionDialog.h.
Referenced by execute().
|
private |
Definition at line 204 of file CloudDetectionDialog.h.
Referenced by applyPreview(), and onStyleToolButtonClicked().
|
private |
Definition at line 184 of file CloudDetectionDialog.h.
Referenced by execute(), getRasterFromROI(), onEnvelopeAcquired(), onSearchShadowLayerToolButtonClicked(), onShadowLayerComboBoxActivated(), setLayers(), and setShadowBands().
|
private |
Definition at line 199 of file CloudDetectionDialog.h.
Referenced by onSearchShadowLayerToolButtonClicked(), onShadowBandComboBoxActivated(), setShadowBands(), and setShadowMinMax().
|
private |
Definition at line 198 of file CloudDetectionDialog.h.
Referenced by onSearchShadowLayerToolButtonClicked(), onShadowBandComboBoxActivated(), setShadowBands(), and setShadowMinMax().
|
private |
Definition at line 188 of file CloudDetectionDialog.h.
Referenced by onCellClicked(), onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onShadowBandComboBoxActivated(), onShadowLayerComboBoxActivated(), and setShadowBands().
|
private |
Definition at line 190 of file CloudDetectionDialog.h.
Referenced by applyPreview(), and getRasterFromROI().
|
private |
Definition at line 205 of file CloudDetectionDialog.h.
Referenced by applyPreview(), onStyleToolButtonClicked(), readStyle(), and writeStyle().
|
private |
Definition at line 176 of file CloudDetectionDialog.h.
Referenced by applyPreview(), drawHistogram(), execute(), getRasterFromROI(), onCellChanged(), onCellDoubleClicked(), onCloudBandComboBoxActivated(), onCloudLayerComboBoxActivated(), onDownToolButtonClicked(), onEnvelopeAcquired(), onFilterCellChanged(), onFilterCellDoubleClicked(), onMapDisplayExtentChanged(), onOkPushButtonClicked(), onPreviewCheckBoxToggled(), onSearchCloudLayerToolButtonClicked(), onSearchShadowLayerToolButtonClicked(), onShadowBandComboBoxActivated(), onShadowLayerComboBoxActivated(), onTargetDatasourceToolButtonClicked(), onTargetFileToolButtonClicked(), onUpToolButtonClicked(), setCloudBands(), setCloudMinMax(), setLayers(), setShadowBands(), and setShadowMinMax().
|
private |
Definition at line 202 of file CloudDetectionDialog.h.
Referenced by readStyle(), setUserPath(), and writeStyle().