casa
$Rev:20696$
|
Base implementation of WCTool for invisible (non-drawing) tools. More...
#include <WCInvisTool.h>
Public Member Functions | |
WCInvisTool (WorldCanvas *wcanvas, Display::KeySym keysym=Display::K_Pointer_Button1) | |
constructor | |
virtual | ~WCInvisTool () |
destructor | |
virtual void | keyPressed (const WCPositionEvent &) |
Functions called by the local event handling operators - these handle the drawing of the rectangle. | |
virtual void | keyReleased (const WCPositionEvent &) |
virtual void | moved (const WCMotionEvent &, const viewer::region::region_list_type &) |
virtual void | positionReady () |
Function called when a position is ready. | |
virtual void | get (Double &x, Double &y) const |
Retrieve the position in linear WorldCanvas coordinates. | |
virtual void | getFractional (Double &x, Double &y) const |
Retrieve the position in fractional linear WorldCanvas coordinates. | |
Private Attributes | |
Bool | itsActive |
are we actively marking positions? | |
Bool | itsMoved |
have we moved | |
Double | itsX |
linear coordinates of the position | |
Double | itsY |
Base implementation of WCTool for invisible (non-drawing) tools.
This class implements some of WCTool, and adds additional interface to support invisible (ie. non-drawing) tools for WorldCanvases.
Definition at line 45 of file WCInvisTool.h.
casa::WCInvisTool::WCInvisTool | ( | WorldCanvas * | wcanvas, |
Display::KeySym | keysym = Display::K_Pointer_Button1 |
||
) |
constructor
virtual casa::WCInvisTool::~WCInvisTool | ( | ) | [virtual] |
destructor
virtual void casa::WCInvisTool::get | ( | Double & | x, |
Double & | y | ||
) | const [virtual] |
Retrieve the position in linear WorldCanvas coordinates.
virtual void casa::WCInvisTool::getFractional | ( | Double & | x, |
Double & | y | ||
) | const [virtual] |
Retrieve the position in fractional linear WorldCanvas coordinates.
virtual void casa::WCInvisTool::keyPressed | ( | const WCPositionEvent & | ) | [virtual] |
Functions called by the local event handling operators - these handle the drawing of the rectangle.
In special conditions, namely double clicking the key, they will pass control on to the doubleInside and doubleOutside functions
Reimplemented from casa::WCTool.
virtual void casa::WCInvisTool::keyReleased | ( | const WCPositionEvent & | ) | [virtual] |
Reimplemented from casa::WCTool.
virtual void casa::WCInvisTool::moved | ( | const WCMotionEvent & | , |
const viewer::region::region_list_type & | |||
) | [virtual] |
Reimplemented from casa::WCTool.
virtual void casa::WCInvisTool::positionReady | ( | ) | [inline, virtual] |
Function called when a position is ready.
Definition at line 68 of file WCInvisTool.h.
Bool casa::WCInvisTool::itsActive [private] |
are we actively marking positions?
Definition at line 79 of file WCInvisTool.h.
Bool casa::WCInvisTool::itsMoved [private] |
have we moved
Definition at line 82 of file WCInvisTool.h.
Double casa::WCInvisTool::itsX [private] |
linear coordinates of the position
Definition at line 85 of file WCInvisTool.h.
Double casa::WCInvisTool::itsY [private] |
Definition at line 85 of file WCInvisTool.h.