21 #ifndef mvdColorDynamicsWidget_h
22 #define mvdColorDynamicsWidget_h
27 #include "ConfigureMonteverdi.h"
46 #include "OTBMonteverdiGUIExport.h"
67 class ColorDynamicsWidget;
87 Q_PROPERTY(
bool isNoDataChecked
89 WRITE SetNoDataChecked );
93 WRITE SetNoDataValue );
95 Q_PROPERTY(
int GammaCursorPosition
96 READ GetGammaCursorPosition
97 WRITE SetGammaCursorPosition );
99 Q_PROPERTY(
int MinGamma
103 Q_PROPERTY(
int MaxGamma
107 Q_PROPERTY(
int GammaStep
109 WRITE SetGammaStep );
111 Q_PROPERTY(
double Gamma
137 void SetGrayscaleActivated(
bool activated );
141 bool IsGrayscaleActivated()
const;
145 void SetNoDataChecked(
bool checked );
149 bool IsNoDataChecked()
const;
153 void SetNoDataValue(
double value );
157 double GetNoDataValue()
const;
161 void SetGamma(
double value );
165 double GetGamma()
const;
169 void SetGammaCursorPosition(
int value );
173 int GetGammaCursorPosition()
const;
177 void SetMinGamma(
int value );
181 int GetMinGamma()
const;
185 void SetMaxGamma(
int value );
189 int GetMaxGamma()
const;
193 void SetGammaStep(
int value );
197 int GetGammaStep()
const;
205 void SetNoDataButtonChecked(
bool checked );
238 void ApplyAllClicked(
RgbwChannel,
double,
double );
246 void NoDataFlagToggled(
bool enabled );
250 void NoDataValueChanged(
double value );
254 void NoDataButtonPressed();
258 void GammaCursorPositionChanged(
int value );
262 void GammaValueChanged(
double value );
292 static const char* COLOR_BAND_DYNAMICS_WIDGET_NAMES[];
315 void on_noDataLineEdit_textChanged(
const QString& text );
319 void on_noDataCheckBox_toggled(
bool enabled );
323 void on_noDataButton_toggled(
bool checked );
327 void on_gammaSlider_valueChanged(
int gamma );
329 void on_gammaResetButton_clicked();
342 const ColorBandDynamicsWidget*
346 return findChild< const ColorBandDynamicsWidget* >(
357 return findChild< ColorBandDynamicsWidget* >(
368 return m_IsGrayscaleActivated;
378 #endif // mvdColorDynamicsWidget_h