casa
$Rev:20696$
|
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. | |
virtual | ~PCInvisTool () |
Destructor. | |
virtual void | keyPressed (const PCPositionEvent &ev) |
Functions called by the local event handling operators. | |
virtual void | moved (const PCMotionEvent &ev) |
virtual void keyReleased(const PCPositionEvent &ev); | |
virtual void | positionReady () |
Function called when a position is ready. | |
virtual void | get (Int &x, Int &y) const |
Retrieve the position in PixelCanvas pixel coordinates. | |
virtual void | getFractional (Float &x, Float &y) const |
Retrieve the position in fractional PixelCanvas coordinates. | |
Private Attributes | |
Bool | itsMoved |
Have we moved? | |
Int | itsX |
Pixel coordinates of the position. | |
Int | itsY |
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 casa::PCInvisTool::~PCInvisTool | ( | ) | [virtual] |
Destructor.
virtual void casa::PCInvisTool::get | ( | Int & | x, |
Int & | y | ||
) | const [virtual] |
Retrieve the position in PixelCanvas pixel coordinates.
virtual void casa::PCInvisTool::getFractional | ( | Float & | x, |
Float & | y | ||
) | const [virtual] |
Retrieve the position in fractional PixelCanvas coordinates.
virtual void casa::PCInvisTool::keyPressed | ( | const PCPositionEvent & | ev | ) | [virtual] |
Functions called by the local event handling operators.
Reimplemented from casa::PCTool.
virtual void casa::PCInvisTool::moved | ( | const PCMotionEvent & | ev | ) | [virtual] |
virtual void keyReleased(const PCPositionEvent &ev);
Reimplemented from casa::PCTool.
virtual void casa::PCInvisTool::positionReady | ( | ) | [inline, virtual] |
Function called when a position is ready.
Reimplemented in casa::PCITFiddler.
Definition at line 65 of file PCInvisTool.h.
Bool casa::PCInvisTool::itsMoved [private] |
Have we moved?
Definition at line 76 of file PCInvisTool.h.
Int casa::PCInvisTool::itsX [private] |
Pixel coordinates of the position.
Definition at line 79 of file PCInvisTool.h.
Int casa::PCInvisTool::itsY [private] |
Definition at line 79 of file PCInvisTool.h.