27 #include "../../../common/STLUtils.h" 30 #include "ui_ChannelSelectionWidgetForm.h" 31 #include "../../../raster.h" 32 #include "../../../se.h" 42 m_ui(new
Ui::ChannelSelectionWidgetForm),
43 m_scRed(new
te::se::SelectedChannel),
44 m_scGreen(new
te::se::SelectedChannel),
45 m_scBlue(new
te::se::SelectedChannel),
46 m_scMono(new
te::se::SelectedChannel),
47 m_cs(new
te::se::ChannelSelection)
55 QGridLayout* layout =
new QGridLayout(
m_ui->m_frame);
56 layout->setContentsMargins(0,0,0,0);
111 QStringList bandNames;
113 for(
size_t i = 0; i <
m_bands.size(); ++i)
117 if(
m_bands[i]->m_description.empty())
120 bandInfo.setNum(
m_bands[i]->m_idx);
122 bandNames.push_back(bandInfo);
126 bandNames.push_back(
m_bands[i]->m_description.c_str());
138 m_ui->m_redRadioButton->setEnabled(
true);
139 m_ui->m_greenRadioButton->setEnabled(
true);
140 m_ui->m_blueRadioButton->setEnabled(
true);
141 m_ui->m_monoRadioButton->setEnabled(
false);
143 m_ui->m_redRadioButton->setChecked(
true);
149 m_ui->m_redRadioButton->setEnabled(
false);
150 m_ui->m_greenRadioButton->setEnabled(
false);
151 m_ui->m_blueRadioButton->setEnabled(
false);
152 m_ui->m_monoRadioButton->setEnabled(
true);
154 m_ui->m_monoRadioButton->setChecked(
true);
162 if(
m_ui->m_redRadioButton->isChecked())
170 if(
m_ui->m_greenRadioButton->isChecked())
178 if(
m_ui->m_blueRadioButton->isChecked())
185 if(
m_ui->m_monoRadioButton->isChecked())
193 if(
m_ui->m_redRadioButton->isChecked())
197 else if(
m_ui->m_greenRadioButton->isChecked())
201 else if(
m_ui->m_blueRadioButton->isChecked())
205 else if(
m_ui->m_monoRadioButton->isChecked())
void setRedChannel(SelectedChannel *c)
ChannelSelection * clone() const
It creates a new copy of this object.
void setGrayChannel(SelectedChannel *c)
void setBlueChannel(SelectedChannel *c)
void setGreenChannel(SelectedChannel *c)
ChannelSelection specifies the false-color channel selection for a multi-spectral raster source (such...