casa
5.7.0-16
|
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 More... | |
virtual | ~WCInvisTool () |
destructor More... | |
virtual void | keyPressed (const WCPositionEvent &) |
Functions called by the local event handling operators - these handle the drawing of the rectangle. More... | |
virtual void | keyReleased (const WCPositionEvent &) |
virtual void | moved (const WCMotionEvent &, const viewer::region::region_list_type &) |
virtual void | positionReady () |
casacore::Function called when a position is ready More... | |
virtual void | get (casacore::Double &x, casacore::Double &y) const |
Retrieve the position in linear WorldCanvas coordinates. More... | |
virtual void | getFractional (casacore::Double &x, casacore::Double &y) const |
Retrieve the position in fractional linear WorldCanvas coordinates. More... | |
Public Member Functions inherited from casa::WCTool | |
WCTool (WorldCanvas *wcanvas, const Display::KeySym &keysym=Display::K_Pointer_Button1) | |
Constructor taking a pointer to a WorldCanvas to which this tool will attach, and a primary key to respond to. More... | |
virtual | ~WCTool () |
Destructor. More... | |
virtual void | enable () |
Switch the tool on/off - this simply registers or unregisters the event handlers. More... | |
virtual void | disable () |
virtual void | operator() (const WCPositionEvent &ev) |
Required operators for event handling - these are called when an events occur, and distribute the events to the "user-level" methods. More... | |
virtual void | operator() (const WCMotionEvent &ev) |
virtual void | operator() (const WCRefreshEvent &ev) |
virtual void | otherKeyPressed (const WCPositionEvent &) |
virtual void | otherKeyReleased (const WCPositionEvent &) |
virtual void | refresh (const WCRefreshEvent &) |
virtual WorldCanvas * | worldCanvas () const |
Get the WorldCanvas that this Tool is attached to. More... | |
virtual PixelCanvas * | pixelCanvas () const |
Get the PixelCanvas that this Tool is attached to via its WorldCanvas. More... | |
Public Member Functions inherited from casa::DisplayTool | |
virtual | ~DisplayTool () |
Destructor. More... | |
virtual void | setKey (const Display::KeySym &keysym) |
Set/get which key to catch. More... | |
virtual Display::KeySym | getKey () const |
Private Attributes | |
casacore::Bool | itsActive |
are we actively marking positions? More... | |
casacore::Bool | itsMoved |
have we moved More... | |
casacore::Double | itsX |
linear coordinates of the position More... | |
casacore::Double | itsY |
Additional Inherited Members | |
Protected Member Functions inherited from casa::WCTool | |
WCTool () | |
(Required) default constructor. More... | |
WCTool (const WCTool &other) | |
(Required) copy constructor. More... | |
WCTool & | operator= (const WCTool &other) |
(Required) copy assignment. More... | |
Protected Member Functions inherited from casa::DisplayTool | |
DisplayTool (const Display::KeySym &keysym=Display::K_Pointer_Button1) | |
Constructor taking a key to which this tool will initially be attached, typically one of the pointer buttons. More... | |
DisplayTool (const DisplayTool &other) | |
Copy constructor - construct a new DisplayTool from other , using copy semantics. More... | |
DisplayTool & | operator= (const DisplayTool &other) |
Copy assignment using copy semantics. More... | |
Display::KeyModifier | keyModifiers () |
Return the modifier mask. More... | |
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 |
destructor
|
virtual |
Retrieve the position in linear WorldCanvas coordinates.
|
virtual |
Retrieve the position in fractional linear WorldCanvas coordinates.
|
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 |
Reimplemented from casa::WCTool.
|
virtual |
Reimplemented from casa::WCTool.
|
inlinevirtual |
casacore::Function called when a position is ready
Definition at line 68 of file WCInvisTool.h.
|
private |
are we actively marking positions?
Definition at line 79 of file WCInvisTool.h.
|
private |
have we moved
Definition at line 82 of file WCInvisTool.h.
|
private |
linear coordinates of the position
Definition at line 85 of file WCInvisTool.h.
|
private |
Definition at line 85 of file WCInvisTool.h.