te::qt::widgets::ChannelSelectionWidget Class Reference

A dialog used to build a ChannelSelection element. More...

#include <ChannelSelectionWidget.h>

Inheritance diagram for te::qt::widgets::ChannelSelectionWidget:
QWidget

Public Member Functions

te::se::ChannelSelectiongetChannelSelection () 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::ChannelSelectionm_cs
 SE Channel Selection element. More...
 
te::se::SelectedChannelm_scBlue
 SE Selected Channel element for red band. More...
 
te::se::SelectedChannelm_scGreen
 SE Selected Channel element for red band. More...
 
te::se::SelectedChannelm_scMono
 SE Selected Channel element for red band. More...
 
te::se::SelectedChannelm_scRed
 SE Selected Channel element for red band. More...
 
te::qt::widgets::SelectedChannelWidgetm_sCWidget
 Selected Channel Widget. More...
 
std::unique_ptr< Ui::ChannelSelectionWidgetForm > m_ui
 Dialog form. More...
 

Detailed Description

A dialog used to build a ChannelSelection element.

Definition at line 70 of file ChannelSelectionWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::ChannelSelectionWidget::ChannelSelectionWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::widgets::ChannelSelectionWidget::~ChannelSelectionWidget ( )

Destructor.

Definition at line 75 of file ChannelSelectionWidget.cpp.

References m_cs.

Member Function Documentation

te::se::ChannelSelection * te::qt::widgets::ChannelSelectionWidget::getChannelSelection ( ) const
void te::qt::widgets::ChannelSelectionWidget::initialize ( )
protected
void te::qt::widgets::ChannelSelectionWidget::onBlueChannelSelected ( )
protectedslot
void te::qt::widgets::ChannelSelectionWidget::onGrayScalelSelected ( )
protectedslot
void te::qt::widgets::ChannelSelectionWidget::onGreenChannelSelected ( )
protectedslot
void te::qt::widgets::ChannelSelectionWidget::onMonoChannelSelected ( )
protectedslot
void te::qt::widgets::ChannelSelectionWidget::onRedChannelSelected ( )
protectedslot
void te::qt::widgets::ChannelSelectionWidget::onRGBColorSelected ( )
protectedslot

Definition at line 136 of file ChannelSelectionWidget.cpp.

References m_ui, and onRedChannelSelected().

Referenced by ChannelSelectionWidget().

void te::qt::widgets::ChannelSelectionWidget::onSelectedChannelChanged ( )
protectedslot
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.

Parameters
pVector with band property
Note
The class will NOT take the ownership of the pointer.

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().

void te::qt::widgets::ChannelSelectionWidget::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().

Member Data Documentation

std::vector<te::rst::BandProperty*> te::qt::widgets::ChannelSelectionWidget::m_bands
private

A vector of bands description.

Definition at line 141 of file ChannelSelectionWidget.h.

Referenced by setProperty(), and updateUi().

te::se::ChannelSelection* te::qt::widgets::ChannelSelectionWidget::m_cs
private

SE Channel Selection element.

Definition at line 139 of file ChannelSelectionWidget.h.

Referenced by getChannelSelection(), initialize(), setChannelSelection(), and ~ChannelSelectionWidget().

te::se::SelectedChannel* te::qt::widgets::ChannelSelectionWidget::m_scBlue
private

SE Selected Channel element for red band.

Definition at line 136 of file ChannelSelectionWidget.h.

Referenced by initialize(), onBlueChannelSelected(), and onSelectedChannelChanged().

te::se::SelectedChannel* te::qt::widgets::ChannelSelectionWidget::m_scGreen
private

SE Selected Channel element for red band.

Definition at line 135 of file ChannelSelectionWidget.h.

Referenced by initialize(), onGreenChannelSelected(), and onSelectedChannelChanged().

te::se::SelectedChannel* te::qt::widgets::ChannelSelectionWidget::m_scMono
private

SE Selected Channel element for red band.

Definition at line 137 of file ChannelSelectionWidget.h.

Referenced by initialize(), onGrayScalelSelected(), onMonoChannelSelected(), and onSelectedChannelChanged().

te::se::SelectedChannel* te::qt::widgets::ChannelSelectionWidget::m_scRed
private

SE Selected Channel element for red band.

Definition at line 134 of file ChannelSelectionWidget.h.

Referenced by initialize(), onRedChannelSelected(), and onSelectedChannelChanged().

std::unique_ptr<Ui::ChannelSelectionWidgetForm> te::qt::widgets::ChannelSelectionWidget::m_ui
private

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