Torque3D Documentation / _generateds / LeapMotionDeviceData

LeapMotionDeviceData

Engine/source/platform/input/leapMotion/leapMotionData.h

More...

Public Types

enum
DataDifferences {
  DIFF_NONE = 0
  DIFF_HANDROTAXISX = (1<<1)
  DIFF_HANDROTAXISY = (1<<2)
  DIFF_HANDROTAXIS = (DIFF_HANDROTAXISX | DIFF_HANDROTAXISY)
}
enum
MetaDataDifferences {
  METADIFF_NONE = 0
  METADIFF_FRAME_VALID_DATA = (1<<0)
}

Public Attributes

bool
mHandID [LeapMotionConstants::MaxHands]
mHandPos [LeapMotionConstants::MaxHands][3]
mHandPosPoint [LeapMotionConstants::MaxHands]
mHandRawPos [LeapMotionConstants::MaxHands][3]
mHandRot [LeapMotionConstants::MaxHands]
mHandRotQuat [LeapMotionConstants::MaxHands]
bool
mHandValid [LeapMotionConstants::MaxHands]
bool
mPointableID [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
mPointableLength [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
mPointablePos [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand][3]
mPointablePosPoint [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
mPointableRawPos [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand][3]
mPointableRot [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
mPointableRotQuat [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
bool
mPointableValid [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
mPointableWidth [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]

Protected Functions

processHand(const Leap::Hand & hand, U32 handIndex, bool keepPointableIndexPersistent, LeapMotionDeviceData * prevData)
processHandPointable(const Leap::Pointable & pointable, U32 handIndex, U32 handPointableIndex)
processHandPointables(const Leap::PointableList & pointables, U32 handIndex)
processHands(const Leap::HandList & hands)
processPersistentHandPointables(const Leap::PointableList & pointables, U32 handIndex, LeapMotionDeviceData * prevData)
processPersistentHands(const Leap::HandList & hands, bool keepPointableIndexPersistent, LeapMotionDeviceData * prevData)

Public Functions

Compare this data and given and return differences.

Compare meta data between this and given and return differences.

Reset device data.

setData(const Leap::Frame & frame, LeapMotionDeviceData * prevData, bool keepHandIndexPersistent, bool keepPointableIndexPersistent, const F32 & maxHandAxisRadius)

Set data based on Leap Motion device data.

Detailed Description

Public Types

DataDifferences

Enumerator

DIFF_NONE = 0
DIFF_HANDROTAXISX = (1<<1)
DIFF_HANDROTAXISY = (1<<2)
DIFF_HANDROTAXIS = (DIFF_HANDROTAXISX | DIFF_HANDROTAXISY)
MetaDataDifferences

Enumerator

METADIFF_NONE = 0
METADIFF_FRAME_VALID_DATA = (1<<0)

Public Attributes

bool mDataSet 
S32 mHandID [LeapMotionConstants::MaxHands]
S32 mHandPos [LeapMotionConstants::MaxHands][3]
Point3F mHandPosPoint [LeapMotionConstants::MaxHands]
F32 mHandRawPos [LeapMotionConstants::MaxHands][3]
MatrixF mHandRot [LeapMotionConstants::MaxHands]
F32 mHandRotAxis [2]
QuatF mHandRotQuat [LeapMotionConstants::MaxHands]
bool mHandValid [LeapMotionConstants::MaxHands]
bool mHasTrackingData 
bool mIsValid 
S32 mPointableID [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
F32 mPointableLength [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
S32 mPointablePos [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand][3]
Point3F mPointablePosPoint [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
F32 mPointableRawPos [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand][3]
MatrixF mPointableRot [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
QuatF mPointableRotQuat [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
bool mPointableValid [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
F32 mPointableWidth [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
U64 mSequenceNum 

Protected Functions

processHand(const Leap::Hand & hand, U32 handIndex, bool keepPointableIndexPersistent, LeapMotionDeviceData * prevData)

processHandPointable(const Leap::Pointable & pointable, U32 handIndex, U32 handPointableIndex)

processHandPointables(const Leap::PointableList & pointables, U32 handIndex)

processHands(const Leap::HandList & hands)

processPersistentHandPointables(const Leap::PointableList & pointables, U32 handIndex, LeapMotionDeviceData * prevData)

processPersistentHands(const Leap::HandList & hands, bool keepPointableIndexPersistent, LeapMotionDeviceData * prevData)

Public Functions

LeapMotionDeviceData()

compare(LeapMotionDeviceData * other)

Compare this data and given and return differences.

compareMeta(LeapMotionDeviceData * other)

Compare meta data between this and given and return differences.

reset()

Reset device data.

setData(const Leap::Frame & frame, LeapMotionDeviceData * prevData, bool keepHandIndexPersistent, bool keepPointableIndexPersistent, const F32 & maxHandAxisRadius)

Set data based on Leap Motion device data.