chalk

#include <kis_histogram_view.h>

Public Slots

void setActiveChannel (int channel)
void setHistogramType (enumHistogramType type)
void updateHistogram ()

Signals

void rightClicked (const TQPoint &pos)

Public Member Functions

 KisHistogramView (TQWidget *parent=0, const char *name=0, WFlags f=0)
void setPaintDevice (KisPaintDeviceSP dev)
void setHistogram (KisHistogramSP histogram)
void setView (double from, double size)
KisHistogramProducerSP currentProducer ()
TQStringList channelStrings ()
KisIDList listProducers ()
void setCurrentChannels (const KisID &producerID, TQValueVector< KisChannelInfo * > channels)
void setCurrentChannels (KisHistogramProducerSP producer, TQValueVector< KisChannelInfo * > channels)
bool hasColor ()
void setColor (bool set)

Protected Member Functions

virtual void mousePressEvent (TQMouseEvent *e)

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.

Constructor & Destructor Documentation

◆ KisHistogramView()

KisHistogramView::KisHistogramView ( TQWidget * parent = 0,
const char * name = 0,
WFlags f = 0 )

Definition at line 41 of file kis_histogram_view.cpp.

◆ ~KisHistogramView()

KisHistogramView::~KisHistogramView ( )
virtual

Definition at line 50 of file kis_histogram_view.cpp.

Member Function Documentation

◆ channelStrings()

TQStringList KisHistogramView::channelStrings ( )

Definition at line 111 of file kis_histogram_view.cpp.

◆ currentProducer()

KisHistogramProducerSP KisHistogramView::currentProducer ( )

Definition at line 106 of file kis_histogram_view.cpp.

◆ hasColor()

bool KisHistogramView::hasColor ( )

Definition at line 161 of file kis_histogram_view.cpp.

◆ listProducers()

KisIDList KisHistogramView::listProducers ( )

Lists all producers currently available.

Definition at line 116 of file kis_histogram_view.cpp.

◆ mousePressEvent()

void KisHistogramView::mousePressEvent ( TQMouseEvent * e)
protectedvirtual

Definition at line 346 of file kis_histogram_view.cpp.

◆ setActiveChannel

void KisHistogramView::setActiveChannel ( int channel)
slot

Definition at line 174 of file kis_histogram_view.cpp.

◆ setColor()

void KisHistogramView::setColor ( bool set)

Definition at line 166 of file kis_histogram_view.cpp.

◆ setCurrentChannels() [1/2]

void KisHistogramView::setCurrentChannels ( const KisID & producerID,
TQValueVector< 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.cpp.

◆ setCurrentChannels() [2/2]

void KisHistogramView::setCurrentChannels ( KisHistogramProducerSP producer,
TQValueVector< KisChannelInfo * > channels )

Be careful, producer will be modified.

Definition at line 130 of file kis_histogram_view.cpp.

◆ setHistogram()

void KisHistogramView::setHistogram ( KisHistogramSP histogram)

Definition at line 71 of file kis_histogram_view.cpp.

◆ setHistogramType

void KisHistogramView::setHistogramType ( enumHistogramType type)
slot

Definition at line 214 of file kis_histogram_view.cpp.

◆ setPaintDevice()

void KisHistogramView::setPaintDevice ( KisPaintDeviceSP dev)

Definition at line 54 of file kis_histogram_view.cpp.

◆ setView()

void KisHistogramView::setView ( double from,
double size )

Definition at line 94 of file kis_histogram_view.cpp.

◆ updateHistogram

void KisHistogramView::updateHistogram ( )
slot

Definition at line 264 of file kis_histogram_view.cpp.


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