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

WorldCanvas event-based elliptical region drawer. More...

#include <MWCETRegion.h>

Inheritance diagram for casa::MWCETRegion:
casa::MWCEllipseTool casa::MultiWCTool casa::DTVisible casa::DisplayTool casa::WCPositionEH casa::WCMotionEH casa::WCRefreshEH casa::DisplayEH casa::QtOldELRegion casa::QtOldEllipseTool

List of all members.

Public Member Functions

 MWCETRegion (Display::KeySym keysym=Display::K_Pointer_Button2)
 Constructor.
virtual ~MWCETRegion ()
 Destructor.
virtual void handleEvent (DisplayEvent &ev)
 handle events, via new-style interface.

Protected Member Functions

virtual void doubleInside ()
 Handle double-click inside the rectangle.
virtual void regionReady ()
 This function is called when a region is deliberately "finished" by the user.
void getWorldCoords (Vector< Double > &x, Vector< Double > &y)
 get the world coords of the current rectangular region
void getLinearCoords (Vector< Double > &x, Vector< Double > &y)
 get the linear coords of the current rectangular region

Detailed Description

WorldCanvas event-based elliptical region drawer.

Intended use:

Public interface

Review Status

<prerequisites> MWCEllipseTool </prerequisites>

Etymology

MWCETRegion stands for MultiWorldCanvas Ellipse Tool Region

Synopsis

This class finalises the functionality in MWCEllipseTool to implement event-based drawing of elliptical regions on a WorldCanvas. Double clicking inside the constructed ellipse emits the region, whilst pressing Escape cancels the region.

Example

Motivation

Elliptical regions are very common regions, and constructing them visually can be very efficient.

To Do

Definition at line 78 of file MWCETRegion.h.


Constructor & Destructor Documentation

Constructor.

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

Destructor.


Member Function Documentation

virtual void casa::MWCETRegion::doubleInside ( ) [protected, virtual]

Handle double-click inside the rectangle.

Invokes regionReady().

Reimplemented from casa::MWCEllipseTool.

void casa::MWCETRegion::getLinearCoords ( Vector< Double > &  x,
Vector< Double > &  y 
) [protected]

get the linear coords of the current rectangular region

void casa::MWCETRegion::getWorldCoords ( Vector< Double > &  x,
Vector< Double > &  y 
) [protected]

get the world coords of the current rectangular region

virtual void casa::MWCETRegion::handleEvent ( DisplayEvent ev) [virtual]

handle events, via new-style interface.

Currently just for reset event.

Reimplemented from casa::DisplayEH.

virtual void casa::MWCETRegion::regionReady ( ) [inline, protected, virtual]

This function is called when a region is deliberately "finished" by the user.

It can be implemented to do further actions, such as report the region to the application

Reimplemented in casa::QtOldELRegion.

Definition at line 99 of file MWCETRegion.h.


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