casa
5.7.0-16
|
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. More... | |
virtual | ~PCITFiddler () |
Destructor. More... | |
virtual void | setFiddleType (const PCITFiddler::FiddleType &fiddletype) |
Set/get the fiddle type. More... | |
virtual PCITFiddler::FiddleType | getFiddleType () |
virtual void | positionReady () |
This function is called when a new position is ready. More... | |
Public Member Functions inherited from casa::PCInvisTool | |
PCInvisTool (PixelCanvas *pcanvas, Display::KeySym keysym=Display::K_Pointer_Button1) | |
Constructor. More... | |
virtual | ~PCInvisTool () |
Destructor. More... | |
virtual void | keyPressed (const PCPositionEvent &ev) |
Functions called by the local event handling operators. More... | |
virtual void | moved (const PCMotionEvent &ev) |
virtual void keyReleased(const PCPositionEvent &ev); More... | |
virtual void | get (casacore::Int &x, casacore::Int &y) const |
Retrieve the position in PixelCanvas pixel coordinates. More... | |
virtual void | getFractional (casacore::Float &x, casacore::Float &y) const |
Retrieve the position in fractional PixelCanvas coordinates. More... | |
Public Member Functions inherited from casa::PCTool | |
PCTool (PixelCanvas *pcanvas, Display::KeySym keysym=Display::K_Pointer_Button1) | |
Constructor. More... | |
virtual | ~PCTool () |
Destructor. More... | |
virtual void | enable () |
Switch the tool on/off. More... | |
virtual void | disable () |
virtual void | operator() (const PCPositionEvent &ev) |
Required operators for event handling. More... | |
virtual void | operator() (const PCMotionEvent &ev) |
virtual void | operator() (const PCRefreshEvent &ev) |
virtual void | keyReleased (const PCPositionEvent &ev) |
virtual void | otherKeyPressed (const PCPositionEvent &ev) |
virtual void | otherKeyReleased (const PCPositionEvent &ev) |
virtual void | refresh (const PCRefreshEvent &ev) |
virtual PixelCanvas * | pixelCanvas () const |
Get the PixelCanvas to which this Tool is attached. More... | |
virtual void | setKey (const Display::KeySym &keysym) |
Set/get which key to catch. More... | |
virtual Display::KeySym | getKey () const |
Private Attributes | |
PCITFiddler::FiddleType | itsFiddleType |
Additional Inherited Members | |
Protected Member Functions inherited from casa::PCTool | |
virtual casacore::Bool | keyPresentlyDown (const PCMotionEvent &ev) |
Indicate whether key is presently pressed. More... | |
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.
Enumerator | |
---|---|
StretchAndShift | |
BrightnessAndContrast |
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 |
Destructor.
|
inlinevirtual |
Definition at line 68 of file PCITFiddler.h.
References itsFiddleType.
|
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 |
Set/get the fiddle type.
|
private |
Definition at line 79 of file PCITFiddler.h.
Referenced by getFiddleType().