casa
$Rev:20696$
|
Multi WorldCanvas event-based position velocity tool. More...
#include <MWCPositionVelocityTool.h>
Public Member Functions | |
MWCPositionVelocityTool (Display::KeySym keysym=Display::K_Pointer_Button1, Bool scrollingAllowed=True) | |
Constructor. | |
virtual | ~MWCPositionVelocityTool () |
Destructor. | |
virtual void | reset (Bool skipRefresh=False) |
Reset to non-showing, non-active. | |
Protected Member Functions | |
virtual void | keyPressed (const WCPositionEvent &) |
Functions called by the base class mouse event handling operators - these maintain the state of the pan vector and order it to be drawn via refresh(). | |
virtual void | keyReleased (const WCPositionEvent &) |
virtual void | moved (const WCMotionEvent &, const viewer::region::region_list_type &) |
virtual void | draw (const WCRefreshEvent &, const viewer::region::region_list_type &) |
draw the distance vector on a PixelCanvas. | |
Private Attributes | |
Bool | itsActive |
Should we respond to mouse movement and button release? Should we draw? Set when the button is pushed in one of the tool's WCs. | |
Bool | itsEqualUnits |
are the units in x and y identical? | |
Int | itsX1 |
pixel coordinates of the pan vector. | |
Int | itsY1 |
Int | itsX2 |
Int | itsY2 |
Int | itsX3 |
Int | itsY3 |
Int | itsRaIndex |
axis index for RA and DEC | |
Int | itsDecIndex |
Multi WorldCanvas event-based position velocity tool.
Public interface
<prerequisites> </prerequisites>
MWCPositionVelocityTool implements a position-velocity tool using the MultiWorldCanvas
Definition at line 67 of file MWCPositionVelocityTool.h.
casa::MWCPositionVelocityTool::MWCPositionVelocityTool | ( | Display::KeySym | keysym = Display::K_Pointer_Button1 , |
Bool | scrollingAllowed = True |
||
) |
Constructor.
virtual casa::MWCPositionVelocityTool::~MWCPositionVelocityTool | ( | ) | [virtual] |
Destructor.
virtual void casa::MWCPositionVelocityTool::draw | ( | const WCRefreshEvent & | , |
const viewer::region::region_list_type & | |||
) | [protected, virtual] |
draw the distance vector on a PixelCanvas.
(To be called only by the base class refresh event handler).
Reimplemented from casa::MultiWCTool.
virtual void casa::MWCPositionVelocityTool::keyPressed | ( | const WCPositionEvent & | ) | [protected, virtual] |
Functions called by the base class mouse event handling operators - these maintain the state of the pan vector and order it to be drawn via refresh().
Reimplemented from casa::MultiWCTool.
virtual void casa::MWCPositionVelocityTool::keyReleased | ( | const WCPositionEvent & | ) | [protected, virtual] |
Reimplemented from casa::MultiWCTool.
virtual void casa::MWCPositionVelocityTool::moved | ( | const WCMotionEvent & | , |
const viewer::region::region_list_type & | |||
) | [protected, virtual] |
Reimplemented from casa::MultiWCTool.
virtual void casa::MWCPositionVelocityTool::reset | ( | Bool | skipRefresh = False | ) | [virtual] |
Reset to non-showing, non-active.
Refreshes if necessary to erase (unless skipRefresh==True). (Does not unregister from WCs or disable future event handling).
Reimplemented from casa::MultiWCTool.
Bool casa::MWCPositionVelocityTool::itsActive [private] |
Should we respond to mouse movement and button release? Should we draw? Set when the button is pushed in one of the tool's WCs.
Definition at line 98 of file MWCPositionVelocityTool.h.
Definition at line 107 of file MWCPositionVelocityTool.h.
are the units in x and y identical?
Definition at line 101 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsRaIndex [private] |
axis index for RA and DEC
Definition at line 107 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsX1 [private] |
pixel coordinates of the pan vector.
1 = anchor, 2 = new position.
Definition at line 104 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsX2 [private] |
Definition at line 104 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsX3 [private] |
Definition at line 104 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsY1 [private] |
Definition at line 104 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsY2 [private] |
Definition at line 104 of file MWCPositionVelocityTool.h.
Int casa::MWCPositionVelocityTool::itsY3 [private] |
Definition at line 104 of file MWCPositionVelocityTool.h.