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

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

#include <WCPTRegion.h>

Inheritance diagram for casa::WCPTRegion:
casa::WCPolyTool casa::WCTool casa::DTVisible casa::DisplayTool

List of all members.

Public Member Functions

 WCPTRegion (WorldCanvas *wcanvas, Display::KeySym keysym=Display::K_Pointer_Button1)
 Constructor.
virtual ~WCPTRegion ()
 Destructor.
virtual void doubleInside ()
 Functions specific to the region drawing - these are called by lower-level event handlers in the base classes.
virtual void regionReady ()
 This functio is called when a region is deliberately "finished" by the user.

Detailed Description

WorldCanvas event-based polygon region drawer.

Intended use:

Public interface

Review Status

<prerequisites> WCRectTool </prerequisites>

Etymology

WCPTRegion stands for WorldCanvas Polygon Tool Region

Synopsis

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

Example

Motivation

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

To Do

Definition at line 78 of file WCPTRegion.h.


Constructor & Destructor Documentation

Constructor.

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

Destructor.


Member Function Documentation

virtual void casa::WCPTRegion::doubleInside ( ) [virtual]

Functions specific to the region drawing - these are called by lower-level event handlers in the base classes.

Reimplemented from casa::WCPolyTool.

virtual void casa::WCPTRegion::regionReady ( ) [inline, virtual]

This functio 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

Definition at line 96 of file WCPTRegion.h.


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