RectRegionEvent.h
Classes
- RectRegionEvent -- Contains info on the WC rectanglar area selected by MWCRTRegion mouse tool (full description)
Interface
- Public Members
- RectRegionEvent(WorldCanvas *wc, const Int pixX1, const Int pixY1, const Int pixX2, const Int pixY2) :
- WorldCanvasEvent(wc), itsPixBlc(2), itsPixTrc(2)
- virtual const Vector<Int> pixBlc() const
- virtual const Vector<Int> pixTrc() const
Review Status
- Date Reviewed:
- yyyy/mm/dd
Etymology
"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.
Synopsis
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 DisplayEHs
registered with that WorldCanvas.
Motivation
A mechanism was needed to notify library objects associated with a
WorldCanvas (in particular,
DisplayDatas) 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.
Thrown Exceptions
To Do
Member Description
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
virtual const Vector<Int> pixTrc() const
The corners of the selected rectangle, in screen pixel coordinates.