casa
$Rev:20696$
|
#include <QtOldMouseTools.qo.h>
Signals | |
void | mouseRegionReady (Record mouseRegion, WorldCanvasHolder *) |
See regionReady() implementation for format of the record. | |
void | echoClicked (Record) |
Public Member Functions | |
QtOldPTRegion (PanelDisplay *pd) | |
~QtOldPTRegion () | |
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) |
virtual void | polygonReady () |
virtual void handleEvent(DisplayEvent& ev); virtual void keyPressed(const WCPositionEvent &ev); | |
Protected Attributes | |
PanelDisplay * | pd_ |
QtOldPTRegion is the Polygon Region mouse tool that sends a signal when a new polygon is ready.
Definition at line 160 of file QtOldMouseTools.qo.h.
casa::QtOldPTRegion::QtOldPTRegion | ( | PanelDisplay * | pd | ) | [inline] |
Definition at line 168 of file QtOldMouseTools.qo.h.
casa::QtOldPTRegion::~QtOldPTRegion | ( | ) | [inline] |
Definition at line 170 of file QtOldMouseTools.qo.h.
virtual void casa::QtOldPTRegion::clicked | ( | Int | x, |
Int | y | ||
) | [protected, virtual] |
Reimplemented from casa::MultiWCTool.
virtual void casa::QtOldPTRegion::doubleClicked | ( | Int | x, |
Int | y | ||
) | [protected, virtual] |
Reimplemented from casa::MultiWCTool.
void casa::QtOldPTRegion::echoClicked | ( | Record | ) | [signal] |
Bool casa::QtOldPTRegion::getMouseRegion | ( | Record & | mouseRegion, |
WorldCanvasHolder *& | wch | ||
) |
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::QtOldPTRegion::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::QtOldPTRegion::polygonReady | ( | ) | [inline, protected, virtual] |
virtual void handleEvent(DisplayEvent& ev); virtual void keyPressed(const WCPositionEvent &ev);
///This is not correct !
This callback is invoked by the base when the polygon is first defined (by a double-click at last point) or when the mouse is released after a move/resize. It was unused in glish. For Qt, this will also signal that the polygon region has been fully 'selected/made ready' (which will preclude the need for the user to double-click [again] inside the polygon to select it). virtual void polygonReady() { regionReady(); } is this fix to 1393?
Reimplemented from casa::MWCPolyTool.
Definition at line 209 of file QtOldMouseTools.qo.h.
virtual void casa::QtOldPTRegion::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::MWCPTRegion.
PanelDisplay* casa::QtOldPTRegion::pd_ [protected] |
Definition at line 211 of file QtOldMouseTools.qo.h.