FROG

FROG Recognizer of Gestures

Plot3D Class Reference

Panel containing a 3D representation of incoming accelerations from the user. More...

Inherits javax::swing::JPanel.

Collaboration diagram for Plot3D:

List of all members.

Public Member Functions

 Plot3D ()
 Constructs a new panel with a blank 3D graph.
void addVector (Accel3D a3d)
 Adds another vector to be drawn to this graph.
void destroyPlot ()
 When this panel should no longer be displayed, this method is called.
void finishPlot ()
 Called to signify the end of a set of accelerations.
double[][] getSquareReferencesVector (double i)
 Generates squared coordinates for the reference axis.
void run ()
void setPlot (Vector< Accel3D > set)
 Unlike addVector(Accel3D), graphs an entire set of Accel3D's in one pass.

Static Public Attributes

static volatile Plot3D instance = null

Detailed Description

Panel containing a 3D representation of incoming accelerations from the user.

This JPanel implements Runnable but should not be added to any external Thread (it starts its own at the end of the constructor).

This Panel contains a queue of acceleration data that it constantly processes. Upon receiving an end of gesture notification, the next acceleration vector that comes in will wipe the graph clean.

Author:
Team Better Recognize

Constructor & Destructor Documentation

Plot3D (  ) 

Constructs a new panel with a blank 3D graph.

Here is the call graph for this function:


Member Function Documentation

void addVector ( Accel3D  a3d  ) 

Adds another vector to be drawn to this graph.

Parameters:
a3d the acceleration to graph

Here is the call graph for this function:

Here is the caller graph for this function:

void destroyPlot (  ) 

When this panel should no longer be displayed, this method is called.

Here is the caller graph for this function:

void finishPlot (  ) 

Called to signify the end of a set of accelerations.

Prepares the graph for a new set of accelerations.

Here is the caller graph for this function:

double [][] getSquareReferencesVector ( double  i  ) 

Generates squared coordinates for the reference axis.

The returned coordinates will have maximum coordinates e equal to i and minimum equal to -i.

Parameters:
i absolute value to be used to calculate the absolute minimum and maximum for the coordinates.
Returns:
an array representing the coordinates necessary to draw square references on the jmath plot 3d.

Here is the caller graph for this function:

void run (  ) 
void setPlot ( Vector< Accel3D set  ) 

Unlike addVector(Accel3D), graphs an entire set of Accel3D's in one pass.

Parameters:
set A Vector containing all the plotting data.

Here is the call graph for this function:


Member Data Documentation

volatile Plot3D instance = null [static]

The documentation for this class was generated from the following file:
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/gui/Plot3D.java
 All Classes Namespaces Files Functions Variables