Tanoda
Leap.Unity.HandRepresentation Class Reference

Public Member Functions

 HandRepresentation (HandModelManager parent, Hand hand, Chirality repChirality, ModelType repType)
 
void Finish ()
 
void AddModel (HandModelBase model)
 
void RemoveModel (HandModelBase model)
 
void UpdateRepresentation (Hand hand)
 

Public Attributes

List< HandModelBasehandModels
 

Properties

int HandID [get]
 
int LastUpdatedTime [get, set]
 
bool IsMarked [get, set]
 
Chirality RepChirality [get, protected set]
 
ModelType RepType [get, protected set]
 
Hand MostRecentHand [get, protected set]
 

Detailed Description

HandRepresentation is a container class that facillitates the HandModelBase lifecycle

Parameters
parentThe HandPool which creates HandRepresentations
handModelthe HandModelBase to be paired with Leap Hand data.
handThe Leap Hand data to paired with a HandModelBase

Definition at line 18 of file HandRepresentation.cs.

Constructor & Destructor Documentation

◆ HandRepresentation()

Leap.Unity.HandRepresentation.HandRepresentation ( HandModelManager  parent,
Hand  hand,
Chirality  repChirality,
ModelType  repType 
)

Definition at line 28 of file HandRepresentation.cs.

Member Function Documentation

◆ AddModel()

void Leap.Unity.HandRepresentation.AddModel ( HandModelBase  model)

Definition at line 48 of file HandRepresentation.cs.

◆ Finish()

void Leap.Unity.HandRepresentation.Finish ( )

To be called if the HandRepresentation no longer has a Leap Hand.

Definition at line 37 of file HandRepresentation.cs.

◆ RemoveModel()

void Leap.Unity.HandRepresentation.RemoveModel ( HandModelBase  model)

Definition at line 65 of file HandRepresentation.cs.

◆ UpdateRepresentation()

void Leap.Unity.HandRepresentation.UpdateRepresentation ( Hand  hand)

Calls Updates in HandModelBases that are part of this HandRepresentation

Definition at line 73 of file HandRepresentation.cs.

Member Data Documentation

◆ handModels

List<HandModelBase> Leap.Unity.HandRepresentation.handModels

Definition at line 26 of file HandRepresentation.cs.

Property Documentation

◆ HandID

int Leap.Unity.HandRepresentation.HandID
get

Definition at line 20 of file HandRepresentation.cs.

◆ IsMarked

bool Leap.Unity.HandRepresentation.IsMarked
getset

Definition at line 22 of file HandRepresentation.cs.

◆ LastUpdatedTime

int Leap.Unity.HandRepresentation.LastUpdatedTime
getset

Definition at line 21 of file HandRepresentation.cs.

◆ MostRecentHand

Hand Leap.Unity.HandRepresentation.MostRecentHand
getprotected set

Definition at line 25 of file HandRepresentation.cs.

◆ RepChirality

Chirality Leap.Unity.HandRepresentation.RepChirality
getprotected set

Definition at line 23 of file HandRepresentation.cs.

◆ RepType

ModelType Leap.Unity.HandRepresentation.RepType
getprotected set

Definition at line 24 of file HandRepresentation.cs.


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