com.primesense.nite
Class PoseData

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

public class PoseData
extends java.lang.Object

This class wraps the output from the NiTE Pose Detection algorithms.

NiTE provides the ability for applications to detect whether a user is in a specific pose. This is most commonly used for skeleton calibration. The algorithm passes through a number f different states during the process of Pose Detection.

For each user being analyzed, this class stores the pose being detected and the state of that detection.


Method Summary
 PoseType getPoseType()
          Get the type of this pose.
 boolean isEntered()
          Checks whether this is the first frame in which the user has assumed the pose indicated by getPoseType()
 boolean isExited()
          Check if the user has exited the pose in this frame.
 boolean isHeld()
          Checks if the user is currently in the pose indicated by the getPoseType() function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPoseType

public PoseType getPoseType()
Get the type of this pose.

Returns:
The type of pose being detected, formatted as a PoseType.

isHeld

public boolean isHeld()
Checks if the user is currently in the pose indicated by the getPoseType() function.

Returns:
True if the user is in the pose indicated, False otherwise.

isEntered

public boolean isEntered()
Checks whether this is the first frame in which the user has assumed the pose indicated by getPoseType()

Returns:
True if the user is in the pose indicated AND the user was not in that pose on the previous frame. Returns false otherwise.

isExited

public boolean isExited()
Check if the user has exited the pose in this frame.

Returns:
True if the user is NOT in the pose indicated, and was in the previous frame. Returns false otherwise.