Colormap fiddling on the PixelCanvas. More...
#include <PCITFiddler.h>
Public Types | |
| enum | FiddleType { StretchAndShift, BrightnessAndContrast } |
Public Member Functions | |
| PCITFiddler (PixelCanvas *pcanvas, const PCITFiddler::FiddleType &fiddletype=PCITFiddler::StretchAndShift, Display::KeySym keysym=Display::K_Pointer_Button1) | |
| Constructor. | |
| virtual | ~PCITFiddler () |
| Destructor. | |
| virtual void | setFiddleType (const PCITFiddler::FiddleType &fiddletype) |
| Set/get the fiddle type. | |
| virtual PCITFiddler::FiddleType | getFiddleType () |
| virtual void | positionReady () |
| This function is called when a new position is ready. | |
Private Attributes | |
| PCITFiddler::FiddleType | itsFiddleType |
Colormap fiddling on the PixelCanvas.
This class provides colormap fiddling via an invisible tool which gets registered with a specific PixelCanvas.
Definition at line 45 of file PCITFiddler.h.
Definition at line 49 of file PCITFiddler.h.
| casa::PCITFiddler::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 casa::PCITFiddler::~PCITFiddler | ( | ) | [virtual] |
Destructor.
| virtual PCITFiddler::FiddleType casa::PCITFiddler::getFiddleType | ( | ) | [inline, virtual] |
Definition at line 68 of file PCITFiddler.h.
References itsFiddleType.
| virtual void casa::PCITFiddler::positionReady | ( | ) | [virtual] |
This function is called when a new position is ready.
We implement it to fiddle the Colormap in this class.
Reimplemented from casa::PCInvisTool.
| virtual void casa::PCITFiddler::setFiddleType | ( | const PCITFiddler::FiddleType & | fiddletype | ) | [virtual] |
Set/get the fiddle type.
Definition at line 79 of file PCITFiddler.h.
Referenced by getFiddleType().
1.6.1