EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.EnableBody Class Reference

A class that can be serialized in json Used to track an entire body/joint chain This is device agnostic, so it doesn't matter if this is kinect or some other device. More...

Inherits EnableSerializableValue.

Public Member Functions

void AddJoint (string name, EnableJoint aJoint)
 Adds a joint to the EnableBody joint dictionary.
 
void AddJoint (string name, Vector3 position, Quaternion orientation)
 Adds a joint to the EnableBody joint dictionary.
 
string JSONString ()
 Serializes the current EnableBody object to a JSON string.
 
string Serialize ()
 Serializes the current EnableBody object to a JSON string.
 
object Deserialize (string json)
 Deserializes a json string and returns an object of type EnableBody.
 

Detailed Description

A class that can be serialized in json Used to track an entire body/joint chain This is device agnostic, so it doesn't matter if this is kinect or some other device.

Member Function Documentation

◆ AddJoint() [1/2]

void Enablegames.EnableBody.AddJoint ( string name,
EnableJoint aJoint )
inline

Adds a joint to the EnableBody joint dictionary.

Parameters
nameThe name of the joint.
aJointAn EnableJoint object representing the joint.
Here is the caller graph for this function:

◆ AddJoint() [2/2]

void Enablegames.EnableBody.AddJoint ( string name,
Vector3 position,
Quaternion orientation )
inline

Adds a joint to the EnableBody joint dictionary.

Parameters
nameThe name of the joint.
positionThe position of the joint.
orientationThe orientation of the joint.
Here is the call graph for this function:

◆ Deserialize()

object Enablegames.EnableBody.Deserialize ( string json)
inline

Deserializes a json string and returns an object of type EnableBody.

Parameters
jsonThe json string to be deserialized.
Returns
An object of type EnableBody.

◆ JSONString()

string Enablegames.EnableBody.JSONString ( )
inline

Serializes the current EnableBody object to a JSON string.

Returns
A JSON string representation of the EnableBody object.

◆ Serialize()

string Enablegames.EnableBody.Serialize ( )
inline

Serializes the current EnableBody object to a JSON string.

Returns
A JSON string representation of the EnableBody object.

The documentation for this class was generated from the following file: