casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
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

List of all members.

Public Member Functions

 WCInvisTool (WorldCanvas *wcanvas, Display::KeySym keysym=Display::K_Pointer_Button1)
 constructor
virtual ~WCInvisTool ()
 destructor
virtual void keyPressed (const WCPositionEvent &)
 Functions called by the local event handling operators - these handle the drawing of the rectangle.
virtual void keyReleased (const WCPositionEvent &)
virtual void moved (const WCMotionEvent &, const viewer::region::region_list_type &)
virtual void positionReady ()
 Function called when a position is ready.
virtual void get (Double &x, Double &y) const
 Retrieve the position in linear WorldCanvas coordinates.
virtual void getFractional (Double &x, Double &y) const
 Retrieve the position in fractional linear WorldCanvas coordinates.

Private Attributes

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

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

constructor

virtual casa::WCInvisTool::~WCInvisTool ( ) [virtual]

destructor


Member Function Documentation

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

Retrieve the position in linear WorldCanvas coordinates.

virtual void casa::WCInvisTool::getFractional ( Double x,
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 ( ) [inline, virtual]

Function called when a position is ready.

Definition at line 68 of file WCInvisTool.h.


Member Data Documentation

are we actively marking positions?

Definition at line 79 of file WCInvisTool.h.

have we moved

Definition at line 82 of file WCInvisTool.h.

linear coordinates of the position

Definition at line 85 of file WCInvisTool.h.

Definition at line 85 of file WCInvisTool.h.


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