casa::RectRegionEvent Class Reference

Contains info on the WC rectanglar area selected by MWCRTRegion mouse tool. More...

#include <RectRegionEvent.h>

Inheritance diagram for casa::RectRegionEvent:
casa::WorldCanvasEvent casa::DisplayEvent

List of all members.

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
 pixel position of the rectangle
Vector< Int > itsPixTrc

Detailed Description

Contains info on the WC rectanglar area selected by MWCRTRegion mouse tool.

Intended use:

Public interface

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 DisplayEH s registered with that WorldCanvas.

Motivation

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.

Thrown Exceptions

.

Definition at line 86 of file RectRegionEvent.h.


Constructor & Destructor Documentation

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, casacore::max(), and casacore::min().


Member Function Documentation

virtual const Vector<Int> casa::RectRegionEvent::pixBlc (  )  const [inline, virtual]

The corners of the selected rectangle, in screen pixel coordinates.

Definition at line 107 of file RectRegionEvent.h.

References itsPixBlc.

virtual const Vector<Int> casa::RectRegionEvent::pixTrc (  )  const [inline, virtual]

Definition at line 110 of file RectRegionEvent.h.

References itsPixTrc.


Member Data Documentation

Vector<Int> casa::RectRegionEvent::itsPixBlc [private]

pixel position of the rectangle

Definition at line 118 of file RectRegionEvent.h.

Referenced by pixBlc(), and RectRegionEvent().

Vector<Int> casa::RectRegionEvent::itsPixTrc [private]

Definition at line 118 of file RectRegionEvent.h.

Referenced by pixTrc(), and RectRegionEvent().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1