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

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

#include <MultiPointToolImpl.h>

Inheritance diagram for casa::MultiPointToolImpl:
casa::MultiPointTool casa::MultiRectTool casa::RegionTool casa::DTVisible casa::viewer::RegionCreator casa::MultiWCTool casa::DisplayTool casa::WCPositionEH casa::WCMotionEH casa::WCRefreshEH casa::DisplayEH casa::QtPointRegion casa::QtCrossTool

List of all members.

Public Member Functions

 MultiPointToolImpl (viewer::RegionSourceFactory *rf, PanelDisplay *pd, Display::KeySym keysym=Display::K_Pointer_Button2)
 Constructor.
virtual ~MultiPointToolImpl ()
 Destructor.
virtual void handleEvent (DisplayEvent &ev)
 handle events, via new-style interface.

Protected Member Functions

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

Detailed Description

WorldCanvas event-based point region drawer.

Intended use:

Public interface

Review Status

<prerequisites> MWCPointTool </prerequisites>

Etymology

MultiPointToolImpl stands for MultiWorldCanvas Point Tool Region

Synopsis

Why this "finalization" is required is beyond me... i.e. why not roll this functionality into the parent class??

Thu Aug 18 20:13:53 UTC 2011

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

Example

Motivation

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

To Do

Definition at line 83 of file MultiPointToolImpl.h.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

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

Handle double-click inside the point.

Invokes regionReady().

Reimplemented from casa::MultiRectTool.

void casa::MultiPointToolImpl::getLinearCoords ( Vector< Double > &  blc,
Vector< Double > &  trc 
) [protected]

get the linear coords of the current elliptical region

void casa::MultiPointToolImpl::getWorldCoords ( Vector< Double > &  blc,
Vector< Double > &  trc 
) [protected]

get the world coords of the current elliptical region

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

handle events, via new-style interface.

Currently just for reset event.

Reimplemented from casa::DisplayEH.

virtual void casa::MultiPointToolImpl::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::QtPointRegion.

Definition at line 104 of file MultiPointToolImpl.h.


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