casa
5.7.0-16
|
#include <QtMouseTools.qo.h>
Signals | |
void | mouseRegionReady (casacore::Record mouseRegion, WorldCanvasHolder *) |
See regionReady() implementation for format of the record. More... | |
void | echoClicked (casacore::Record) |
Public Member Functions | |
QtPolylineToolRegion (viewer::RegionSourceFactory *rf, PanelDisplay *pd) | |
~QtPolylineToolRegion () | |
bool | getMouseRegion (casacore::Record &mouseRegion, WorldCanvasHolder *&wch) |
Retrieve the current polyline mouse region record and WCH, if any. More... | |
Public Member Functions inherited from casa::QtMouseTool | |
QtMouseTool () | |
~QtMouseTool () | |
Public Member Functions inherited from casa::MultiPolylineToolImpl | |
MultiPolylineToolImpl (viewer::RegionSourceFactory *rf, PanelDisplay *pd, Display::KeySym keysym=Display::K_Pointer_Button3) | |
Constructor. More... | |
virtual | ~MultiPolylineToolImpl () |
Destructor. More... | |
Public Member Functions inherited from casa::MultiPolylineTool | |
MultiPolylineTool (viewer::RegionSourceFactory *rsf, PanelDisplay *pd, Display::KeySym keysym=Display::K_Pointer_Button1, const casacore::Bool persistent=false) | |
Constructor. More... | |
virtual | ~MultiPolylineTool () |
Destructor. More... | |
virtual void | disable () |
Switch the tool off - this calls the base class disable, and then erases the polyline if it's around. More... | |
virtual void | reset (casacore::Bool skipRefresh=false) |
reset to non-existent, non-active polyline. More... | |
virtual casacore::Bool | polylineDefined () |
Is a polyline currently defined? More... | |
viewer::RegionSource * | getRegionSource () |
void | checkPoint (WorldCanvas *wc, State &state) |
this is a non-const function because a non-const RegionTool ptr is returned in 'state' which can then be used for setting the state of the regions managed by the various tools.... More... | |
void | revokeRegion (viewer::Region *) |
called when the user (read GUI user) indicates that a region should be deleted... More... | |
const std::set < viewer::region::RegionTypes > & | regionsCreated () const |
returns a set which indicates regions this creator creates... More... | |
bool | create (viewer::region::RegionTypes, WorldCanvas *, const std::vector< std::pair< double, double > > &, const std::string &, viewer::region::TextPosition, const std::vector< int > &, const std::string &, int, int, const std::string &, const std::string &, viewer::region::LineStyle, unsigned int, bool, VOID *) |
create regions of various types (e.g. More... | |
RegionToolTypes | type () const |
Public Member Functions inherited from casa::RegionTool | |
RegionTool (Display::KeySym keysym=Display::K_Pointer_Button1) | |
Constructor taking the primary key to which this tool will respond. More... | |
~RegionTool () | |
void | otherKeyReleased (const WCPositionEvent &) |
void | enable () |
DISPLAY_PURE_VIRTUAL(RegionTool::create,true);. More... | |
Public Member Functions inherited from casa::MultiWCTool | |
MultiWCTool (const Display::KeySym &keysym=Display::K_Pointer_Button1, bool enable_events=true) | |
Constructor taking the primary key to which this tool will respond. More... | |
virtual | ~MultiWCTool () |
Destructor. More... | |
virtual void | addWorldCanvas (WorldCanvas &worldcanvas) |
Add/remove a WorldCanvas from the control of this tool. More... | |
virtual void | removeWorldCanvas (WorldCanvas &worldcanvas) |
virtual void | addWorldCanvases (PanelDisplay *pdisp) |
Add/Remove a list of WorldCanvases from PanelDisplay. More... | |
virtual void | removeWorldCanvases (PanelDisplay *pdisp) |
virtual void | operator() (const WCPositionEvent &ev) |
Required operators for event handling - these are called when events occur, and distribute the events to the "user-level" methods. More... | |
virtual void | operator() (const WCMotionEvent &ev) |
default sends event to cout More... | |
virtual void | operator() (const WCRefreshEvent &ev) |
original handler interface (still used for WCRefreshEvents) More... | |
Public Member Functions inherited from casa::DisplayTool | |
virtual | ~DisplayTool () |
Destructor. More... | |
virtual void | setKey (const Display::KeySym &keysym) |
Set/get which key to catch. More... | |
virtual Display::KeySym | getKey () const |
Public Member Functions inherited from casa::WCPositionEH | |
WCPositionEH () | |
Default Constructor Required. More... | |
virtual | ~WCPositionEH () |
Destructor. More... | |
Public Member Functions inherited from casa::WCMotionEH | |
WCMotionEH () | |
Default Constructor Required. More... | |
virtual | ~WCMotionEH () |
Destructor. More... | |
Public Member Functions inherited from casa::WCRefreshEH | |
WCRefreshEH () | |
Default Constructor Required. More... | |
virtual | ~WCRefreshEH () |
Destructor. More... | |
Public Member Functions inherited from casa::DisplayEH | |
virtual void | handleEvent (DisplayEvent &) |
Classes that contain this interface (i.e., derive from it) can override this method to implement actions for whatever types of DisplayEvent they're interested in. More... | |
virtual | ~DisplayEH () |
Public Member Functions inherited from casa::DTVisible | |
DTVisible () | |
Default constructor. More... | |
virtual | ~DTVisible () |
Destructor. More... | |
virtual casacore::String | drawColor () const |
Return the color to use. More... | |
virtual casacore::Int | lineWidth () const |
Return the line width to use. More... | |
virtual casacore::Double | doubleClickInterval () const |
Return the double click interval (in seconds). More... | |
Public Member Functions inherited from casa::viewer::RegionCreator | |
RegionCreator () | |
DISPLAY_PURE_VIRTUAL(RegionCreator::create,true);. More... | |
virtual | ~RegionCreator () |
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). More... | |
virtual void | clicked (int x, int y) |
virtual void | doubleClicked (int x, int y) |
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 callback is invoked by the base when the polygon is first 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() |
is this fix to *virtual void | polylineReady () |
casacore::Function called when a polyline is ready and not being edited. More... | |
Protected Member Functions inherited from casa::MultiPolylineToolImpl | |
virtual void | doubleInside () |
Handle double-click inside the polygon. More... | |
void | getWorldCoords (casacore::Vector< casacore::Double > &x, casacore::Vector< casacore::Double > &y) |
get the world coords of the current polygon region More... | |
void | getLinearCoords (casacore::Vector< casacore::Double > &x, casacore::Vector< casacore::Double > &y) |
get the linear coords of the current ploygon region More... | |
Protected Member Functions inherited from casa::MultiPolylineTool | |
virtual void | keyPressed (const WCPositionEvent &) |
Functions called by the base class event handling operators–and normally only those. More... | |
virtual void | moved (const WCMotionEvent &, const viewer::region::region_list_type &) |
virtual void | keyReleased (const WCPositionEvent &) |
virtual void | otherKeyPressed (const WCPositionEvent &) |
virtual void | draw (const WCRefreshEvent &, const viewer::region::region_list_type &) |
draw the polyline (if any) on the object's currently active WC. More... | |
virtual void | doubleOutside () |
virtual void | get (casacore::Vector< casacore::Int > &x, casacore::Vector< casacore::Int > &y) const |
Retrieve polyline vertices, or a single vertex, in screen pixels. More... | |
virtual void | get (casacore::Int &x, casacore::Int &y, const casacore::Int pt) const |
virtual bool | checkType (viewer::region::RegionTypes t) |
Protected Member Functions inherited from casa::MultiWCTool | |
virtual void | updateRegion () |
virtual void | refresh () |
Copy back-to-front buffer (erasing all MWCTool drawings), then cause this (and all MWCTools on current WC's PC) to draw (or not draw) themselves, according to their current state. More... | |
virtual void | setClipToDrawArea () |
Cause subsequent drawing commands to be clipped to the current WC (or its drawing area). More... | |
virtual void | setClipToWC () |
virtual void | resetClip () |
Protected Member Functions inherited from casa::DisplayTool | |
DisplayTool (const Display::KeySym &keysym=Display::K_Pointer_Button1) | |
Constructor taking a key to which this tool will initially be attached, typically one of the pointer buttons. More... | |
DisplayTool (const DisplayTool &other) | |
Copy constructor - construct a new DisplayTool from other , using copy semantics. More... | |
DisplayTool & | operator= (const DisplayTool &other) |
Copy assignment using copy semantics. More... | |
Display::KeyModifier | keyModifiers () |
Return the modifier mask. More... | |
Protected Member Functions inherited from casa::DTVisible | |
DTVisible (const DTVisible &other) | |
(Required) copy constructor. More... | |
DTVisible & | operator= (const DTVisible &other) |
(Required) copy assignment. More... | |
Protected Attributes | |
PanelDisplay * | pd_ |
Protected Attributes inherited from casa::MultiWCTool | |
WorldCanvas * | itsCurrentWC |
WC being (or to be) drawn on (may be 0 initially). More... | |
Additional Inherited Members | |
Public Types inherited from casa::RegionTool | |
enum | RegionToolTypes { POLYTOOL, RECTTOOL, POINTTOOL, ELLIPSETOOL, POLYLINETOOL, PVLINETOOL } |
typedef std::map < viewer::Region *, viewer::region::PointInfo > | region_map_type |
Public Types inherited from casa::viewer::RegionCreator | |
typedef std::list < RegionCreator * > | creator_list_type |
Static Public Member Functions inherited from casa::viewer::RegionCreator | |
static const creator_list_type & | findCreator (region::RegionTypes type) |
QtPolylineToolRegion is the Polyline Region mouse tool that sends a signal when a new polyline is ready.
Definition at line 269 of file QtMouseTools.qo.h.
|
inline |
Definition at line 275 of file QtMouseTools.qo.h.
|
inline |
Definition at line 278 of file QtMouseTools.qo.h.
|
protectedvirtual |
Reimplemented from casa::MultiWCTool.
|
protected |
|
protectedvirtual |
Reimplemented from casa::MultiWCTool.
|
signal |
bool casa::QtPolylineToolRegion::getMouseRegion | ( | casacore::Record & | mouseRegion, |
WorldCanvasHolder *& | wch | ||
) |
Retrieve the current polyline 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 casacore::Record format).
|
signal |
See regionReady() implementation for format of the record.
(For some uses, a connecting slot may be able to do without the WCH* parameter).
|
inlineprotectedvirtual |
casacore::Function called when a polyline is ready and not being edited.
(Unused so far on the glish level (12/01)).
Reimplemented from casa::MultiPolylineTool.
Definition at line 316 of file QtMouseTools.qo.h.
|
inlineprotected |
Definition at line 311 of file QtMouseTools.qo.h.
|
protectedvirtual |
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 casacore::Record defining the user's polygon mouse selection. See implementation for format of the record.
Reimplemented from casa::MultiPolylineToolImpl.
|
protected |
Definition at line 318 of file QtMouseTools.qo.h.