A dialog used to build a ChannelSelection element. More...
#include <ChannelSelectionWidget.h>
Public Member Functions | |
| te::se::ChannelSelection * | getChannelSelection () const |
| void | setChannelSelection (const te::se::ChannelSelection *cs) |
| void | setProperty (std::vector< te::rst::BandProperty * > &p) |
| Sets the band information. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| ChannelSelectionWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructs a ChannelSelectionWidget dialog which is a child of parent, with widget flags set to f. More... | |
| ~ChannelSelectionWidget () | |
| Destructor. More... | |
Protected Slots | |
| void | onBlueChannelSelected () |
| void | onGrayScalelSelected () |
| void | onGreenChannelSelected () |
| void | onMonoChannelSelected () |
| void | onRedChannelSelected () |
| void | onRGBColorSelected () |
| void | onSelectedChannelChanged () |
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 mark element. More... | |
Private Attributes | |
| std::vector< te::rst::BandProperty * > | m_bands |
| A vector of bands description. More... | |
| te::se::ChannelSelection * | m_cs |
| SE Channel Selection element. More... | |
| te::se::SelectedChannel * | m_scBlue |
| SE Selected Channel element for red band. More... | |
| te::se::SelectedChannel * | m_scGreen |
| SE Selected Channel element for red band. More... | |
| te::se::SelectedChannel * | m_scMono |
| SE Selected Channel element for red band. More... | |
| te::se::SelectedChannel * | m_scRed |
| SE Selected Channel element for red band. More... | |
| te::qt::widgets::SelectedChannelWidget * | m_sCWidget |
| Selected Channel Widget. More... | |
| std::unique_ptr< Ui::ChannelSelectionWidgetForm > | m_ui |
| Dialog form. More... | |
A dialog used to build a ChannelSelection element.
Definition at line 70 of file ChannelSelectionWidget.h.
| te::qt::widgets::ChannelSelectionWidget::ChannelSelectionWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructs a ChannelSelectionWidget dialog which is a child of parent, with widget flags set to f.
Definition at line 40 of file ChannelSelectionWidget.cpp.
References initialize(), m_sCWidget, m_ui, onBlueChannelSelected(), onGrayScalelSelected(), onGreenChannelSelected(), onRedChannelSelected(), onRGBColorSelected(), and onSelectedChannelChanged().
| te::qt::widgets::ChannelSelectionWidget::~ChannelSelectionWidget | ( | ) |
| te::se::ChannelSelection * te::qt::widgets::ChannelSelectionWidget::getChannelSelection | ( | ) | const |
Definition at line 89 of file ChannelSelectionWidget.cpp.
References te::se::ChannelSelection::clone(), and m_cs.
Referenced by te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer().
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
Definition at line 101 of file ChannelSelectionWidget.cpp.
References m_cs, m_scBlue, m_scGreen, m_scMono, m_scRed, te::se::ChannelSelection::setBlueChannel(), te::se::ChannelSelection::setGrayChannel(), te::se::ChannelSelection::setGreenChannel(), and te::se::ChannelSelection::setRedChannel().
Referenced by ChannelSelectionWidget().
|
protectedslot |
Definition at line 176 of file ChannelSelectionWidget.cpp.
References m_scBlue, m_sCWidget, m_ui, and te::qt::widgets::SelectedChannelWidget::setSelectedChannel().
Referenced by ChannelSelectionWidget().
|
protectedslot |
Definition at line 147 of file ChannelSelectionWidget.cpp.
References m_scMono, m_sCWidget, m_ui, and te::qt::widgets::SelectedChannelWidget::setSelectedChannel().
Referenced by ChannelSelectionWidget().
|
protectedslot |
Definition at line 168 of file ChannelSelectionWidget.cpp.
References m_scGreen, m_sCWidget, m_ui, and te::qt::widgets::SelectedChannelWidget::setSelectedChannel().
Referenced by ChannelSelectionWidget().
|
protectedslot |
Definition at line 183 of file ChannelSelectionWidget.cpp.
References m_scMono, m_sCWidget, m_ui, and te::qt::widgets::SelectedChannelWidget::setSelectedChannel().
|
protectedslot |
Definition at line 160 of file ChannelSelectionWidget.cpp.
References m_scRed, m_sCWidget, m_ui, and te::qt::widgets::SelectedChannelWidget::setSelectedChannel().
Referenced by ChannelSelectionWidget(), and onRGBColorSelected().
|
protectedslot |
Definition at line 136 of file ChannelSelectionWidget.cpp.
References m_ui, and onRedChannelSelected().
Referenced by ChannelSelectionWidget().
|
protectedslot |
Definition at line 191 of file ChannelSelectionWidget.cpp.
References te::qt::widgets::SelectedChannelWidget::getSelectedChannel(), m_scBlue, m_scGreen, m_scMono, m_scRed, m_sCWidget, and m_ui.
Referenced by ChannelSelectionWidget().
| void te::qt::widgets::ChannelSelectionWidget::setChannelSelection | ( | const te::se::ChannelSelection * | cs | ) |
Definition at line 80 of file ChannelSelectionWidget.cpp.
References te::se::ChannelSelection::clone(), and m_cs.
| void te::qt::widgets::ChannelSelectionWidget::setProperty | ( | std::vector< te::rst::BandProperty * > & | p | ) |
Sets the band information.
| p | Vector with band property |
Definition at line 94 of file ChannelSelectionWidget.cpp.
References m_bands, p, and updateUi().
Referenced by te::qt::widgets::RasterSymbolizerDialog::onChannelSelectionClicked(), and te::qt::widgets::RasterSymbolizerDialog::updateUi().
|
protected |
Updates the widget form based on internal mark element.
Definition at line 109 of file ChannelSelectionWidget.cpp.
References m_bands, m_sCWidget, and te::qt::widgets::SelectedChannelWidget::setChannelNames().
Referenced by setProperty().
|
private |
A vector of bands description.
Definition at line 141 of file ChannelSelectionWidget.h.
Referenced by setProperty(), and updateUi().
|
private |
SE Channel Selection element.
Definition at line 139 of file ChannelSelectionWidget.h.
Referenced by getChannelSelection(), initialize(), setChannelSelection(), and ~ChannelSelectionWidget().
|
private |
SE Selected Channel element for red band.
Definition at line 136 of file ChannelSelectionWidget.h.
Referenced by initialize(), onBlueChannelSelected(), and onSelectedChannelChanged().
|
private |
SE Selected Channel element for red band.
Definition at line 135 of file ChannelSelectionWidget.h.
Referenced by initialize(), onGreenChannelSelected(), and onSelectedChannelChanged().
|
private |
SE Selected Channel element for red band.
Definition at line 137 of file ChannelSelectionWidget.h.
Referenced by initialize(), onGrayScalelSelected(), onMonoChannelSelected(), and onSelectedChannelChanged().
|
private |
SE Selected Channel element for red band.
Definition at line 134 of file ChannelSelectionWidget.h.
Referenced by initialize(), onRedChannelSelected(), and onSelectedChannelChanged().
|
private |
Selected Channel Widget.
Definition at line 132 of file ChannelSelectionWidget.h.
Referenced by ChannelSelectionWidget(), onBlueChannelSelected(), onGrayScalelSelected(), onGreenChannelSelected(), onMonoChannelSelected(), onRedChannelSelected(), onSelectedChannelChanged(), and updateUi().
|
private |
Dialog form.
Definition at line 131 of file ChannelSelectionWidget.h.
Referenced by ChannelSelectionWidget(), onBlueChannelSelected(), onGrayScalelSelected(), onGreenChannelSelected(), onMonoChannelSelected(), onRedChannelSelected(), onRGBColorSelected(), and onSelectedChannelChanged().