casa
5.7.0-16
|
Base implementation of PCTool for invisible (non-drawing) tools. More...
#include <PCInvisTool.h>
Public Member Functions | |
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 | positionReady () |
casacore::Function called when a position is ready. 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 | |
casacore::Bool | itsMoved |
Have we moved? More... | |
casacore::Int | itsX |
Pixel coordinates of the position. More... | |
casacore::Int | itsY |
Additional Inherited Members | |
Protected Member Functions inherited from casa::PCTool | |
virtual casacore::Bool | keyPresentlyDown (const PCMotionEvent &ev) |
Indicate whether key is presently pressed. More... | |
Base implementation of PCTool for invisible (non-drawing) tools.
This class implements some of PCTool, and adds additional interface to support invisible (ie. non-drawing) tools for PixelCanvases.
Definition at line 45 of file PCInvisTool.h.
casa::PCInvisTool::PCInvisTool | ( | PixelCanvas * | pcanvas, |
Display::KeySym | keysym = Display::K_Pointer_Button1 |
||
) |
Constructor.
Requires a PixelCanvas to operate on, and a key to catch.
|
virtual |
Destructor.
|
virtual |
Retrieve the position in PixelCanvas pixel coordinates.
|
virtual |
Retrieve the position in fractional PixelCanvas coordinates.
|
virtual |
Functions called by the local event handling operators.
Reimplemented from casa::PCTool.
|
virtual |
virtual void keyReleased(const PCPositionEvent &ev);
Reimplemented from casa::PCTool.
|
inlinevirtual |
casacore::Function called when a position is ready.
Reimplemented in casa::PCITFiddler.
Definition at line 65 of file PCInvisTool.h.
|
private |
Have we moved?
Definition at line 76 of file PCInvisTool.h.
|
private |
Pixel coordinates of the position.
Definition at line 79 of file PCInvisTool.h.
|
private |
Definition at line 79 of file PCInvisTool.h.