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::WCInvisTool Class Reference

Base implementation of WCTool for invisible (non-drawing) tools. More...

#include <WCInvisTool.h>

Inheritance diagram for casa::WCInvisTool:
casa::WCTool casa::DisplayTool

Public Member Functions

 WCInvisTool (WorldCanvas *wcanvas, Display::KeySym keysym=Display::K_Pointer_Button1)
 constructor More...
 
virtual ~WCInvisTool ()
 destructor More...
 
virtual void keyPressed (const WCPositionEvent &)
 Functions called by the local event handling operators - these handle the drawing of the rectangle. More...
 
virtual void keyReleased (const WCPositionEvent &)
 
virtual void moved (const WCMotionEvent &, const viewer::region::region_list_type &)
 
virtual void positionReady ()
 casacore::Function called when a position is ready More...
 
virtual void get (casacore::Double &x, casacore::Double &y) const
 Retrieve the position in linear WorldCanvas coordinates. More...
 
virtual void getFractional (casacore::Double &x, casacore::Double &y) const
 Retrieve the position in fractional linear WorldCanvas coordinates. More...
 
- Public Member Functions inherited from casa::WCTool
 WCTool (WorldCanvas *wcanvas, const Display::KeySym &keysym=Display::K_Pointer_Button1)
 Constructor taking a pointer to a WorldCanvas to which this tool will attach, and a primary key to respond to. More...
 
virtual ~WCTool ()
 Destructor. More...
 
virtual void enable ()
 Switch the tool on/off - this simply registers or unregisters the event handlers. More...
 
virtual void disable ()
 
virtual void operator() (const WCPositionEvent &ev)
 Required operators for event handling - these are called when an events occur, and distribute the events to the "user-level" methods. More...
 
virtual void operator() (const WCMotionEvent &ev)
 
virtual void operator() (const WCRefreshEvent &ev)
 
virtual void otherKeyPressed (const WCPositionEvent &)
 
virtual void otherKeyReleased (const WCPositionEvent &)
 
virtual void refresh (const WCRefreshEvent &)
 
virtual WorldCanvasworldCanvas () const
 Get the WorldCanvas that this Tool is attached to. More...
 
virtual PixelCanvaspixelCanvas () const
 Get the PixelCanvas that this Tool is attached to via its WorldCanvas. 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
 

Private Attributes

casacore::Bool itsActive
 are we actively marking positions? More...
 
casacore::Bool itsMoved
 have we moved More...
 
casacore::Double itsX
 linear coordinates of the position More...
 
casacore::Double itsY
 

Additional Inherited Members

- Protected Member Functions inherited from casa::WCTool
 WCTool ()
 (Required) default constructor. More...
 
 WCTool (const WCTool &other)
 (Required) copy constructor. More...
 
WCTooloperator= (const WCTool &other)
 (Required) copy assignment. More...
 
- 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...
 
DisplayTooloperator= (const DisplayTool &other)
 Copy assignment using copy semantics. More...
 
Display::KeyModifier keyModifiers ()
 Return the modifier mask. More...
 

Detailed Description

Base implementation of WCTool for invisible (non-drawing) tools.

Synopsis

This class implements some of WCTool, and adds additional interface to support invisible (ie. non-drawing) tools for WorldCanvases.

Definition at line 45 of file WCInvisTool.h.

Constructor & Destructor Documentation

casa::WCInvisTool::WCInvisTool ( WorldCanvas wcanvas,
Display::KeySym  keysym = Display::K_Pointer_Button1 
)

constructor

virtual casa::WCInvisTool::~WCInvisTool ( )
virtual

destructor

Member Function Documentation

virtual void casa::WCInvisTool::get ( casacore::Double x,
casacore::Double y 
) const
virtual

Retrieve the position in linear WorldCanvas coordinates.

virtual void casa::WCInvisTool::getFractional ( casacore::Double x,
casacore::Double y 
) const
virtual

Retrieve the position in fractional linear WorldCanvas coordinates.

virtual void casa::WCInvisTool::keyPressed ( const WCPositionEvent )
virtual

Functions called by the local event handling operators - these handle the drawing of the rectangle.

In special conditions, namely double clicking the key, they will pass control on to the doubleInside and doubleOutside functions

Reimplemented from casa::WCTool.

virtual void casa::WCInvisTool::keyReleased ( const WCPositionEvent )
virtual

Reimplemented from casa::WCTool.

virtual void casa::WCInvisTool::moved ( const WCMotionEvent ,
const viewer::region::region_list_type  
)
virtual

Reimplemented from casa::WCTool.

virtual void casa::WCInvisTool::positionReady ( )
inlinevirtual

casacore::Function called when a position is ready

Definition at line 68 of file WCInvisTool.h.

Member Data Documentation

casacore::Bool casa::WCInvisTool::itsActive
private

are we actively marking positions?

Definition at line 79 of file WCInvisTool.h.

casacore::Bool casa::WCInvisTool::itsMoved
private

have we moved

Definition at line 82 of file WCInvisTool.h.

casacore::Double casa::WCInvisTool::itsX
private

linear coordinates of the position

Definition at line 85 of file WCInvisTool.h.

casacore::Double casa::WCInvisTool::itsY
private

Definition at line 85 of file WCInvisTool.h.


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