casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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

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 WorldCanvasworldCanvas () 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...
 
DisplayEventoperator= (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::IntitsPixBlc
 pixel position of the rectangle More...
 
casacore::Vector< casacore::IntitsPixTrc
 

Additional Inherited Members

- Protected Member Functions inherited from casa::WorldCanvasEvent
 WorldCanvasEvent ()
 (Required) default constructor. More...
 
 WorldCanvasEvent (const WorldCanvasEvent &other)
 (Required) copy constructor. More...
 
WorldCanvasEventoperator= (const WorldCanvasEvent &other)
 (Required) copy assignment. More...
 

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 casacore::Int  pixX1,
const casacore::Int  pixY1,
const casacore::Int  pixX2,
const casacore::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, max, and min.

Member Function Documentation

virtual const casacore::Vector<casacore::Int> casa::RectRegionEvent::pixBlc ( ) const
inlinevirtual

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

Definition at line 107 of file RectRegionEvent.h.

References itsPixBlc.

virtual const casacore::Vector<casacore::Int> casa::RectRegionEvent::pixTrc ( ) const
inlinevirtual

Definition at line 110 of file RectRegionEvent.h.

References itsPixTrc.

Member Data Documentation

casacore::Vector<casacore::Int> casa::RectRegionEvent::itsPixBlc
private

pixel position of the rectangle

Definition at line 118 of file RectRegionEvent.h.

Referenced by pixBlc(), and RectRegionEvent().

casacore::Vector<casacore::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: