krita
KisBasicHistogramProducer Class Reference
Inheritance diagram for KisBasicHistogramProducer:

Detailed Description
Definition at line 33 of file kis_basic_histogram_producers.h.
Public Member Functions | |
KisBasicHistogramProducer (const KisID &id, int channels, int nrOfBins, KisColorSpace *colorSpace) | |
virtual | ~KisBasicHistogramProducer () |
virtual void | clear () |
virtual void | setView (double from, double size) |
virtual const KisID & | id () const |
virtual QValueVector< KisChannelInfo * > | channels () |
virtual Q_INT32 | numberOfBins () |
virtual double | viewFrom () const |
virtual double | viewWidth () const |
virtual Q_INT32 | count () |
virtual Q_INT32 | getBinAt (int channel, int position) |
virtual Q_INT32 | outOfViewLeft (int channel) |
virtual Q_INT32 | outOfViewRight (int channel) |
Protected Types | |
typedef QValueVector< Q_UINT32 > | vBins |
Protected Member Functions | |
virtual int | externalToInternal (int ext) |
void | makeExternalToInternal () |
Protected Attributes | |
QValueVector< vBins > | m_bins |
vBins | m_outLeft |
vBins | m_outRight |
double | m_from |
double | m_width |
Q_INT32 | m_count |
int | m_channels |
int | m_nrOfBins |
KisColorSpace * | m_colorSpace |
KisID | m_id |
QValueVector< Q_INT32 > | m_external |
Member Function Documentation
void KisBasicHistogramProducer::clear | ( | ) | [virtual] |
Clears the data in this producer, but keeps its other settings.
Implements KisHistogramProducer.
Definition at line 54 of file kis_basic_histogram_producers.cc.
virtual int KisBasicHistogramProducer::externalToInternal | ( | int | ext | ) | [inline, protected, virtual] |
The order in which channels() returns is not the same as the internal representation, that of the pixel internally.
This method converts external usage to internal usage. This method uses some basic assumtpions about the layout of the pixel, so _extremely_ exotic spaces might want to override this (see makeExternalToInternal source for those assumptions)
Definition at line 67 of file kis_basic_histogram_producers.h.
The documentation for this class was generated from the following files: