te::qt::widgets::ContrastDialogForm Class Reference

This class is GUI used to define the contrast parameters for the RP constast operation. More...

#include <ContrastDialogForm.h>

Inheritance diagram for te::qt::widgets::ContrastDialogForm:
QDialog

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::ChannelSelectiongetChannelSelection ()
 
void getRasterFromROI ()
 
void listBands ()
 
void setDefaultValues (int contrastType)
 

Private Attributes

bool m_bandChecked
 
std::unique_ptr< te::gm::Geometrym_geom
 
std::unique_ptr< te::qt::widgets::RasterHistogramWidgetm_histogramWidget
 
std::string m_lastText
 
te::map::AbstractLayerPtr m_layer
 
te::qt::widgets::MapDisplaym_mapDisplay
 
std::vector< double > m_maxValue
 
std::vector< double > m_minValue
 
std::unique_ptr< te::qt::widgets::RpToolsWidgetm_navigator
 
te::map::AbstractLayerPtr m_outputLayer
 
te::qt::widgets::OutputRasterWidgetm_outputWidget
 
std::unique_ptr< te::rst::Rasterm_raster
 
std::unique_ptr< Ui::ContrastDialogForm > m_ui
 
bool m_updatePreview
 

Detailed Description

This class is GUI used to define the contrast parameters for the RP constast operation.

Definition at line 72 of file ContrastDialogForm.h.

Constructor & Destructor Documentation

te::qt::widgets::ContrastDialogForm::~ContrastDialogForm ( )
default

Referenced by ContrastDialogForm().

Member Function Documentation

void te::qt::widgets::ContrastDialogForm::addLayer ( te::map::AbstractLayerPtr  layer)
signal

Referenced by execute().

void te::qt::widgets::ContrastDialogForm::clearCanvas ( )
protected
void te::qt::widgets::ContrastDialogForm::closeEvent ( QCloseEvent *  e)
protected

Definition at line 718 of file ContrastDialogForm.cpp.

References clearCanvas(), and closeTool().

void te::qt::widgets::ContrastDialogForm::closeTool ( )
signal
te::map::AbstractLayerPtr te::qt::widgets::ContrastDialogForm::get ( )

Definition at line 194 of file ContrastDialogForm.cpp.

References m_layer.

te::se::ChannelSelection * te::qt::widgets::ContrastDialogForm::getChannelSelection ( )
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::map::AbstractLayerPtr te::qt::widgets::ContrastDialogForm::getOutputLayer ( )

Definition at line 189 of file ContrastDialogForm.cpp.

References m_outputLayer.

void te::qt::widgets::ContrastDialogForm::getRasterFromROI ( )
protected
void te::qt::widgets::ContrastDialogForm::listBands ( )
protected

Definition at line 447 of file ContrastDialogForm.cpp.

References b, te::map::GetRaster(), m_layer, m_ui, onBandChecked(), and onContrastTypeComboBoxActivated().

Referenced by set().

void te::qt::widgets::ContrastDialogForm::onAllImageRadioButtonToggled ( bool  isChecked)
protectedslot
void te::qt::widgets::ContrastDialogForm::onApplicationTriggered ( te::qt::af::evt::Event e)
protectedslot
void te::qt::widgets::ContrastDialogForm::onBandChecked ( )
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().

void te::qt::widgets::ContrastDialogForm::onCellClicked ( int  row,
int  column 
)
protectedslot

Definition at line 1046 of file ContrastDialogForm.cpp.

References drawHistogram(), and m_ui.

Referenced by ContrastDialogForm().

void te::qt::widgets::ContrastDialogForm::onCellDoubleClicked ( int  row,
int  column 
)
protectedslot

Definition at line 1054 of file ContrastDialogForm.cpp.

References m_lastText, m_ui, and m_updatePreview.

Referenced by ContrastDialogForm().

void te::qt::widgets::ContrastDialogForm::onContrastTypeComboBoxActivated ( int  index)
protectedslot

Definition at line 1039 of file ContrastDialogForm.cpp.

References m_ui, and setDefaultValues().

Referenced by ContrastDialogForm(), and listBands().

void te::qt::widgets::ContrastDialogForm::onMapDisplayExtentChanged ( )

Definition at line 1562 of file ContrastDialogForm.cpp.

References applyPreview(), drawGeom(), and m_ui.

void te::qt::widgets::ContrastDialogForm::onOkPushButtonClicked ( )
protectedslot
void te::qt::widgets::ContrastDialogForm::onPreviewCheckBoxToggled ( bool  isChecked)
protectedslot

Definition at line 1417 of file ContrastDialogForm.cpp.

References applyPreview(), drawPreview(), and m_raster.

Referenced by ContrastDialogForm().

void te::qt::widgets::ContrastDialogForm::onResetValuesToolButtonClicked ( )
protectedslot

Definition at line 1612 of file ContrastDialogForm.cpp.

References m_ui, and setDefaultValues().

Referenced by ContrastDialogForm().

void te::qt::widgets::ContrastDialogForm::onRoiRadioButtonToggled ( bool  isChecked)
protectedslot

Definition at line 1430 of file ContrastDialogForm.cpp.

References m_navigator, and m_ui.

Referenced by ContrastDialogForm().

void te::qt::widgets::ContrastDialogForm::set ( te::map::AbstractLayerPtr  layer)
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.

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.

Member Data Documentation

bool te::qt::widgets::ContrastDialogForm::m_bandChecked
private

Definition at line 195 of file ContrastDialogForm.h.

Referenced by ContrastDialogForm(), onBandChecked(), and onOkPushButtonClicked().

std::unique_ptr<te::gm::Geometry> te::qt::widgets::ContrastDialogForm::m_geom
private
std::string te::qt::widgets::ContrastDialogForm::m_lastText
private

Definition at line 193 of file ContrastDialogForm.h.

Referenced by ContrastDialogForm(), onCellChanged(), and onCellDoubleClicked().

std::vector<double> te::qt::widgets::ContrastDialogForm::m_maxValue
private

Definition at line 192 of file ContrastDialogForm.h.

Referenced by applyPreview(), execute(), set(), and setDefaultValues().

std::vector<double> te::qt::widgets::ContrastDialogForm::m_minValue
private

Definition at line 191 of file ContrastDialogForm.h.

Referenced by applyPreview(), execute(), set(), and setDefaultValues().

std::unique_ptr<te::qt::widgets::RpToolsWidget> te::qt::widgets::ContrastDialogForm::m_navigator
private
te::map::AbstractLayerPtr te::qt::widgets::ContrastDialogForm::m_outputLayer
private

Definition at line 185 of file ContrastDialogForm.h.

Referenced by execute(), and getOutputLayer().

te::qt::widgets::OutputRasterWidget* te::qt::widgets::ContrastDialogForm::m_outputWidget
private

Definition at line 184 of file ContrastDialogForm.h.

Referenced by ContrastDialogForm(), execute(), and onOkPushButtonClicked().

std::unique_ptr<te::rst::Raster> te::qt::widgets::ContrastDialogForm::m_raster
private
bool te::qt::widgets::ContrastDialogForm::m_updatePreview
private

The documentation for this class was generated from the following files: