casa
$Rev:20696$
|
WorldCanvas event-based zoomer. More...
#include <WCRTZoomer.h>
Public Member Functions | |
WCRTZoomer (WorldCanvas *wcanvas, Display::KeySym keysym=Display::K_Pointer_Button1) | |
Constructor. | |
virtual | ~WCRTZoomer () |
Destructor. | |
virtual void | doubleInside () |
Functions specific to the zooming - these are called by lower-level event handlers in the base classes. | |
virtual void | doubleOutside () |
virtual void | zoomed (const Vector< Double > &linBlc, const Vector< Double > &linTrc) |
This function is called when a zoom occurs. | |
Private Member Functions | |
void | getLinearCoords (Vector< Double > &blc, Vector< Double > &trc) |
get the linear coords of the current zoom box |
WorldCanvas event-based zoomer.
Public interface
<prerequisites> WCRectTool </prerequisites>
WCRTZoomer stands for WorldCanvas Rectangling Tool Zoomer
This class finalises the functionality in WCRectTool to implement event-based zooming on a WorldCanvas. Double clicking inside the constructed rectangle results in zooming in; double clicking outside the rectangle gives zooming out.
Zooming is an essential tool for interacting with data displays.
Definition at line 77 of file WCRTZoomer.h.
casa::WCRTZoomer::WCRTZoomer | ( | WorldCanvas * | wcanvas, |
Display::KeySym | keysym = Display::K_Pointer_Button1 |
||
) |
Constructor.
virtual casa::WCRTZoomer::~WCRTZoomer | ( | ) | [virtual] |
Destructor.
virtual void casa::WCRTZoomer::doubleInside | ( | ) | [virtual] |
Functions specific to the zooming - these are called by lower-level event handlers in the base classes.
Reimplemented from casa::WCRectTool.
virtual void casa::WCRTZoomer::doubleOutside | ( | ) | [virtual] |
Reimplemented from casa::WCRectTool.
void casa::WCRTZoomer::getLinearCoords | ( | Vector< Double > & | blc, |
Vector< Double > & | trc | ||
) | [private] |
get the linear coords of the current zoom box
virtual void casa::WCRTZoomer::zoomed | ( | const Vector< Double > & | linBlc, |
const Vector< Double > & | linTrc | ||
) | [virtual] |
This function is called when a zoom occurs.
It is supplied with the linear coords of the new zoom box, and thus can be implemented to do further actions, or perhaps report the new zoom box to the application