casa
$Rev:20696$
|
Contains info on the WC rectanglar area selected by MWCRTRegion mouse tool. More...
#include <RectRegionEvent.h>
Public Member Functions | |
RectRegionEvent (WorldCanvas *wc, const Int pixX1, const Int pixY1, const Int pixX2, const Int pixY2) | |
Constructor taking a pointer to the WorldCanvas where the event occured, and the pixel coordinates of the rectangle. | |
virtual const Vector< Int > | pixBlc () const |
The corners of the selected rectangle, in screen pixel coordinates. | |
virtual const Vector< Int > | pixTrc () const |
Private Attributes | |
Vector< Int > | itsPixBlc |
Vector< Int > | itsPixTrc |
Contains info on the WC rectanglar area selected by MWCRTRegion mouse tool.
Public interface
"RectRegionEvent" holds information about a rectangular 'region' selected by the user with the MWCRTRegion mouse tool. NB: glish uses the term 'pseudoregion' instead to refer areas selected by MWCRTRegion et. al. In the context of Image Analysis, 'Region' refers to a more complex object, which may be assembled from multiple pseudoregions.
RectRegionEvent is created by the MWCRTRegion display library mouse tool, when a rectangular area is selected by it on a WorldCanvas where the tool is active. The event is passed (via WorldCanvas::sendEvent()) to the generic DisplayEH s registered with that WorldCanvas.
A mechanism was needed to notify library objects associated with a WorldCanvas (in particular, DisplayData s) when a rectangular region was selected on the WC via MWCRTRegion. Formerly, this information was sent only to glish. This event is on a different level from the mouse/keyboard WorldCanvasEvents and serves a different purpose, so a new event type was created.
.
Definition at line 86 of file RectRegionEvent.h.
casa::RectRegionEvent::RectRegionEvent | ( | WorldCanvas * | wc, |
const Int | pixX1, | ||
const Int | pixY1, | ||
const Int | pixX2, | ||
const Int | pixY2 | ||
) | [inline] |
Constructor taking a pointer to the WorldCanvas where the event occured, and the pixel coordinates of the rectangle.
Definition at line 92 of file RectRegionEvent.h.
References itsPixBlc, itsPixTrc, casa::max(), and casa::min().
virtual const Vector<Int> casa::RectRegionEvent::pixBlc | ( | ) | const [inline, virtual] |
The corners of the selected rectangle, in screen pixel coordinates.
Definition at line 106 of file RectRegionEvent.h.
References itsPixBlc.
virtual const Vector<Int> casa::RectRegionEvent::pixTrc | ( | ) | const [inline, virtual] |
Definition at line 107 of file RectRegionEvent.h.
References itsPixTrc.
Vector<Int> casa::RectRegionEvent::itsPixBlc [private] |
pixel position of the rectangle
Definition at line 113 of file RectRegionEvent.h.
Referenced by pixBlc(), and RectRegionEvent().
Vector<Int> casa::RectRegionEvent::itsPixTrc [private] |
Definition at line 113 of file RectRegionEvent.h.
Referenced by pixTrc(), and RectRegionEvent().