This class is GUI used to define the contrast parameters for the RP constast operation. More...
#include <ContrastDialogForm.h>
Signals | |
| void | addLayer (te::map::AbstractLayerPtr layer) |
| void | closeTool () |
Public Member Functions | |
| ContrastDialogForm (QWidget *parent=0) | |
| te::map::AbstractLayerPtr | get () |
| te::rp::Contrast::InputParameters | getInputParams () |
| te::map::AbstractLayerPtr | getOutputLayer () |
| void | onMapDisplayExtentChanged () |
| void | resetWindow (te::map::AbstractLayerPtr layer) |
| void | set (te::map::AbstractLayerPtr layer) |
| This method is used to set the selected layer for contrast operation. More... | |
| void | setActionGroup (QActionGroup *actionGroup) |
| void | setConfigurations () |
| void | setMapDisplay (te::qt::widgets::MapDisplay *mapDisplay) |
| ~ContrastDialogForm () | |
Protected Slots | |
| void | onAllImageRadioButtonToggled (bool isChecked) |
| void | onApplicationTriggered (te::qt::af::evt::Event *e) |
| void | onBandChecked () |
| void | onCellChanged (int row, int column) |
| void | onCellClicked (int row, int column) |
| void | onCellDoubleClicked (int row, int column) |
| void | onContrastTypeComboBoxActivated (int index) |
| void | onEnvelopeAcquired (te::gm::Envelope env) |
| void | onMaxValueSelected (int value, int band) |
| void | onMaxValueSelected (double value, int band) |
| void | onMinValueSelected (int value, int band) |
| void | onMinValueSelected (double value, int band) |
| void | onOkPushButtonClicked () |
| void | onPreviewCheckBoxToggled (bool isChecked) |
| void | onResetValuesToolButtonClicked () |
| void | onRoiRadioButtonToggled (bool isChecked) |
| void | onVisibleAreaRadioButtonToggled (bool isChecked) |
Protected Member Functions | |
| void | applyPreview () |
| void | clearCanvas () |
| void | closeEvent (QCloseEvent *e) |
| void | drawGeom () |
| void | drawHistogram () |
| void | drawPreview (te::rst::Raster *raster) |
| bool | execute () |
| void | fillContrastTypes () |
| te::se::ChannelSelection * | getChannelSelection () |
| void | getRasterFromROI () |
| void | listBands () |
| void | setDefaultValues (int contrastType) |
Private Attributes | |
| bool | m_bandChecked |
| std::unique_ptr< te::gm::Geometry > | m_geom |
| std::unique_ptr< te::qt::widgets::RasterHistogramWidget > | m_histogramWidget |
| std::string | m_lastText |
| te::map::AbstractLayerPtr | m_layer |
| te::qt::widgets::MapDisplay * | m_mapDisplay |
| std::vector< double > | m_maxValue |
| std::vector< double > | m_minValue |
| std::unique_ptr< te::qt::widgets::RpToolsWidget > | m_navigator |
| te::map::AbstractLayerPtr | m_outputLayer |
| te::qt::widgets::OutputRasterWidget * | m_outputWidget |
| std::unique_ptr< te::rst::Raster > | m_raster |
| std::unique_ptr< Ui::ContrastDialogForm > | m_ui |
| bool | m_updatePreview |
This class is GUI used to define the contrast parameters for the RP constast operation.
Definition at line 72 of file ContrastDialogForm.h.
| te::qt::widgets::ContrastDialogForm::ContrastDialogForm | ( | QWidget * | parent = 0 | ) |
Definition at line 74 of file ContrastDialogForm.cpp.
References fillContrastTypes(), m_bandChecked, m_histogramWidget, m_lastText, m_navigator, m_outputWidget, m_ui, m_updatePreview, onAllImageRadioButtonToggled(), onCellChanged(), onCellClicked(), onCellDoubleClicked(), onContrastTypeComboBoxActivated(), onEnvelopeAcquired(), onOkPushButtonClicked(), onPreviewCheckBoxToggled(), onResetValuesToolButtonClicked(), onRoiRadioButtonToggled(), onVisibleAreaRadioButtonToggled(), and ~ContrastDialogForm().
|
default |
Referenced by ContrastDialogForm().
|
signal |
Referenced by execute().
|
protected |
Definition at line 487 of file ContrastDialogForm.cpp.
References te::dt::AbstractData::clone(), drawHistogram(), drawPreview(), te::rp::Contrast::execute(), getInputParams(), te::rp::Contrast::initialize(), te::rp::Contrast::OutputParameters::m_createdOutRasterDSType, te::rp::Contrast::OutputParameters::m_createdOutRasterInfo, te::rp::Contrast::OutputParameters::m_createdOutRasterPtr, m_histogramWidget, te::rp::Contrast::InputParameters::m_inRasterPtr, m_maxValue, m_minValue, te::rp::Contrast::InputParameters::m_outRangeMax, te::rp::Contrast::InputParameters::m_outRangeMin, te::rp::Contrast::OutputParameters::m_outRasterPtr, m_raster, m_ui, and mixture::rst.
Referenced by getRasterFromROI(), onAllImageRadioButtonToggled(), onBandChecked(), onCellChanged(), onMapDisplayExtentChanged(), onPreviewCheckBoxToggled(), and setDefaultValues().
|
protected |
Definition at line 688 of file ContrastDialogForm.cpp.
References te::qt::widgets::Canvas::clear(), te::qt::widgets::MapDisplay::getDraftPixmap(), and m_mapDisplay.
Referenced by closeEvent(), onOkPushButtonClicked(), and resetWindow().
|
protected |
Definition at line 718 of file ContrastDialogForm.cpp.
References clearCanvas(), and closeTool().
|
signal |
Referenced by closeEvent(), and onOkPushButtonClicked().
|
protected |
Definition at line 868 of file ContrastDialogForm.cpp.
References te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::map::MapDisplay::getSRID(), 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::setWindow(), and TE_OPAQUE.
Referenced by onEnvelopeAcquired(), onMapDisplayExtentChanged(), and onVisibleAreaRadioButtonToggled().
|
protected |
Definition at line 1475 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_raster, m_ui, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Referenced by applyPreview(), and onCellClicked().
|
protected |
Definition at line 822 of file ContrastDialogForm.cpp.
References te::se::CreateCoverageStyle(), te::qt::widgets::Canvas::draw(), te::map::DrawRaster(), te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::rst::Raster::getExtent(), te::rst::Raster::getNumberOfBands(), te::qt::widgets::MapDisplay::getScale(), te::map::MapDisplay::getSRID(), te::rst::Raster::getSRID(), m_geom, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_mapDisplay, 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::setPolygonFillColor(), te::qt::widgets::Canvas::setWindow(), and TE_OPAQUE.
Referenced by applyPreview(), and onPreviewCheckBoxToggled().
|
protected |
Definition at line 581 of file ContrastDialogForm.cpp.
References addLayer(), te::qt::widgets::applyRasterMultiResolution(), te::qt::widgets::createLayer(), te::rp::Contrast::execute(), te::qt::widgets::OutputRasterWidget::fileExists(), te::rp::Algorithm::getErrorMessage(), te::qt::widgets::OutputRasterWidget::getInfo(), getInputParams(), te::map::GetRaster(), te::qt::widgets::OutputRasterWidget::getType(), te::rp::Contrast::initialize(), te::rp::Contrast::OutputParameters::m_createdOutRasterDSType, te::rp::Contrast::OutputParameters::m_createdOutRasterInfo, te::rp::Contrast::InputParameters::m_enableProgress, m_geom, te::rp::Contrast::InputParameters::m_inRasterBands, te::rp::Contrast::InputParameters::m_inRasterPtr, m_layer, m_maxValue, m_minValue, m_outputLayer, m_outputWidget, te::rp::Contrast::InputParameters::m_outRangeMax, te::rp::Contrast::InputParameters::m_outRangeMin, te::rp::Contrast::OutputParameters::m_outRasterBands, m_ui, and te::rp::Contrast::OutputParameters::reset().
Referenced by onOkPushButtonClicked().
|
protected |
Definition at line 434 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::DecorrelationEnhancementT, te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_ui, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Referenced by ContrastDialogForm().
| te::map::AbstractLayerPtr te::qt::widgets::ContrastDialogForm::get | ( | ) |
Definition at line 194 of file ContrastDialogForm.cpp.
References m_layer.
|
protected |
Definition at line 697 of file ContrastDialogForm.cpp.
References te::se::Style::getRule(), te::se::Rule::getSymbolizers(), and m_layer.
Referenced by getInputParams().
| te::rp::Contrast::InputParameters te::qt::widgets::ContrastDialogForm::getInputParams | ( | ) |
Definition at line 199 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::DecorrelationEnhancementT, getChannelSelection(), te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, te::rp::Contrast::InputParameters::m_hECMaxInput, te::rp::Contrast::InputParameters::m_inRasterBands, te::rp::Contrast::InputParameters::m_lCMaxInput, te::rp::Contrast::InputParameters::m_lCMinInput, te::rp::Contrast::InputParameters::m_logCMaxInput, te::rp::Contrast::InputParameters::m_logCMinInput, te::rp::Contrast::InputParameters::m_sMASCMeanInput, te::rp::Contrast::InputParameters::m_sMASCStdInput, te::rp::Contrast::InputParameters::m_squareCMaxInput, te::rp::Contrast::InputParameters::m_squareCMinInput, te::rp::Contrast::InputParameters::m_squareRootCMaxInput, te::rp::Contrast::InputParameters::m_squareRootCMinInput, te::rp::Contrast::InputParameters::m_type, m_ui, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Referenced by applyPreview(), and execute().
| te::map::AbstractLayerPtr te::qt::widgets::ContrastDialogForm::getOutputLayer | ( | ) |
Definition at line 189 of file ContrastDialogForm.cpp.
References m_outputLayer.
|
protected |
Definition at line 556 of file ContrastDialogForm.cpp.
References applyPreview(), te::map::GetRaster(), m_geom, m_histogramWidget, m_layer, m_raster, m_ui, and te::gm::PolygonType.
Referenced by onEnvelopeAcquired(), and onVisibleAreaRadioButtonToggled().
|
protected |
Definition at line 447 of file ContrastDialogForm.cpp.
References b, te::map::GetRaster(), m_layer, m_ui, onBandChecked(), and onContrastTypeComboBoxActivated().
Referenced by set().
|
protectedslot |
Definition at line 404 of file ContrastDialogForm.cpp.
References applyPreview(), te::map::MapDisplay::getExtent(), te::map::GetRaster(), te::gm::Envelope::isValid(), m_histogramWidget, m_layer, m_mapDisplay, m_raster, and m_ui.
Referenced by ContrastDialogForm().
|
protectedslot |
Definition at line 1544 of file ContrastDialogForm.cpp.
References te::qt::af::evt::LAYER_SELECTED, te::qt::af::evt::Event::m_id, te::qt::af::evt::LayerSelected::m_layer, and resetWindow().
|
protectedslot |
Definition at line 1587 of file ContrastDialogForm.cpp.
References applyPreview(), band, te::map::GetRaster(), m_bandChecked, m_layer, and m_ui.
Referenced by listBands().
Definition at line 1063 of file ContrastDialogForm.cpp.
References applyPreview(), te::map::GetRaster(), te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_lastText, m_layer, m_ui, m_updatePreview, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, te::rp::Contrast::InputParameters::SquareRootContrastT, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by ContrastDialogForm().
Definition at line 1046 of file ContrastDialogForm.cpp.
References drawHistogram(), and m_ui.
Referenced by ContrastDialogForm().
Definition at line 1054 of file ContrastDialogForm.cpp.
References m_lastText, m_ui, and m_updatePreview.
Referenced by ContrastDialogForm().
|
protectedslot |
Definition at line 1039 of file ContrastDialogForm.cpp.
References m_ui, and setDefaultValues().
Referenced by ContrastDialogForm(), and listBands().
|
protectedslot |
Definition at line 1572 of file ContrastDialogForm.cpp.
References drawGeom(), te::gm::GetGeomFromEnvelope(), getRasterFromROI(), te::map::MapDisplay::getSRID(), te::gm::Envelope::intersects(), te::gm::Envelope::isValid(), m_geom, m_layer, m_mapDisplay, and te::gm::Envelope::transform().
Referenced by ContrastDialogForm().
| void te::qt::widgets::ContrastDialogForm::onMapDisplayExtentChanged | ( | ) |
Definition at line 1562 of file ContrastDialogForm.cpp.
References applyPreview(), drawGeom(), and m_ui.
Definition at line 1293 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_layer, m_raster, m_ui, m_updatePreview, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Referenced by set().
|
protectedslot |
Definition at line 1342 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_layer, m_raster, m_ui, m_updatePreview, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Definition at line 1195 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_layer, m_raster, m_ui, m_updatePreview, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Referenced by set().
|
protectedslot |
Definition at line 1244 of file ContrastDialogForm.cpp.
References te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_layer, m_raster, m_ui, m_updatePreview, te::rp::Contrast::InputParameters::MeanAndStdContrastT, te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
|
protectedslot |
Definition at line 1391 of file ContrastDialogForm.cpp.
References clearCanvas(), closeTool(), execute(), te::qt::widgets::OutputRasterWidget::getOutputRaster(), m_bandChecked, and m_outputWidget.
Referenced by ContrastDialogForm().
|
protectedslot |
Definition at line 1417 of file ContrastDialogForm.cpp.
References applyPreview(), drawPreview(), and m_raster.
Referenced by ContrastDialogForm().
|
protectedslot |
Definition at line 1612 of file ContrastDialogForm.cpp.
References m_ui, and setDefaultValues().
Referenced by ContrastDialogForm().
|
protectedslot |
Definition at line 1430 of file ContrastDialogForm.cpp.
References m_navigator, and m_ui.
Referenced by ContrastDialogForm().
|
protectedslot |
Definition at line 1444 of file ContrastDialogForm.cpp.
References drawGeom(), te::map::MapDisplay::getExtent(), te::gm::GetGeomFromEnvelope(), getRasterFromROI(), te::map::MapDisplay::getSRID(), te::gm::Envelope::intersection(), te::gm::Envelope::isValid(), m_geom, m_layer, m_mapDisplay, m_ui, and te::gm::Envelope::transform().
Referenced by ContrastDialogForm().
| void te::qt::widgets::ContrastDialogForm::resetWindow | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 725 of file ContrastDialogForm.cpp.
References clearCanvas(), te::rst::RasterProperty::getBandProperties(), te::map::GetExtent(), te::da::GetFirstRasterProperty(), te::map::MapDisplay::getSRID(), m_histogramWidget, m_layer, m_mapDisplay, m_ui, te::rst::PaletteIdxCInt, te::qt::widgets::MapDisplay::refresh(), te::qt::widgets::MapDisplay::setExtent(), and te::map::MapDisplay::setLayerList().
Referenced by onApplicationTriggered().
| void te::qt::widgets::ContrastDialogForm::set | ( | te::map::AbstractLayerPtr | layer | ) |
This method is used to set the selected layer for contrast operation.
| layer | The layer ptr |
Definition at line 132 of file ContrastDialogForm.cpp.
References b, te::common::Singleton< RasterSummaryManager >::getInstance(), te::map::GetRaster(), listBands(), m_histogramWidget, m_layer, m_maxValue, m_minValue, onMaxValueSelected(), onMinValueSelected(), te::rst::SUMMARY_MAX, te::rst::SUMMARY_MIN, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by te::qt::plugins::rp::ContrastAction::onPopUpActionActivated().
| void te::qt::widgets::ContrastDialogForm::setActionGroup | ( | QActionGroup * | actionGroup | ) |
Definition at line 182 of file ContrastDialogForm.cpp.
References m_navigator.
| void te::qt::widgets::ContrastDialogForm::setConfigurations | ( | ) |
Definition at line 171 of file ContrastDialogForm.cpp.
References m_ui.
|
protected |
Definition at line 889 of file ContrastDialogForm.cpp.
References applyPreview(), te::common::Convert2String(), te::rp::Contrast::InputParameters::DecorrelationEnhancementT, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::map::GetRaster(), te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::InputParameters::LogContrastT, m_histogramWidget, m_layer, m_maxValue, m_minValue, m_raster, m_ui, te::rp::Contrast::InputParameters::MeanAndStdContrastT, reset(), te::rp::Contrast::InputParameters::SquareContrastT, and te::rp::Contrast::InputParameters::SquareRootContrastT.
Referenced by onContrastTypeComboBoxActivated(), and onResetValuesToolButtonClicked().
| void te::qt::widgets::ContrastDialogForm::setMapDisplay | ( | te::qt::widgets::MapDisplay * | mapDisplay | ) |
Definition at line 176 of file ContrastDialogForm.cpp.
References m_mapDisplay, and m_navigator.
|
private |
Definition at line 195 of file ContrastDialogForm.h.
Referenced by ContrastDialogForm(), onBandChecked(), and onOkPushButtonClicked().
|
private |
Definition at line 189 of file ContrastDialogForm.h.
Referenced by drawGeom(), drawPreview(), execute(), getRasterFromROI(), onEnvelopeAcquired(), and onVisibleAreaRadioButtonToggled().
|
private |
Definition at line 181 of file ContrastDialogForm.h.
Referenced by applyPreview(), ContrastDialogForm(), drawHistogram(), getRasterFromROI(), onAllImageRadioButtonToggled(), onCellChanged(), onMaxValueSelected(), onMinValueSelected(), resetWindow(), set(), and setDefaultValues().
|
private |
Definition at line 193 of file ContrastDialogForm.h.
Referenced by ContrastDialogForm(), onCellChanged(), and onCellDoubleClicked().
|
private |
Definition at line 183 of file ContrastDialogForm.h.
Referenced by execute(), get(), getChannelSelection(), getRasterFromROI(), listBands(), onAllImageRadioButtonToggled(), onBandChecked(), onCellChanged(), onEnvelopeAcquired(), onMaxValueSelected(), onMinValueSelected(), onVisibleAreaRadioButtonToggled(), resetWindow(), set(), and setDefaultValues().
|
private |
Definition at line 186 of file ContrastDialogForm.h.
Referenced by clearCanvas(), drawGeom(), drawPreview(), onAllImageRadioButtonToggled(), onEnvelopeAcquired(), onVisibleAreaRadioButtonToggled(), resetWindow(), and setMapDisplay().
|
private |
Definition at line 192 of file ContrastDialogForm.h.
Referenced by applyPreview(), execute(), set(), and setDefaultValues().
|
private |
Definition at line 191 of file ContrastDialogForm.h.
Referenced by applyPreview(), execute(), set(), and setDefaultValues().
|
private |
Definition at line 180 of file ContrastDialogForm.h.
Referenced by ContrastDialogForm(), onRoiRadioButtonToggled(), setActionGroup(), and setMapDisplay().
|
private |
Definition at line 185 of file ContrastDialogForm.h.
Referenced by execute(), and getOutputLayer().
|
private |
Definition at line 184 of file ContrastDialogForm.h.
Referenced by ContrastDialogForm(), execute(), and onOkPushButtonClicked().
|
private |
Definition at line 188 of file ContrastDialogForm.h.
Referenced by applyPreview(), drawHistogram(), getRasterFromROI(), onAllImageRadioButtonToggled(), onMaxValueSelected(), onMinValueSelected(), onPreviewCheckBoxToggled(), and setDefaultValues().
|
private |
Definition at line 179 of file ContrastDialogForm.h.
Referenced by applyPreview(), ContrastDialogForm(), drawHistogram(), drawPreview(), execute(), fillContrastTypes(), getInputParams(), getRasterFromROI(), listBands(), onAllImageRadioButtonToggled(), onBandChecked(), onCellChanged(), onCellClicked(), onCellDoubleClicked(), onContrastTypeComboBoxActivated(), onMapDisplayExtentChanged(), onMaxValueSelected(), onMinValueSelected(), onResetValuesToolButtonClicked(), onRoiRadioButtonToggled(), onVisibleAreaRadioButtonToggled(), resetWindow(), setConfigurations(), and setDefaultValues().
|
private |
Definition at line 196 of file ContrastDialogForm.h.
Referenced by ContrastDialogForm(), onCellChanged(), onCellDoubleClicked(), onMaxValueSelected(), and onMinValueSelected().