casa
5.7.0-16
|
Contains info on the WC rectanglar area selected by MWCRTRegion mouse tool. More...
#include <RectRegionEvent.h>
Public Member Functions | |
RectRegionEvent (WorldCanvas *wc, const casacore::Int pixX1, const casacore::Int pixY1, const casacore::Int pixX2, const casacore::Int pixY2) | |
Constructor taking a pointer to the WorldCanvas where the event occured, and the pixel coordinates of the rectangle. More... | |
virtual const casacore::Vector < casacore::Int > | pixBlc () const |
The corners of the selected rectangle, in screen pixel coordinates. More... | |
virtual const casacore::Vector < casacore::Int > | pixTrc () const |
Public Member Functions inherited from casa::WorldCanvasEvent | |
WorldCanvasEvent (WorldCanvas *wc) | |
Constructor, taking a pointer to a WorldCanvas. More... | |
virtual | ~WorldCanvasEvent () |
Destructor. More... | |
virtual WorldCanvas * | worldCanvas () const |
Return a pointer to the WorldCanvas on which the event occurred. More... | |
Public Member Functions inherited from casa::DisplayEvent | |
DisplayEvent () | |
Constructor. More... | |
DisplayEvent (const DisplayEvent &other) | |
Copy constructor - construct a new DisplayEvent from other . More... | |
virtual | ~DisplayEvent () |
Destructor. More... | |
DisplayEvent & | operator= (const DisplayEvent &other) |
Copy assignment using copy semantics. More... | |
virtual casacore::Double | timeOfEvent () const |
Return the Julian date (in fractional seconds) that this event occured. More... | |
Private Attributes | |
casacore::Vector< casacore::Int > | itsPixBlc |
pixel position of the rectangle More... | |
casacore::Vector< casacore::Int > | itsPixTrc |
Additional Inherited Members | |
Protected Member Functions inherited from casa::WorldCanvasEvent | |
WorldCanvasEvent () | |
(Required) default constructor. More... | |
WorldCanvasEvent (const WorldCanvasEvent &other) | |
(Required) copy constructor. More... | |
WorldCanvasEvent & | operator= (const WorldCanvasEvent &other) |
(Required) copy assignment. More... | |
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.
|
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.
|
inlinevirtual |
The corners of the selected rectangle, in screen pixel coordinates.
Definition at line 107 of file RectRegionEvent.h.
References itsPixBlc.
|
inlinevirtual |
Definition at line 110 of file RectRegionEvent.h.
References itsPixTrc.
|
private |
pixel position of the rectangle
Definition at line 118 of file RectRegionEvent.h.
Referenced by pixBlc(), and RectRegionEvent().
|
private |
Definition at line 118 of file RectRegionEvent.h.
Referenced by pixTrc(), and RectRegionEvent().