OTB  6.7.0
Orfeo Toolbox
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | List of all members
mvd::ColorDynamicsController Class Reference

#include <mvdColorDynamicsController.h>

+ Inheritance diagram for mvd::ColorDynamicsController:
+ Collaboration diagram for mvd::ColorDynamicsController:

Public Slots

void OnGrayChannelIndexChanged (int band)
 
void OnGrayscaleActivated (bool activated)
 
void OnRgbChannelIndexChanged (RgbwChannel channel, int band)
 
- Public Slots inherited from mvd::AbstractModelController
void ResetWidget ()
 

Signals

void HighIntensityChanged (RgbwChannel channel, double value, bool refresh)
 
void HistogramRefreshed ()
 
void LowIntensityChanged (RgbwChannel channel, double value, bool refresh)
 
- Signals inherited from mvd::AbstractModelController
void AboutToConnectModel (AbstractModel *)
 
void AboutToDisconnectModel (AbstractModel *)
 
void ModelConnected (AbstractModel *)
 
void ModelDisconnected (AbstractModel *)
 
void ModelUpdated ()
 

Public Member Functions

 ColorDynamicsController (ColorDynamicsWidget *widget, QObject *p=NULL)
 
 ~ColorDynamicsController () override
 
- Public Member Functions inherited from mvd::AbstractModelController
const AbstractModelGetModel () const
 
AbstractModelGetModel ()
 
template<typename TModel >
const TModel * GetModel () const
 
template<typename TModel >
TModel * GetModel ()
 
const QWidget * GetWidget () const
 
QWidget * GetWidget ()
 
template<typename TWidget >
const TWidget * GetWidget () const
 
template<typename TWidget >
TWidget * GetWidget ()
 
void SetModel (AbstractModel *)
 
 ~AbstractModelController () override
 

Private Slots

void OnApplyAllClicked (RgbwChannel channel, double low, double high)
 
void OnGammaValueChanged (double value)
 
void OnHighIntensityChanged (RgbwChannel channel, double intensity)
 
void OnHighQuantileChanged (RgbwChannel channel, double quantile)
 
void OnLinkToggled (RgbwChannel channel, bool checked)
 
void OnLowIntensityChanged (RgbwChannel channel, double intensity)
 
void OnLowQuantileChanged (RgbwChannel channel, double quantile)
 
void OnNoDataFlagToggled (bool enabled)
 
void OnNoDataValueChanged (double value)
 
void OnResetIntensityClicked (RgbwChannel channel)
 
void OnResetQuantileClicked (RgbwChannel channel)
 
void RefreshHistogram ()
 

Private Member Functions

void ClearWidget () override
 
void Connect (AbstractModel *) override
 
void Disconnect (AbstractModel *) override
 
void ResetIntensities (RgbwChannel)
 
void ResetIntensityRanges (RgbwChannel)
 
void ResetQuantiles (RgbwChannel channels)
 
void RestoreQuantiles (RgbwChannel channels)
 
void SetBoundsEnabled (RgbwChannel, bool)
 
void SetGamma ()
 
void SetIntensities (RgbwChannel channels)
 
void SetNoData ()
 
void virtual_ResetWidget (bool) override
 

Static Private Member Functions

static bool RgbwBounds (CountType &begin, CountType &end, RgbwChannel channels)
 

Additional Inherited Members

- Protected Member Functions inherited from mvd::AbstractModelController
 AbstractModelController (QWidget *widget, QObject *p=NULL)
 

Detailed Description

Color-dynamics widget controller for VectorImageModel objects.

Definition at line 78 of file mvdColorDynamicsController.h.

Constructor & Destructor Documentation

mvd::ColorDynamicsController::ColorDynamicsController ( ColorDynamicsWidget widget,
QObject *  p = NULL 
)

Constructor.

Parameters
widgetControlled widget.
parentParent QObject of this QObject.
mvd::ColorDynamicsController::~ColorDynamicsController ( )
override

Destructor.

Member Function Documentation

void mvd::ColorDynamicsController::ClearWidget ( )
overrideprivatevirtual
void mvd::ColorDynamicsController::Connect ( AbstractModel )
overrideprivatevirtual
void mvd::ColorDynamicsController::Disconnect ( AbstractModel )
overrideprivatevirtual
void mvd::ColorDynamicsController::HighIntensityChanged ( RgbwChannel  channel,
double  value,
bool  refresh 
)
signal
void mvd::ColorDynamicsController::HistogramRefreshed ( )
signal
void mvd::ColorDynamicsController::LowIntensityChanged ( RgbwChannel  channel,
double  value,
bool  refresh 
)
signal
void mvd::ColorDynamicsController::OnApplyAllClicked ( RgbwChannel  channel,
double  low,
double  high 
)
privateslot

Slot called when the apply all button has been clicked.

Parameters
channelRGB channel for which to reset low and high quantiles.
void mvd::ColorDynamicsController::OnGammaValueChanged ( double  value)
privateslot

Slot called when gamma value is changed.

Parameters
valueGamma value.
void mvd::ColorDynamicsController::OnGrayChannelIndexChanged ( int  band)
slot

Slot called when the band-index of the white (gray) channel has changed.

Parameters
bandThe new band-index of the white (gray) channel.
void mvd::ColorDynamicsController::OnGrayscaleActivated ( bool  activated)
slot

Slot called when the activation-state of the grayscale-mode has changed.

Parameters
activatedThe new grayscale-mode activation state.
void mvd::ColorDynamicsController::OnHighIntensityChanged ( RgbwChannel  channel,
double  intensity 
)
privateslot

Slot called when high intensity value of a RGB channel has been edited.

Parameters
channelRGB channel for which the intensity value has changed.
intensityThe new intensity value.
void mvd::ColorDynamicsController::OnHighQuantileChanged ( RgbwChannel  channel,
double  quantile 
)
privateslot

Slot called when high quantile value of a RGB channel has been edited.

Parameters
channelRGB channel for which the quantile value has changed.
quantileThe new quantile value.
void mvd::ColorDynamicsController::OnLinkToggled ( RgbwChannel  channel,
bool  checked 
)
privateslot

Slot called when the link button has been toggled.

Parameters
channelRGB channel for which the link button has been toggled.
checkedThe state of the button.
void mvd::ColorDynamicsController::OnLowIntensityChanged ( RgbwChannel  channel,
double  intensity 
)
privateslot

Slot called when low intensity value of a RGB channel has been edited.

Parameters
channelRGB channel for which the intensity value has changed.
intensityThe new intensity value.
void mvd::ColorDynamicsController::OnLowQuantileChanged ( RgbwChannel  channel,
double  quantile 
)
privateslot

Slot called when low quantile value of a RGB channel has been edited.

Parameters
channelRGB channel for which the quantile value has changed.
quantileThe new quantile value.
void mvd::ColorDynamicsController::OnNoDataFlagToggled ( bool  enabled)
privateslot

Slot called when the NoDataFlagToggled() signal of the controlled widget has been emitted (.

See Also
ColorDynamicsWidget).
Parameters
enabledtrue when the no-data flag is enabled.
void mvd::ColorDynamicsController::OnNoDataValueChanged ( double  value)
privateslot

Slot called when the NoDataValueChanged() signal of the controlled widget has been emitted (.

See Also
ColorDynamicsWidget).
void mvd::ColorDynamicsController::OnResetIntensityClicked ( RgbwChannel  channel)
privateslot

Slot called when the reset intensities button has been clicked.

Parameters
channelRGB channel for which to reset low and high intensities.
void mvd::ColorDynamicsController::OnResetQuantileClicked ( RgbwChannel  channel)
privateslot

Slot called when the reset quantiles button has been clicked.

Parameters
channelRGB channel for which to reset low and high quantiles.
void mvd::ColorDynamicsController::OnRgbChannelIndexChanged ( RgbwChannel  channel,
int  band 
)
slot

Slot called when the band-index of a RGB channel has changed.

Parameters
channelThe RGB channel for which the band-index has changed.
bandThe new band-index of the RGB channel.
void mvd::ColorDynamicsController::RefreshHistogram ( )
privateslot
void mvd::ColorDynamicsController::ResetIntensities ( RgbwChannel  )
private

Reset low and high intensities to default values for given RGB channels.

Parameters
channelsGiven channels for which to reset current-band index.
See Also
RgbBound() for valid values.
void mvd::ColorDynamicsController::ResetIntensityRanges ( RgbwChannel  )
private

Reset intensity ranges to default values for given RGB channels.

Parameters
channelsGiven channels for which to reset current-band index.
See Also
RgbBound() for valid values.
void mvd::ColorDynamicsController::ResetQuantiles ( RgbwChannel  channels)
private

Reset low and high quantiles to default values for given RGB channels.

Parameters
channelsGiven channels for which to reset current-band index.
See Also
RgbBound() for valid values.
void mvd::ColorDynamicsController::RestoreQuantiles ( RgbwChannel  channels)
private

Restore low and high intensities from quantile values stored in widget when enabling intensity-range bounds again.

Parameters
channelsChannels for which to reset intensities.
bool mvd::ColorDynamicsController::RgbwBounds ( CountType begin,
CountType end,
RgbwChannel  channels 
)
inlinestaticprivate

Convenience method used to compute integer indices in order to iterate through RGB channels such as, for example:

for( i=begin; i<end; ++i ) {}
See Also
mvd::RgbwBounds().
Parameters
beginThe resulting first index where to begin iteration.
endThe resulting upper-boundary index of the iteration.
channelsThe channels to be iterated. Valid values are: _ RGBA_CHANNEL_NONE to select no video-channel at all;
  • RGBA_CHANNEL_RED to select red video-channel;
  • RGBA_CHANNEL_GREEN to select green video-channel;
  • RGBA_CHANNEL_BLUE to select blue video-channel;
  • RGBA_CHANNEL_WHITE is equivalent to RGBA_CHANNEL_RGB;
  • RGBA_CHANNEL_RGB to select all RGB video-channels;
  • RGBA_CHANNEL_ALL to select all RGB (without the alpha) video-channels.
Returns
true if iteration indices have been set and loop can be processed.

Definition at line 386 of file mvdColorDynamicsController.h.

References mvd::RgbBounds(), mvd::RGBW_CHANNEL_RGB, mvd::RGBW_CHANNEL_WHITE, and mvd::RgbwBounds().

void mvd::ColorDynamicsController::SetBoundsEnabled ( RgbwChannel  ,
bool   
)
private
void mvd::ColorDynamicsController::SetGamma ( )
private
void mvd::ColorDynamicsController::SetIntensities ( RgbwChannel  channels)
private

Set low and high intensitied of controlled widget based on the values stored in the model settings.

Parameters
channelsRGB/W channels for which to set low and hight intensities.
void mvd::ColorDynamicsController::SetNoData ( )
private
void mvd::ColorDynamicsController::virtual_ResetWidget ( bool  )
overrideprivatevirtual

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