com.primesense.nite
Class GestureData

java.lang.Object
  extended by com.primesense.nite.GestureData

public class GestureData
extends java.lang.Object

This class stores data on a gesture that is being detected. "Gestures" in this context indicate gestures detected directly from the depthmap, so there are no handpoint ID's at this stage. Objects of this class store the data for a specific instance of a specific gesture.

The type, position in space, and completion status of the gesture can all be tracked.

All positions are given in "real world" coordinates. See the OpenNI 2.0 documentation for more information on the coordinate systems used by OpenNI/NiTE.

See Also:
GestureType, HandTracker

Method Summary
 Point3D<java.lang.Float> getCurrentPosition()
          This function provides the position in space of the projected gesture, using "real world" coordinates.
 GestureType getType()
          This function is used to find out what type of gesture that this object is storing detection data for.
 boolean isComplete()
          This function indicates whether the complete gesture has been detected yet.
 boolean isInProgress()
          This function indicates whether a non-completed gesture has been detected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public GestureType getType()
This function is used to find out what type of gesture that this object is storing detection data for.

Returns:
The type of gesture.
See Also:
GestureType

getCurrentPosition

public Point3D<java.lang.Float> getCurrentPosition()
This function provides the position in space of the projected gesture, using "real world" coordinates.

Returns:
The position of the gesture being detected.

isComplete

public boolean isComplete()
This function indicates whether the complete gesture has been detected yet.

Returns:
True if the gesture is complete, false otherwise.
See Also:
isInProgress()

isInProgress

public boolean isInProgress()
This function indicates whether a non-completed gesture has been detected. This can be useful for providing user feedback during the gesture.

Returns:
True if a gesture is currently being detected. False if detection is complete or has not yet started.
See Also:
isComplete()