A dialog used to build a ContrastEnhancementWidget element. More...
#include <ContrastEnhancementWidget.h>
Signals | |
| void | contrastEnhancementChanged () |
Public Member Functions | |
| te::se::ContrastEnhancement * | getContrastEnhancement () const |
| void | setContrastEnhancement (te::se::ContrastEnhancement *ce) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| ContrastEnhancementWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructs a ContrastEnhancementWidget dialog which is a child of parent, with widget flags set to f. More... | |
| ~ContrastEnhancementWidget () | |
| Destructor. More... | |
Protected Slots | |
| void | onGammaValueChanged (double value) |
| void | onTypeChanged (QString value) |
Protected Member Functions | |
| void | initialize () |
| Internal method to initialize the widget (e.g.: color, combos, icons, etc.) More... | |
| void | updateUi () |
| Updates the widget form based on internal fill element. More... | |
Private Attributes | |
| std::map< te::se::ContrastEnhancement::ContrastEnhancementType, QString > | m_ceNames |
| Contrast Types Names. More... | |
| te::se::ContrastEnhancement * | m_contrast |
| SE Contrast element. More... | |
| std::unique_ptr< Ui::ContrastEnhancementWidgetForm > | m_ui |
| Dialog form. More... | |
A dialog used to build a ContrastEnhancementWidget element.
Definition at line 62 of file ContrastEnhancementWidget.h.
| te::qt::widgets::ContrastEnhancementWidget::ContrastEnhancementWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructs a ContrastEnhancementWidget dialog which is a child of parent, with widget flags set to f.
Definition at line 39 of file ContrastEnhancementWidget.cpp.
References initialize(), m_ui, onGammaValueChanged(), and onTypeChanged().
| te::qt::widgets::ContrastEnhancementWidget::~ContrastEnhancementWidget | ( | ) |
Destructor.
Definition at line 53 of file ContrastEnhancementWidget.cpp.
References m_ceNames, and m_contrast.
|
signal |
Referenced by onGammaValueChanged(), and onTypeChanged().
| te::se::ContrastEnhancement * te::qt::widgets::ContrastEnhancementWidget::getContrastEnhancement | ( | ) | const |
Definition at line 71 of file ContrastEnhancementWidget.cpp.
References te::se::ContrastEnhancement::clone(), and m_contrast.
Referenced by te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer(), te::qt::widgets::SelectedChannelWidget::getSelectedChannel(), and te::qt::widgets::SelectedChannelWidget::onContrastEnhancementChanged().
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
Definition at line 76 of file ContrastEnhancementWidget.cpp.
References te::se::ContrastEnhancement::ENHANCEMENT_HISTOGRAM, te::se::ContrastEnhancement::ENHANCEMENT_NONE, te::se::ContrastEnhancement::ENHANCEMENT_NORMALIZE, m_ceNames, m_contrast, m_ui, te::se::ContrastEnhancement::setContrastEnhancementType(), te::se::ContrastEnhancement::setGammaValue(), and updateUi().
Referenced by ContrastEnhancementWidget().
|
protectedslot |
Definition at line 111 of file ContrastEnhancementWidget.cpp.
References contrastEnhancementChanged(), m_contrast, and te::se::ContrastEnhancement::setGammaValue().
Referenced by ContrastEnhancementWidget().
|
protectedslot |
Definition at line 118 of file ContrastEnhancementWidget.cpp.
References contrastEnhancementChanged(), m_ceNames, m_contrast, and te::se::ContrastEnhancement::setContrastEnhancementType().
Referenced by ContrastEnhancementWidget().
| void te::qt::widgets::ContrastEnhancementWidget::setContrastEnhancement | ( | te::se::ContrastEnhancement * | ce | ) |
Definition at line 60 of file ContrastEnhancementWidget.cpp.
References te::se::ContrastEnhancement::clone(), m_contrast, and updateUi().
Referenced by te::qt::widgets::SelectedChannelWidget::updateUi().
|
protected |
Updates the widget form based on internal fill element.
Definition at line 105 of file ContrastEnhancementWidget.cpp.
References te::se::ContrastEnhancement::getContrastEnhancementType(), te::se::ContrastEnhancement::getGammaValue(), m_ceNames, m_contrast, and m_ui.
Referenced by initialize(), and setContrastEnhancement().
|
private |
Contrast Types Names.
Definition at line 112 of file ContrastEnhancementWidget.h.
Referenced by initialize(), onTypeChanged(), updateUi(), and ~ContrastEnhancementWidget().
|
private |
SE Contrast element.
Definition at line 110 of file ContrastEnhancementWidget.h.
Referenced by getContrastEnhancement(), initialize(), onGammaValueChanged(), onTypeChanged(), setContrastEnhancement(), updateUi(), and ~ContrastEnhancementWidget().
|
private |
Dialog form.
Definition at line 108 of file ContrastEnhancementWidget.h.
Referenced by ContrastEnhancementWidget(), initialize(), and updateUi().