krita
KisHistogramView Class Reference
#include <kis_histogram_view.h>
Detailed Description
This class displays a histogram.It has a list of channels it can select. The easy way is to display channelStrings() to the user, and then use a setActiveChannel with the integer the same as the one the selected string in that stringlist has. If the selected one is a producer, the histogram will automatically display all its channels, and color them if that is possible.
You can also set the channels manually, just don't forget that the displayed channels all need to belong to the same producer! If you set them manually, don't forget to set the (non)usage of color as well.
You can either set this to use a specific layer, or use a specific histogram. With the latter, some functionality will disappear, like listProducers(). Setting a histogram will discard info on the layer, and setting a layer will discard info on the histogram.
Definition at line 48 of file kis_histogram_view.h.
Public Slots | |
void | setActiveChannel (int channel) |
void | setHistogramType (enumHistogramType type) |
void | updateHistogram () |
Signals | |
void | rightClicked (const QPoint &pos) |
Public Member Functions | |
KisHistogramView (QWidget *parent=0, const char *name=0, WFlags f=0) | |
virtual | ~KisHistogramView () |
void | setPaintDevice (KisPaintDeviceSP dev) |
void | setHistogram (KisHistogramSP histogram) |
void | setView (double from, double size) |
KisHistogramProducerSP | currentProducer () |
QStringList | channelStrings () |
KisIDList | listProducers () |
void | setCurrentChannels (const KisID &producerID, QValueVector< KisChannelInfo * > channels) |
void | setCurrentChannels (KisHistogramProducerSP producer, QValueVector< KisChannelInfo * > channels) |
bool | hasColor () |
void | setColor (bool set) |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *e) |
Member Function Documentation
KisIDList KisHistogramView::listProducers | ( | ) |
void KisHistogramView::setCurrentChannels | ( | const KisID & | producerID, | |
QValueVector< KisChannelInfo * > | channels | |||
) |
Sets the currently displayed channels to channels of the producer with producerID as ID.
Definition at line 123 of file kis_histogram_view.cc.
void KisHistogramView::setCurrentChannels | ( | KisHistogramProducerSP | producer, | |
QValueVector< KisChannelInfo * > | channels | |||
) |
The documentation for this class was generated from the following files: