WCInvisTool.h

Classes

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

class WCInvisTool : public WCTool

Interface

Public Members
WCInvisTool(WorldCanvas *wcanvas, Display::KeySym keysym = Display::K_Pointer_Button1)
virtual ~WCInvisTool()
virtual void keyPressed(const WCPositionEvent &ev)
virtual void keyReleased(const WCPositionEvent &ev)
virtual void moved(const WCMotionEvent &ev)
virtual void positionReady()
virtual void get(Double &x, Double &y) const
virtual void getFractional(Double &x, Double &y) const

Description

Synopsis

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

Member Description

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

constructor

virtual ~WCInvisTool()

destructor

virtual void keyPressed(const WCPositionEvent &ev)
virtual void keyReleased(const WCPositionEvent &ev)
virtual void moved(const WCMotionEvent &ev)

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

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