|
Krita Source Code Documentation
|
#include <KoBasicHistogramProducers.h>
Inheritance diagram for KoBasicU8HistogramProducer:Public Member Functions | |
| void | addRegionToBin (const quint8 *pixels, const quint8 *selectionMask, quint32 nPixels, const KoColorSpace *colorSpace) override |
| KoBasicU8HistogramProducer (const KoID &id, const KoColorSpace *colorSpace) | |
| qreal | maximalZoom () const override |
| QString | positionToString (qreal pos) const override |
| ~KoBasicU8HistogramProducer () override | |
Public Member Functions inherited from KoBasicHistogramProducer | |
| QList< KoChannelInfo * > | channels () override |
| void | clear () override |
| qint32 | count () override |
| qint32 | getBinAt (int channel, int position) override |
| const KoID & | id () const override |
| KoBasicHistogramProducer (const KoID &id, int channelCount, int nrOfBins) | |
| KoBasicHistogramProducer (const KoID &id, int nrOfBins, const KoColorSpace *colorSpace) | |
| qint32 | numberOfBins () override |
| qint32 | outOfViewLeft (int channel) override |
| qint32 | outOfViewRight (int channel) override |
| void | setView (qreal from, qreal size) override |
| qreal | viewFrom () const override |
| qreal | viewWidth () const override |
| ~KoBasicHistogramProducer () override | |
Public Member Functions inherited from KoHistogramProducer | |
| virtual qint32 | getBinAt (qint32 channel, qint32 position)=0 |
| KoHistogramProducer () | |
| virtual qint32 | outOfViewLeft (qint32 channel)=0 |
| virtual qint32 | outOfViewRight (qint32 channel)=0 |
| virtual void | setSkipTransparent (bool set) |
| virtual void | setSkipUnselected (bool set) |
| virtual | ~KoHistogramProducer () |
Additional Inherited Members | |
Protected Types inherited from KoBasicHistogramProducer | |
| typedef QVector< quint32 > | vBins |
Protected Member Functions inherited from KoBasicHistogramProducer | |
| virtual int | externalToInternal (int ext) |
| void | makeExternalToInternal () |
Protected Attributes inherited from KoBasicHistogramProducer | |
| QVector< vBins > | m_bins |
| int | m_channels |
| const KoColorSpace * | m_colorSpace |
| qint32 | m_count |
| QVector< qint32 > | m_external |
| qreal | m_from |
| KoID | m_id |
| int | m_nrOfBins |
| vBins | m_outLeft |
| vBins | m_outRight |
| qreal | m_width |
Protected Attributes inherited from KoHistogramProducer | |
| bool | m_skipTransparent |
| bool | m_skipUnselected |
Definition at line 92 of file KoBasicHistogramProducers.h.
| KoBasicU8HistogramProducer::KoBasicU8HistogramProducer | ( | const KoID & | id, |
| const KoColorSpace * | colorSpace ) |
Definition at line 93 of file KoBasicHistogramProducers.cpp.
|
inlineoverride |
Definition at line 96 of file KoBasicHistogramProducers.h.
|
overridevirtual |
Adds the values from the specified array of pixels to the bins – does not reset anything.
| pixels | A pointer an array of pixeldata in the given colorspace |
| selectionMask | a pointer to an array of bytes, where 0 is unselected and 1-255 is degree of selectedness. The array must be just as long as the array of pixels. |
| nPixels | The number of pixels |
| colorSpace | the colorspace that can decode the pixel data. |
Implements KoHistogramProducer.
Definition at line 103 of file KoBasicHistogramProducers.cpp.
References KoColorSpace::channelCount(), KoColorSpace::convertPixelsTo(), KoColorConversionTransformation::Empty, KoColorConversionTransformation::IntentAbsoluteColorimetric, KoBasicHistogramProducer::m_bins, KoBasicHistogramProducer::m_colorSpace, KoBasicHistogramProducer::m_count, KoHistogramProducer::m_skipTransparent, OPACITY_TRANSPARENT_U8, KoColorSpace::opacityU8(), KoColorSpace::pixelSize(), and KoColorSpace::scaleToU8().
|
inlineoverridevirtual |
Implements KoHistogramProducer.
Definition at line 99 of file KoBasicHistogramProducers.h.
|
overridevirtual |
Implements KoHistogramProducer.
Definition at line 98 of file KoBasicHistogramProducers.cpp.
References UINT8_MAX.