Tanoda
|
The Device class represents a physically connected device. More...
Public Types | |
enum | DeviceType { TYPE_INVALID = -1 , TYPE_PERIPHERAL = (int)eLeapDeviceType.eLeapDeviceType_Peripheral , TYPE_DRAGONFLY = (int)eLeapDeviceType.eLeapDeviceType_Dragonfly , TYPE_NIGHTCRAWLER = (int)eLeapDeviceType.eLeapDeviceType_Nightcrawler , TYPE_RIGEL = (int)eLeapDeviceType.eLeapDevicePID_Rigel , TYPE_LAPTOP , TYPE_KEYBOARD } |
The available types of Leap Motion controllers. More... | |
Public Member Functions | |
Device () | |
Constructs a default Device object. More... | |
Device (IntPtr deviceHandle, IntPtr internalHandle, float horizontalViewAngle, float verticalViewAngle, float range, float baseline, DeviceType type, uint status, string serialNumber) | |
void | Update (float horizontalViewAngle, float verticalViewAngle, float range, float baseline, uint status, string serialNumber) |
For internal use only. More... | |
void | Update (Device updatedDevice) |
For internal use only. More... | |
bool | SetPaused (bool pause) |
bool | Equals (Device other) |
Compare Device object equality. More... | |
override string | ToString () |
A string containing a brief, human readable description of the Device object. More... | |
Protected Member Functions | |
uint | GetDeviceStatus () |
Returns the internal status field of the current device More... | |
Properties | |
IntPtr | Handle [get] |
For internal use only. More... | |
float | HorizontalViewAngle [get] |
The angle in radians of view along the x axis of this device. More... | |
float | VerticalViewAngle [get] |
The angle in radians of view along the z axis of this device. More... | |
float | Range [get] |
The maximum reliable tracking range from the center of this device. More... | |
float | Baseline [get] |
The distance in mm between the center points of the stereo sensors. More... | |
bool | IsStreaming [get, set] |
Reports whether this device is streaming data to your application. More... | |
DeviceType | Type [get] |
The device type. More... | |
string | SerialNumber [get] |
An alphanumeric serial number unique to each device. More... | |
bool | IsSmudged [get, set] |
The software has detected a possible smudge on the translucent cover over the Leap Motion cameras. More... | |
bool | IsLowResource [get, set] |
The software has entered low-resource mode More... | |
bool | IsLightingBad [get, set] |
The software has detected excessive IR illumination, which may interfere with tracking. If robust mode is enabled, the system will enter robust mode when isLightingBad() is true. More... | |
The Device class represents a physically connected device.
The Device class contains information related to a particular connected device such as device id, field of view relative to the device, and the position and orientation of the device in relative coordinates.
The position and orientation describe the alignment of the device relative to the user. The alignment relative to the user is only descriptive. Aligning devices to users provides consistency in the parameters that describe user interactions.
Note that Device objects can be invalid, which means that they do not contain valid device information and do not correspond to a physical device.
The available types of Leap Motion controllers.
Enumerator | |
---|---|
TYPE_INVALID | |
TYPE_PERIPHERAL | A standalone USB peripheral. The original Leap Motion controller device.
|
TYPE_DRAGONFLY | Internal research product codename "Dragonfly". |
TYPE_NIGHTCRAWLER | Internal research product codename "Nightcrawler". |
TYPE_RIGEL | Research product codename "Rigel". |
TYPE_LAPTOP | |
TYPE_KEYBOARD |
Leap.Device.Device | ( | ) |
Constructs a default Device object.
Get valid Device objects from a DeviceList object obtained using the Controller.Devices() method.
Leap.Device.Device | ( | IntPtr | deviceHandle, |
IntPtr | internalHandle, | ||
float | horizontalViewAngle, | ||
float | verticalViewAngle, | ||
float | range, | ||
float | baseline, | ||
DeviceType | type, | ||
uint | status, | ||
string | serialNumber | ||
) |
bool Leap.Device.Equals | ( | Device | other | ) |
|
protected |
override string Leap.Device.ToString | ( | ) |
void Leap.Device.Update | ( | Device | updatedDevice | ) |
void Leap.Device.Update | ( | float | horizontalViewAngle, |
float | verticalViewAngle, | ||
float | range, | ||
float | baseline, | ||
uint | status, | ||
string | serialNumber | ||
) |
|
get |
|
get |
The angle in radians of view along the x axis of this device.
The Leap Motion controller scans a region in the shape of an inverted pyramid centered at the device's center and extending upwards. The horizontalViewAngle reports the view angle along the long dimension of the device.
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
The maximum reliable tracking range from the center of this device.
The range reports the maximum recommended distance from the device center for which tracking is expected to be reliable. This distance is not a hard limit. Tracking may be still be functional above this distance or begin to degrade slightly before this distance depending on calibration and extreme environmental conditions.
|
get |
|
get |
The device type.
Use the device type value in the (rare) circumstances that you have an application feature which relies on a particular type of device. Current types of device include the original Leap Motion peripheral, keyboard-embedded controllers, and laptop-embedded controllers.
|
get |
The angle in radians of view along the z axis of this device.
The Leap Motion controller scans a region in the shape of an inverted pyramid centered at the device's center and extending upwards. The verticalViewAngle reports the view angle along the short dimension of the device.