casa
$Rev:20696$
|
WorldCanvas event-based polygon region drawer. More...
#include <WCPTRegion.h>
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. |
WorldCanvas event-based polygon region drawer.
Public interface
<prerequisites> WCRectTool </prerequisites>
WCPTRegion stands for WorldCanvas Polygon Tool Region
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.
Polygonal regions are the most common regions, and constructing them visually can be very efficient.
Definition at line 78 of file WCPTRegion.h.
casa::WCPTRegion::WCPTRegion | ( | WorldCanvas * | wcanvas, |
Display::KeySym | keysym = Display::K_Pointer_Button1 |
||
) |
Constructor.
virtual casa::WCPTRegion::~WCPTRegion | ( | ) | [virtual] |
Destructor.
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.