1 #ifndef NUITRACK_USERFRAME_H_
2 #define NUITRACK_USERFRAME_H_
6 #include "nuitrack/types/Frame.h"
7 #include "nuitrack/types/User.h"
8 #include "nuitrack/capi/UserTracker_CAPI.h"
34 nuitrack_AddUserTrackerDataRef(pimpl);
39 nuitrack_DestroyUserTrackerData(_pimpl);
49 UserTrackerData* dataHolder = _pimpl;
51 std::vector<User> usersVector;
53 size_t numUsers = nuitrack_GetUserFrameNumUsers(dataHolder);
55 for(
size_t i = 0; i < numUsers; i++)
58 nuitrack_GetUserFrameUser(dataHolder, i, &user);
59 usersVector.push_back(user);
70 return nuitrack_GetUserFrameRows(_pimpl);
78 return nuitrack_GetUserFrameCols(_pimpl);
86 return nuitrack_GetUserFrameID(_pimpl);
94 return nuitrack_GetUserFrameData(_pimpl);
99 return nuitrack_GetUserFrameTimestamp(_pimpl);
110 nuitrack_GetUserFrameFloor(_pimpl, &floor);
122 nuitrack_GetUserFrameFloorNormal(_pimpl, &floorNormal);
127 UserTrackerData* _pimpl;
UserFrame(UserTrackerData *pimpl)
Definition: UserFrame.h:31
int getCols() const
Returns the number of columns in the user frame.
Definition: UserFrame.h:76
Represents a user map with information about the floor.
Definition: UserFrame.h:27
uint64_t getTimestamp() const
Returns the data timestamp in microseconds.
Definition: UserFrame.h:97
Represents a generalized frame.
Definition: Frame.h:15
const Vector3 getFloor() const
Get point of floor.
Definition: UserFrame.h:107
uint64_t getID() const
Returns the user frame ID.
Definition: UserFrame.h:84
const std::vector< User > getUsers() const
Returns additional information about detected users.
Definition: UserFrame.h:47
Stores information about a detected user.
Definition: User.h:15
const DataType * getData() const
Returns the user frame data.
Definition: UserFrame.h:92
const Vector3 getFloorNormal() const
Get normal of floor.
Definition: UserFrame.h:119
int getRows() const
Returns the number of rows in the user frame.
Definition: UserFrame.h:68