27 #include "../../../common/STLUtils.h"
28 #include "../../../se/ShadedRelief.h"
30 #include "ui_ShadedReliefWidgetForm.h"
41 m_ui(new Ui::ShadedReliefWidgetForm),
42 m_sr(new te::se::ShadedRelief)
50 connect(
m_ui->m_reliefFactorDoubleSpinBox, SIGNAL(valueChanged(
double)), SLOT(
onFactorChanged(
double)));
76 m_sr->setBrightnessOnly(m_ui->m_brightnessCheckBox->isChecked());
77 m_sr->setReliefFactor(m_ui->m_reliefFactorDoubleSpinBox->value());
82 m_ui->m_brightnessCheckBox->setChecked(m_sr->isBrightnessOnly());
83 m_ui->m_reliefFactorDoubleSpinBox->setValue(m_sr->getReliefFactor());
88 m_sr->setBrightnessOnly(flag);
93 m_sr->setReliefFactor(value);
void initialize()
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
ShadedRelief * clone() const
It creates a new copy of this object.
~ShadedReliefWidget()
Destructor.
void updateUi()
Updates the widget form based on internal fill element.
void setShadedRelief(const te::se::ShadedRelief *sr)
void onFactorChanged(double value)
std::auto_ptr< Ui::ShadedReliefWidgetForm > m_ui
Dialog form.
void onBrightnessToggled(bool flag)
ShadedRelief specifies the application of relief shading (or "hill shading") to a DEM raster to give ...
ShadedReliefWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a ShadedReliefWidget dialog which is a child of parent, with widget flags set to f...
te::se::ShadedRelief * getShadedRelief() const