digiKam
Digikam::HistogramWidget Class Reference
+ Inheritance diagram for Digikam::HistogramWidget:

Public Slots

void setChannelType (ChannelType channel)
 
void setScaleType (HistogramScale scale)
 
void slotMaxValueChanged (int max)
 
void slotMinValueChanged (int min)
 

Signals

void signalHistogramComputationDone (bool)
 
void signalHistogramComputationFailed ()
 
void signalIntervalChanged (int min, int max)
 
void signalMaximumValueChanged (int)
 

Public Member Functions

int animationState () const
 
ChannelType channelType () const
 
ImageHistogramcurrentHistogram () const
 
 HistogramWidget (int w, int h, QWidget *const parent=nullptr, bool selectMode=true, bool showProgress=true, bool statisticsVisible=false)
 
HistogramRenderingType renderingType () const
 
void reset ()
 
HistogramScale scaleType () const
 
void setAnimationState (int animationState)
 
void setDataLoading ()
 
void setHistogramGuideByColor (const DColor &color)
 
void setLoadingFailed ()
 
void setRenderingType (HistogramRenderingType type)
 
void setStatisticsVisible (bool b)
 
void stopHistogramComputation ()
 
void updateData (const DImg &img, const DImg &sel=DImg(), bool showProgress=true)
 
void updateSelectionData (const DImg &sel, bool showProgress=true)
 
 ~HistogramWidget () override
 

Protected Slots

void slotCalculationAboutToStart ()
 
void slotCalculationFinished (bool success)
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 

Properties

int animationState
 

Constructor & Destructor Documentation

◆ HistogramWidget()

Digikam::HistogramWidget::HistogramWidget ( int  w,
int  h,
QWidget *const  parent = nullptr,
bool  selectMode = true,
bool  showProgress = true,
bool  statisticsVisible = false 
)

Standard constructor. Needed to use updateData() methods after to create valid instance.

◆ ~HistogramWidget()

Digikam::HistogramWidget::~HistogramWidget ( )
override

Member Function Documentation

◆ animationState()

int Digikam::HistogramWidget::animationState ( ) const

◆ channelType()

ChannelType Digikam::HistogramWidget::channelType ( ) const

◆ currentHistogram()

ImageHistogram * Digikam::HistogramWidget::currentHistogram ( ) const

Currently rendered histogram, depending on current rendering type.

References Digikam::ImageSelectionHistogram.

Referenced by setRenderingType(), slotCalculationAboutToStart(), slotCalculationFinished(), and updateData().

◆ mouseMoveEvent()

void Digikam::HistogramWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void Digikam::HistogramWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::HistogramWidget::mouseReleaseEvent ( QMouseEvent *  )
overrideprotected

◆ paintEvent()

◆ renderingType()

HistogramRenderingType Digikam::HistogramWidget::renderingType ( ) const

◆ reset()

void Digikam::HistogramWidget::reset ( )

◆ scaleType()

HistogramScale Digikam::HistogramWidget::scaleType ( ) const

◆ setAnimationState()

void Digikam::HistogramWidget::setAnimationState ( int  animationState)

References animationState.

◆ setChannelType

void Digikam::HistogramWidget::setChannelType ( ChannelType  channel)
slot

◆ setDataLoading()

void Digikam::HistogramWidget::setDataLoading ( )

◆ setHistogramGuideByColor()

void Digikam::HistogramWidget::setHistogramGuideByColor ( const DColor color)

◆ setLoadingFailed()

void Digikam::HistogramWidget::setLoadingFailed ( )

◆ setRenderingType()

◆ setScaleType

void Digikam::HistogramWidget::setScaleType ( HistogramScale  scale)
slot

◆ setStatisticsVisible()

void Digikam::HistogramWidget::setStatisticsVisible ( bool  b)

◆ signalHistogramComputationDone

void Digikam::HistogramWidget::signalHistogramComputationDone ( bool  )
signal

◆ signalHistogramComputationFailed

void Digikam::HistogramWidget::signalHistogramComputationFailed ( )
signal

◆ signalIntervalChanged

void Digikam::HistogramWidget::signalIntervalChanged ( int  min,
int  max 
)
signal

◆ signalMaximumValueChanged

void Digikam::HistogramWidget::signalMaximumValueChanged ( int  )
signal

Referenced by updateData().

◆ slotCalculationAboutToStart

void Digikam::HistogramWidget::slotCalculationAboutToStart ( )
protectedslot

References currentHistogram().

◆ slotCalculationFinished

void Digikam::HistogramWidget::slotCalculationFinished ( bool  success)
protectedslot

References currentHistogram().

◆ slotMaxValueChanged

void Digikam::HistogramWidget::slotMaxValueChanged ( int  max)
slot

◆ slotMinValueChanged

void Digikam::HistogramWidget::slotMinValueChanged ( int  min)
slot

◆ stopHistogramComputation()

void Digikam::HistogramWidget::stopHistogramComputation ( )

◆ updateData()

◆ updateSelectionData()

void Digikam::HistogramWidget::updateSelectionData ( const DImg sel,
bool  showProgress = true 
)

Update image selection histogram data methods.

References updateData().

Property Documentation

◆ animationState

int Digikam::HistogramWidget::animationState
readwrite

Referenced by setAnimationState().


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