casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Signals | Public Member Functions | Protected Member Functions | Protected Attributes
casa::QtPVToolRegion Class Reference

#include <QtMouseTools.qo.h>

Inheritance diagram for casa::QtPVToolRegion:
casa::QtMouseTool casa::MultiPVToolImpl casa::MultiPVTool casa::RegionTool casa::DTVisible casa::viewer::RegionCreator casa::MultiWCTool casa::DisplayTool casa::WCPositionEH casa::WCMotionEH casa::WCRefreshEH casa::DisplayEH casa::QtPVTool

List of all members.

Signals

void mouseRegionReady (Record mouseRegion, WorldCanvasHolder *)
 See regionReady() implementation for format of the record.
void echoClicked (Record)

Public Member Functions

 QtPVToolRegion (viewer::RegionSourceFactory *rf, PanelDisplay *pd)
 ~QtPVToolRegion ()
Bool getMouseRegion (Record &mouseRegion, WorldCanvasHolder *&wch)
 Retrieve the current polygon mouse region record and WCH, if any.

Protected Member Functions

virtual void regionReady ()
 This callback is invoked by the base when the user double-clicks inside a polygon defined previously (but see also polygonReady(), below).
virtual void clicked (Int x, Int y)
virtual void doubleClicked (Int x, Int y)

Protected Attributes

PanelDisplaypd_
 virtual void handleEvent(DisplayEvent& ev); virtual void keyPressed(const WCPositionEvent &ev);

Detailed Description

Synopsis

QtPVToolRegion is the Polygon Region mouse tool that sends a signal when a new polygon is ready.

Definition at line 326 of file QtMouseTools.qo.h.


Constructor & Destructor Documentation

Definition at line 334 of file QtMouseTools.qo.h.

Definition at line 336 of file QtMouseTools.qo.h.


Member Function Documentation

virtual void casa::QtPVToolRegion::clicked ( Int  x,
Int  y 
) [protected, virtual]

Reimplemented from casa::MultiWCTool.

virtual void casa::QtPVToolRegion::doubleClicked ( Int  x,
Int  y 
) [protected, virtual]

Reimplemented from casa::MultiWCTool.

Retrieve the current polygon mouse region record and WCH, if any.

(If nothing is ready, returns False -- be sure to check before using return parameters. See implementation for mouseRegion Record format).

void casa::QtPVToolRegion::mouseRegionReady ( Record  mouseRegion,
WorldCanvasHolder  
) [signal]

See regionReady() implementation for format of the record.

(For some uses, a connecting slot may be able to do without the WCH* parameter).

virtual void casa::QtPVToolRegion::regionReady ( ) [protected, virtual]

This callback is invoked by the base when the user double-clicks inside a polygon defined previously (but see also polygonReady(), below).

This implementation emits the Qt signal mouseRegionReady() with an appropriate Record defining the user's polygon mouse selection. See implementation for format of the record.

Reimplemented from casa::MultiPVToolImpl.


Member Data Documentation

virtual void handleEvent(DisplayEvent& ev); virtual void keyPressed(const WCPositionEvent &ev);

Reimplemented from casa::MultiPVTool.

Definition at line 364 of file QtMouseTools.qo.h.


The documentation for this class was generated from the following file: