casa
$Rev:20696$
|
WorldCanvas event-based rectangle region drawer. More...
#include <WCRTRegion.h>
Public Member Functions | |
WCRTRegion (WorldCanvas *wcanvas, Display::KeySym keysym=Display::K_Pointer_Button1) | |
Constructor. | |
virtual | ~WCRTRegion () |
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 function is called when a region is deliberately "finished" by the user. | |
Private Member Functions | |
void | getLinearCoords (Vector< Double > &blc, Vector< Double > &trc) |
get the linear coords of the current rectangular region |
WorldCanvas event-based rectangle region drawer.
Public interface
<prerequisites> WCRectTool </prerequisites>
WCRTRegion stands for WorldCanvas Rectangle Tool Region
This class finalises the functionality in WCRectTool to implement event-based drawing of rectangular regions on a WorldCanvas. Double clicking inside the constructed rectangle emits the region, whilst pressing Escape cancels the region.
Rectangular regions are the most common regions, and constructing them visually can be very efficient.
Definition at line 78 of file WCRTRegion.h.
casa::WCRTRegion::WCRTRegion | ( | WorldCanvas * | wcanvas, |
Display::KeySym | keysym = Display::K_Pointer_Button1 |
||
) |
Constructor.
virtual casa::WCRTRegion::~WCRTRegion | ( | ) | [virtual] |
Destructor.
virtual void casa::WCRTRegion::doubleInside | ( | ) | [virtual] |
Functions specific to the region drawing - these are called by lower-level event handlers in the base classes.
Reimplemented from casa::WCRectTool.
void casa::WCRTRegion::getLinearCoords | ( | Vector< Double > & | blc, |
Vector< Double > & | trc | ||
) | [private] |
get the linear coords of the current rectangular region
virtual void casa::WCRTRegion::regionReady | ( | ) | [inline, 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
Definition at line 96 of file WCRTRegion.h.