PCITFiddler.h

Classes

PCITFiddler -- Colormap fiddling on the PixelCanvas. (full description)

class PCITFiddler : public PCInvisTool

Types

enum FiddleType

StretchAndShift
BrightnessAndContrast

Interface

Public Members
PCITFiddler(PixelCanvas *pcanvas, const PCITFiddler::FiddleType &fiddletype = PCITFiddler::StretchAndShift, Display::KeySym keysym = Display::K_Pointer_Button1)
virtual ~PCITFiddler()
virtual void setFiddleType(const PCITFiddler::FiddleType &fiddletype)
virtual PCITFiddler::FiddleType getFiddleType()
virtual void positionReady()

Description

Synopsis

This class provides colormap fiddling via an invisible tool which gets registered with a specific PixelCanvas.

Member Description

enum FiddleType

PCITFiddler(PixelCanvas *pcanvas, const PCITFiddler::FiddleType &fiddletype = PCITFiddler::StretchAndShift, Display::KeySym keysym = Display::K_Pointer_Button1)

Constructor. Requires a PixelCanvas to fiddle upon, and optional specification of the fiddling type and key to detect.

virtual ~PCITFiddler()

Destructor.

virtual void setFiddleType(const PCITFiddler::FiddleType &fiddletype)
virtual PCITFiddler::FiddleType getFiddleType()

Set/get the fiddle type.

virtual void positionReady()

This function is called when a new position is ready. We implement it to fiddle the Colormap in this class.