Tanoda
LeapInternal.Connection Class Reference

Classes

struct  Key
 

Public Member Functions

void Dispose ()
 
void Start ()
 
void Stop ()
 
UInt64 GetInterpolatedFrameSize (Int64 time)
 
void GetInterpolatedFrame (Frame toFill, Int64 time)
 
void GetInterpolatedFrameFromTime (Frame toFill, Int64 time, Int64 sourceTime)
 
Frame GetInterpolatedFrame (Int64 time)
 
void GetInterpolatedHeadPose (ref LEAP_HEAD_POSE_EVENT toFill, Int64 time)
 
LEAP_HEAD_POSE_EVENT GetInterpolatedHeadPose (Int64 time)
 
void GetInterpolatedLeftRightTransform (Int64 time, Int64 sourceTime, Int64 leftId, Int64 rightId, out LeapTransform leftTransform, out LeapTransform rightTransform)
 
void SetPolicy (Controller.PolicyFlag policy)
 
void ClearPolicy (Controller.PolicyFlag policy)
 
bool IsPolicySet (Controller.PolicyFlag policy)
 Gets the active setting for a specific policy. More...
 
uint GetConfigValue (string config_key)
 
uint SetConfigValue< T > (string config_key, T value)
 
Vector PixelToRectilinear (Image.CameraType camera, Vector pixel)
 
Vector RectilinearToPixel (Image.CameraType camera, Vector ray)
 
void TelemetryProfiling (ref LEAP_TELEMETRY_DATA telemetryData)
 
void GetPointMapping (ref PointMapping pm)
 

Static Public Member Functions

static Connection GetConnection (int connectionId=0)
 
static Connection GetConnection (Key connectionKey)
 

Public Attributes

EventHandler< ConnectionLostEventArgsLeapConnectionLost
 
EventHandler< DeviceEventArgsLeapDevice
 
EventHandler< DeviceEventArgsLeapDeviceLost
 
EventHandler< DeviceFailureEventArgsLeapDeviceFailure
 
EventHandler< PolicyEventArgsLeapPolicyChange
 
EventHandler< FrameEventArgsLeapFrame
 
EventHandler< InternalFrameEventArgsLeapInternalFrame
 
EventHandler< LogEventArgsLeapLogEvent
 
EventHandler< SetConfigResponseEventArgsLeapConfigResponse
 
EventHandler< ConfigChangeEventArgsLeapConfigChange
 
EventHandler< DistortionEventArgsLeapDistortionChange
 
EventHandler< DroppedFrameEventArgsLeapDroppedFrame
 
EventHandler< ImageEventArgsLeapImage
 
EventHandler< PointMappingChangeEventArgsLeapPointMappingChange
 
EventHandler< HeadPoseEventArgsLeapHeadPoseChange
 
Action< BeginProfilingForThreadArgsLeapBeginProfilingForThread
 
Action< EndProfilingForThreadArgsLeapEndProfilingForThread
 
Action< BeginProfilingBlockArgsLeapBeginProfilingBlock
 
Action< EndProfilingBlockArgsLeapEndProfilingBlock
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Properties

Key ConnectionKey [get]
 
CircularObjectBuffer< LEAP_TRACKING_EVENTFrames [get, set]
 
SynchronizationContext EventContext [get, set]
 
EventHandler< LeapEventArgsLeapInit
 
EventHandler< ConnectionEventArgsLeapConnection
 
bool IsServiceConnected [get]
 Reports whether your application has a connection to the Leap Motion daemon/service. Can be true even if the Leap Motion hardware is not available. More...
 
DeviceList Devices [get]
 The list of currently attached and recognized Leap Motion controller devices. More...
 
FailedDeviceList FailedDevices [get]
 

Detailed Description

Definition at line 17 of file Connection.cs.

Member Function Documentation

◆ ClearPolicy()

void LeapInternal.Connection.ClearPolicy ( Controller.PolicyFlag  policy)

Definition at line 703 of file Connection.cs.

◆ Dispose() [1/2]

void LeapInternal.Connection.Dispose ( )

Definition at line 122 of file Connection.cs.

◆ Dispose() [2/2]

virtual void LeapInternal.Connection.Dispose ( bool  disposing)
protectedvirtual

Definition at line 128 of file Connection.cs.

◆ GetConfigValue()

uint LeapInternal.Connection.GetConfigValue ( string  config_key)

Definition at line 751 of file Connection.cs.

◆ GetConnection() [1/2]

static Connection LeapInternal.Connection.GetConnection ( int  connectionId = 0)
static

Definition at line 30 of file Connection.cs.

◆ GetConnection() [2/2]

static Connection LeapInternal.Connection.GetConnection ( Key  connectionKey)
static

Definition at line 34 of file Connection.cs.

◆ GetInterpolatedFrame() [1/2]

void LeapInternal.Connection.GetInterpolatedFrame ( Frame  toFill,
Int64  time 
)

Definition at line 362 of file Connection.cs.

◆ GetInterpolatedFrame() [2/2]

Frame LeapInternal.Connection.GetInterpolatedFrame ( Int64  time)

Definition at line 388 of file Connection.cs.

◆ GetInterpolatedFrameFromTime()

void LeapInternal.Connection.GetInterpolatedFrameFromTime ( Frame  toFill,
Int64  time,
Int64  sourceTime 
)

Definition at line 375 of file Connection.cs.

◆ GetInterpolatedFrameSize()

UInt64 LeapInternal.Connection.GetInterpolatedFrameSize ( Int64  time)

Definition at line 355 of file Connection.cs.

◆ GetInterpolatedHeadPose() [1/2]

LEAP_HEAD_POSE_EVENT LeapInternal.Connection.GetInterpolatedHeadPose ( Int64  time)

Definition at line 399 of file Connection.cs.

◆ GetInterpolatedHeadPose() [2/2]

void LeapInternal.Connection.GetInterpolatedHeadPose ( ref LEAP_HEAD_POSE_EVENT  toFill,
Int64  time 
)

Definition at line 394 of file Connection.cs.

◆ GetInterpolatedLeftRightTransform()

void LeapInternal.Connection.GetInterpolatedLeftRightTransform ( Int64  time,
Int64  sourceTime,
Int64  leftId,
Int64  rightId,
out LeapTransform  leftTransform,
out LeapTransform  rightTransform 
)

Definition at line 405 of file Connection.cs.

◆ GetPointMapping()

void LeapInternal.Connection.GetPointMapping ( ref PointMapping  pm)

Definition at line 859 of file Connection.cs.

◆ IsPolicySet()

bool LeapInternal.Connection.IsPolicySet ( Controller.PolicyFlag  policy)

Gets the active setting for a specific policy.

Keep in mind that setting a policy flag is asynchronous, so changes are not effective immediately after calling setPolicyFlag(). In addition, a policy request can be declined by the user. You should always set the policy flags required by your application at startup and check that the policy change request was successful after an appropriate interval.

If the controller object is not connected to the Leap Motion software, then the default state for the selected policy is returned.

Since
2.1.6

Definition at line 746 of file Connection.cs.

◆ PixelToRectilinear()

Vector LeapInternal.Connection.PixelToRectilinear ( Image.CameraType  camera,
Vector  pixel 
)

Definition at line 834 of file Connection.cs.

◆ RectilinearToPixel()

Vector LeapInternal.Connection.RectilinearToPixel ( Image.CameraType  camera,
Vector  ray 
)

Definition at line 844 of file Connection.cs.

◆ SetConfigValue< T >()

uint LeapInternal.Connection.SetConfigValue< T > ( string  config_key,
value 
)
Type Constraints
T :IConvertible 

Definition at line 759 of file Connection.cs.

◆ SetPolicy()

void LeapInternal.Connection.SetPolicy ( Controller.PolicyFlag  policy)

Definition at line 693 of file Connection.cs.

◆ Start()

void LeapInternal.Connection.Start ( )

Definition at line 155 of file Connection.cs.

◆ Stop()

void LeapInternal.Connection.Stop ( )

Definition at line 200 of file Connection.cs.

◆ TelemetryProfiling()

void LeapInternal.Connection.TelemetryProfiling ( ref LEAP_TELEMETRY_DATA  telemetryData)

Definition at line 854 of file Connection.cs.

Member Data Documentation

◆ LeapBeginProfilingBlock

Action<BeginProfilingBlockArgs> LeapInternal.Connection.LeapBeginProfilingBlock

Definition at line 117 of file Connection.cs.

◆ LeapBeginProfilingForThread

Action<BeginProfilingForThreadArgs> LeapInternal.Connection.LeapBeginProfilingForThread

Definition at line 115 of file Connection.cs.

◆ LeapConfigChange

EventHandler<ConfigChangeEventArgs> LeapInternal.Connection.LeapConfigChange

Definition at line 108 of file Connection.cs.

◆ LeapConfigResponse

EventHandler<SetConfigResponseEventArgs> LeapInternal.Connection.LeapConfigResponse

Definition at line 107 of file Connection.cs.

◆ LeapConnectionLost

EventHandler<ConnectionLostEventArgs> LeapInternal.Connection.LeapConnectionLost

Definition at line 99 of file Connection.cs.

◆ LeapDevice

EventHandler<DeviceEventArgs> LeapInternal.Connection.LeapDevice

Definition at line 100 of file Connection.cs.

◆ LeapDeviceFailure

EventHandler<DeviceFailureEventArgs> LeapInternal.Connection.LeapDeviceFailure

Definition at line 102 of file Connection.cs.

◆ LeapDeviceLost

EventHandler<DeviceEventArgs> LeapInternal.Connection.LeapDeviceLost

Definition at line 101 of file Connection.cs.

◆ LeapDistortionChange

EventHandler<DistortionEventArgs> LeapInternal.Connection.LeapDistortionChange

Definition at line 109 of file Connection.cs.

◆ LeapDroppedFrame

EventHandler<DroppedFrameEventArgs> LeapInternal.Connection.LeapDroppedFrame

Definition at line 110 of file Connection.cs.

◆ LeapEndProfilingBlock

Action<EndProfilingBlockArgs> LeapInternal.Connection.LeapEndProfilingBlock

Definition at line 118 of file Connection.cs.

◆ LeapEndProfilingForThread

Action<EndProfilingForThreadArgs> LeapInternal.Connection.LeapEndProfilingForThread

Definition at line 116 of file Connection.cs.

◆ LeapFrame

EventHandler<FrameEventArgs> LeapInternal.Connection.LeapFrame

Definition at line 104 of file Connection.cs.

◆ LeapHeadPoseChange

EventHandler<HeadPoseEventArgs> LeapInternal.Connection.LeapHeadPoseChange

Definition at line 113 of file Connection.cs.

◆ LeapImage

EventHandler<ImageEventArgs> LeapInternal.Connection.LeapImage

Definition at line 111 of file Connection.cs.

◆ LeapInternalFrame

EventHandler<InternalFrameEventArgs> LeapInternal.Connection.LeapInternalFrame

Definition at line 105 of file Connection.cs.

◆ LeapLogEvent

EventHandler<LogEventArgs> LeapInternal.Connection.LeapLogEvent

Definition at line 106 of file Connection.cs.

◆ LeapPointMappingChange

EventHandler<PointMappingChangeEventArgs> LeapInternal.Connection.LeapPointMappingChange

Definition at line 112 of file Connection.cs.

◆ LeapPolicyChange

EventHandler<PolicyEventArgs> LeapInternal.Connection.LeapPolicyChange

Definition at line 103 of file Connection.cs.

Property Documentation

◆ ConnectionKey

Key LeapInternal.Connection.ConnectionKey
get

Definition at line 56 of file Connection.cs.

◆ Devices

DeviceList LeapInternal.Connection.Devices
get

The list of currently attached and recognized Leap Motion controller devices.

The Device objects in the list describe information such as the range and tracking volume.

Currently, the Leap Motion Controller only allows a single active device at a time, however there may be multiple devices physically attached and listed here. Any active device(s) are guaranteed to be listed first, however order is not determined beyond that.

Since
1.0

Definition at line 814 of file Connection.cs.

◆ EventContext

SynchronizationContext LeapInternal.Connection.EventContext
getset

Definition at line 78 of file Connection.cs.

◆ FailedDevices

FailedDeviceList LeapInternal.Connection.FailedDevices
get

Definition at line 824 of file Connection.cs.

◆ Frames

CircularObjectBuffer<LEAP_TRACKING_EVENT> LeapInternal.Connection.Frames
getset

Definition at line 57 of file Connection.cs.

◆ IsServiceConnected

bool LeapInternal.Connection.IsServiceConnected
get

Reports whether your application has a connection to the Leap Motion daemon/service. Can be true even if the Leap Motion hardware is not available.

Since
1.2

Definition at line 784 of file Connection.cs.

◆ LeapConnection

EventHandler<ConnectionEventArgs> LeapInternal.Connection.LeapConnection
addremove

Definition at line 91 of file Connection.cs.

◆ LeapInit

EventHandler<LeapEventArgs> LeapInternal.Connection.LeapInit
addremove

Definition at line 81 of file Connection.cs.


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