Nuitrack  1.11.2
3D Skeleton Tracking Middleware
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
nuitrack.UserFrame Class Reference

Represents a user map with the information about the floor. More...

Inherits nuitrack.Frame< T >.

Public Member Functions

User GetUserByID (int id)
 Get the user by ID. More...
 
override object Clone ()
 Get a clone of the frame (a reference to the frame data is added for native resource). More...
 
- Public Member Functions inherited from nuitrack.Frame< T >
override void Initialize ()
 Initialize the frame data with UnmanagedResource Handle.
 
T GetAt (int row, int col)
 Get the number of rows and columns. More...
 
T GetAt (int i)
 Get the value of i-th element. More...
 
- Public Member Functions inherited from nuitrack.NativeResources.UnmanagedResource
void Dispose ()
 

Protected Member Functions

 UserFrame (IntPtr ptr, nuitrack.NativeResources.Deleter deleter)
 
override UInt16 GetValue (int i)
 
override UInt16 GetValue (int row, int col)
 
- Protected Member Functions inherited from nuitrack.Frame< T >
 Frame (IntPtr ptr, nuitrack.NativeResources.Deleter deleter)
 
- Protected Member Functions inherited from nuitrack.NativeResources.PooledUnmanagedResource
 PooledUnmanagedResource (IntPtr ptr, Deleter deleter)
 
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from nuitrack.NativeResources.UnmanagedResource
 UnmanagedResource (IntPtr ptr, Deleter deleter)
 

Protected Attributes

int numUsers
 
User[] users
 
Vector3 floor
 
Vector3 floorNormal
 
- Protected Attributes inherited from nuitrack.Frame< T >
int rows
 
int cols
 
ulong id
 
ulong timestamp
 
IntPtr data
 

Properties

int NumUsers [get, set]
 Get the number of users. More...
 
User[] Users [get, set]
 Get the users. More...
 
Vector3 Floor [get, set]
 Get the floor in the form of a point. More...
 
Vector3 FloorNormal [get, set]
 Get the floor in the form of a normal vector. More...
 
- Properties inherited from nuitrack.Frame< T >
int Rows [get, set]
 Get the number of rows in a frame. More...
 
int Cols [get, set]
 Get the number of columns in a frame. More...
 
ulong ID [get]
 Get the frame ID. More...
 
ulong Timestamp [get, set]
 Get the frame timestamp. More...
 
T this[int row, int col] [get]
 Get the value of nuitrack.Frame element with the specified row and column. More...
 
T this[int i] [get]
 Get the value of nuitrack.Frame i-th element. More...
 
IntPtr Data [get, set]
 Get a pointer to the frame data. More...
 
int DataSize [get]
 Get the size of the frame data. More...
 
- Properties inherited from nuitrack.NativeResources.UnmanagedResource
IntPtr Handle [get]
 

Detailed Description

Represents a user map with the information about the floor.

Each UserFrame element stores the ID of a user to which the corresponding frame pixel belongs.

The floor is represented in the form of a plane: as a point and a normal vector. This properties can be accessed via UserFrame::Vector3.Floor and UserFrame::Vector3.FloorNormal respectively.

Member Function Documentation

override object nuitrack.UserFrame.Clone ( )
inlinevirtual

Get a clone of the frame (a reference to the frame data is added for native resource).

Returns
A clone of the frame.

Implements nuitrack.Frame< T >.

User nuitrack.UserFrame.GetUserByID ( int  id)
inline

Get the user by ID.

Parameters
[in]idIdentifier
Returns
User identified by ID or an empty user.
override UInt16 nuitrack.UserFrame.GetValue ( int  i)
inlineprotectedvirtual
Warning
For internal use only.

Implements nuitrack.Frame< T >.

override UInt16 nuitrack.UserFrame.GetValue ( int  row,
int  col 
)
inlineprotectedvirtual
Warning
For internal use only.

Implements nuitrack.Frame< T >.

Member Data Documentation

int nuitrack.UserFrame.numUsers
protected
Warning
For internal use only.

Property Documentation

Vector3 nuitrack.UserFrame.Floor
getset

Get the floor in the form of a point.

Returns
The floor in the form of a point.
Vector3 nuitrack.UserFrame.FloorNormal
getset

Get the floor in the form of a normal vector.

Returns
The floor in the form of a normal vector.
int nuitrack.UserFrame.NumUsers
getset

Get the number of users.

Returns
The number of users.
User [] nuitrack.UserFrame.Users
getset

Get the users.

Returns
The users.