![]() |
NiTE 2.0
|
#include <NiTE.h>
Public Member Functions | |
const BoundingBox & | getBoundingBox () const |
const Point3f & | getCenterOfMass () const |
UserId | getId () const |
const PoseData & | getPose (PoseType type) const |
const Skeleton & | getSkeleton () const |
bool | isLost () const |
bool | isNew () const |
bool | isVisible () const |
Provides the current information available about a specific user detected by the UserTracker.
Note that some data is provided in depth ("projective") coordinates, and other data is provided in world ("real world") coordinates. See the OpenNI 2.0 documentation for information on the two coordinate systems used and how to convert between them.
const BoundingBox& nite::UserData::getBoundingBox | ( | ) | const [inline] |
Get a bounding box around the user. This provides a minimum volume cube that completely contains the user. Coordinates are "projective", so they are suitable for direct use with a depthmap.
const Point3f& nite::UserData::getCenterOfMass | ( | ) | const [inline] |
Find the geometric center of mass of the user. This value is given in "real world" coordinates, so it must be converted before being superimposed over a raw depthmap. It is suitable for direct use with skeleton and hand point output.
UserId nite::UserData::getId | ( | ) | const [inline] |
Get the ID of the user. This ID is persistent -- it will not change as long as the user is being continuously tracked.
const PoseData& nite::UserData::getPose | ( | PoseType | type | ) | const [inline] |
Get all information about a specific pose for this user. This will only be available if pose detection is enabled on this user for the PoseType specified.
[in] | @ref | PoseType to retrieve data for. |
const Skeleton& nite::UserData::getSkeleton | ( | ) | const [inline] |
Get the full skeleton of this user. This will only be available if Skeleton tracking has been enabled for this user, and the skeleton is calibrated and being actively tracked.
bool nite::UserData::isLost | ( | ) | const [inline] |
Check if the user is lost. This will happen once, in the first frame in which the user was declared lost. This user will not be provided in future frames, and his UserId may be assigned to a new user that appears in view.
bool nite::UserData::isNew | ( | ) | const [inline] |
Checks whether this user has been newly detected.
bool nite::UserData::isVisible | ( | ) | const [inline] |
Check if the user is currently visible in the field of view.