Fl_Window_MouseTracker Class Reference

#include <Fl_Window_MouseTracker.h>

List of all members.


Detailed Description

Tracks mouse movement over the window and reports it at a consistent frame rate.


Public Member Functions

 Fl_Window_MouseTracker (int X, int Y, int W, int H, const char *label=0, bool grid=false, int history=31)
void ActivateTracking (double interval)
void DeactivateTracking (void)
 Deactivates the mouse tracking.
void CaptureMotion (vector< Point2 > &motion)
bool Capturing ()
void DisplayGesture (bool state=true)
 Sets the motion to be shown (doesn't redisplay the window).
void Show (vector< Point2 > &motion)
void ShowLengths (vector< double > &lengths, int scale=1)
void SetGrid (bool grid)
void Receive (const Point2 &data)
Outlet< Point2 > & Out ()
Inlet< Point2 > & In ()

Protected Member Functions

virtual void draw ()
 Draws the image.
void drawMotion (vector< Point2 > &motion, Fl_Color col)
void drawMotion (vector< Point2 > &motion, uchar r1, uchar g1, uchar b1, uchar r2, uchar g2, uchar b2, vector< int > *lengths=NULL)
virtual int handle (int event)
 Event handler used for the mouse tracking feature.


Constructor & Destructor Documentation

Fl_Window_MouseTracker ( int  X,
int  Y,
int  W,
int  H,
const char *  label = 0,
bool  grid = false,
int  history = 31 
) [inline]

Defalut Constructor. Initializes the underlying window.


Member Function Documentation

void ActivateTracking ( double  interval  ) 

Activates the mouse tracking

Parameters:
[in] interval interval between successive mouse location collections
[in] mouse_callback function called whenever the mouse location is collected
[in] arg argument supplied to the mouse_callback function


The documentation for this class was generated from the following file:
Generated on Tue Mar 6 17:57:24 2007 for AME Repository by  doxygen 1.5.1-p1