casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions
casa::WCRTZoomer Class Reference

WorldCanvas event-based zoomer. More...

#include <WCRTZoomer.h>

Inheritance diagram for casa::WCRTZoomer:
casa::WCRectTool casa::WCTool casa::DTVisible casa::DisplayTool

List of all members.

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

Detailed Description

WorldCanvas event-based zoomer.

Intended use:

Public interface

Review Status

<prerequisites> WCRectTool </prerequisites>

Etymology

WCRTZoomer stands for WorldCanvas Rectangling Tool Zoomer

Synopsis

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.

Example

Motivation

Zooming is an essential tool for interacting with data displays.

To Do

Definition at line 77 of file WCRTZoomer.h.


Constructor & Destructor Documentation

Constructor.

virtual casa::WCRTZoomer::~WCRTZoomer ( ) [virtual]

Destructor.


Member Function Documentation

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


The documentation for this class was generated from the following file: