LeapMotionFrame
Engine/source/platform/input/leapMotion/leapMotionFrame.h
Public Types
enum
PointableType { PT_UNKNOWN = -1 PT_FINGER = 0 PT_TOOL }
Private Types
Parent
Protected Static Attributes
Protected Functions
copyFromFrameHands(const Leap::HandList & hands, const F32 & maxHandAxisRadius)
copyFromFramePointables(const Leap::PointableList & pointables)
Public Functions
copyFromFrame(const Leap::Frame & frame, const F32 & maxHandAxisRadius)
Copy a Leap Frame into our data structures.
getHandPointablesCount(U32 index)
getHandPos(U32 index)
getHandRawPos(U32 index)
getHandRot(U32 index)
getHandRotAxis(U32 index)
getHandRotQuat(U32 index)
bool
getHandValid(U32 index)
getPointableHandIndex(U32 index)
getPointableId(U32 index)
getPointableLength(U32 index)
getPointablePos(U32 index)
getPointableRawPos(U32 index)
getPointableRot(U32 index)
getPointableRotQuat(U32 index)
getPointableType(U32 index)
bool
getPointableValid(U32 index)
getPointableWidth(U32 index)
bool
bool
onAdd()
Called when the object is added to the sim.
Public Static Functions
Detailed Description
Public Types
PointableType
Enumerator
- PT_UNKNOWN = -1
- PT_FINGER = 0
- PT_TOOL
Private Types
typedef SimObject Parent
Protected Static Attributes
U32 smNextInternalFrameId
Protected Attributes
U64 mFrameId
U32 mFrameInternalId
S32 mFrameRealTime
S32 mFrameSimTime
U64 mFrameTimeStamp
bool mFrameValid
U32 mHandCount
Vector< S32 > mHandId
Vector< U32 > mHandPointablesCount
Vector< Point3I > mHandPos
Vector< Point3F > mHandRawPos
Vector< MatrixF > mHandRot
Vector< Point2F > mHandRotAxis
Vector< QuatF > mHandRotQuat
Vector< bool > mHandValid
U32 mPointableCount
Vector< S32 > mPointableHandIndex
Vector< S32 > mPointableId
Vector< F32 > mPointableLength
Vector< Point3I > mPointablePos
Vector< Point3F > mPointableRawPos
Vector< MatrixF > mPointableRot
Vector< QuatF > mPointableRotQuat
Vector< PointableType > mPointableType
Vector< bool > mPointableValid
Vector< F32 > mPointableWidth
Protected Functions
copyFromFrameHands(const Leap::HandList & hands, const F32 & maxHandAxisRadius)
copyFromFramePointables(const Leap::PointableList & pointables)
Public Functions
LeapMotionFrame()
~LeapMotionFrame()
clear()
copyFromFrame(const Leap::Frame & frame, const F32 & maxHandAxisRadius)
Copy a Leap Frame into our data structures.
DECLARE_CONOBJECT(LeapMotionFrame )
getFrameInternalId()
getFrameRealTime()
getFrameSimTime()
getHandCount()
getHandId(U32 index)
getHandPointablesCount(U32 index)
getHandPos(U32 index)
getHandRawPos(U32 index)
getHandRot(U32 index)
getHandRotAxis(U32 index)
getHandRotQuat(U32 index)
getHandValid(U32 index)
getPointableHandIndex(U32 index)
getPointableId(U32 index)
getPointableLength(U32 index)
getPointablePos(U32 index)
getPointableRawPos(U32 index)
getPointableRot(U32 index)
getPointableRotQuat(U32 index)
getPointablesCount()
getPointableType(U32 index)
getPointableValid(U32 index)
getPointableWidth(U32 index)
isFrameValid()
onAdd()
Reimplemented from: SimObject
onRemove()
Reimplemented from: SimObject