| Package | com.gestureworks.managers |
| Class | public class Leap2DManager |
| Inheritance | Leap2DManager LeapManager flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
![]() | leap : LeapMotion | LeapManager | |
| maxX : Number
The highest x of the Leap x-coordinate range
| Leap2DManager | ||
| maxY : Number
The highest y of the Leap y-coordinate range
| Leap2DManager | ||
| maxZ : Number
The highest z of the Leap z-coordinate range. | Leap2DManager | ||
| minX : Number
The lowest x of the Leap x-coordinate range
| Leap2DManager | ||
| minY : Number
The lowest y of the Leap y-coordinate range
| Leap2DManager | ||
| minZ : Number
The lowest z of the Leap z-coordinate range. | Leap2DManager | ||
| pressureThreshold : Number
Defines a point registration threshold, based on pressure(Z coordinate), providing the control to decrease
the entry point of the device's interactive field. | Leap2DManager | ||
| Method | Defined By | ||
|---|---|---|---|
Leap2DManager(minX:Number = 0, maxX:Number = 0, minY:Number = 0, maxY:Number = 0, minZ:Number = 0, maxZ:Number = 0)
The Leap2DManager constructor allows arguments for screen and leap device calibration settings. | Leap2DManager | ||
![]() | map(num:Number, min1:Number, max1:Number, min2:Number, max2:Number, round:Boolean = false, constrainMin:Boolean = true, constrainMax:Boolean = true):Number [static]
Linearly maps an incoming value from one range to another
| LeapManager | |
![]() | onConnect(event:LeapEvent):void | LeapManager | |
![]() | onDisconnect(event:LeapEvent):void | LeapManager | |
![]() | onExit(event:LeapEvent):void | LeapManager | |
![]() | onInit(event:LeapEvent):void | LeapManager | |
| Method | Defined By | ||
|---|---|---|---|
onFrame(event:LeapEvent):void [override]
Process points
| Leap2DManager | ||
| maxX | property |
maxX:NumberThe highest x of the Leap x-coordinate range
The default value is 180.
public function get maxX():Number public function set maxX(value:Number):void| maxY | property |
maxY:NumberThe highest y of the Leap y-coordinate range
The default value is 270.
public function get maxY():Number public function set maxY(value:Number):void| maxZ | property |
maxZ:NumberThe highest z of the Leap z-coordinate range. Mapped to touch pressure.
The default value is 200.
public function get maxZ():Number public function set maxZ(value:Number):void| minX | property |
minX:NumberThe lowest x of the Leap x-coordinate range
The default value is -180.
public function get minX():Number public function set minX(value:Number):void| minY | property |
minY:NumberThe lowest y of the Leap y-coordinate range
The default value is 75.
public function get minY():Number public function set minY(value:Number):void| minZ | property |
minZ:NumberThe lowest z of the Leap z-coordinate range. Mapped to touch pressure.
The default value is -110.
public function get minZ():Number public function set minZ(value:Number):void| pressureThreshold | property |
pressureThreshold:NumberDefines a point registration threshold, based on pressure(Z coordinate), providing the control to decrease the entry point of the device's interactive field.
The default value is 1.
public function get pressureThreshold():Number public function set pressureThreshold(value:Number):void| Leap2DManager | () | Constructor |
public function Leap2DManager(minX:Number = 0, maxX:Number = 0, minY:Number = 0, maxY:Number = 0, minZ:Number = 0, maxZ:Number = 0)The Leap2DManager constructor allows arguments for screen and leap device calibration settings. The settings will map x and y Leap coordinate ranges to screen coordinates and the Leap z range to pressure. The calibration is only valid as long as the relative position of the Leap device and the monitor remain constant.
ParametersminX:Number (default = 0) — minimum Leap X coordinate
| |
maxX:Number (default = 0) — maximum Leap X coordinate
| |
minY:Number (default = 0) — minimum Leap Y coordinate
| |
maxY:Number (default = 0) — maximum Leap Y coordinate
| |
minZ:Number (default = 0) — minimum Leap Z coordinate
| |
maxZ:Number (default = 0) — maximum Leap Z coordinate
|
| onFrame | () | method |
override protected function onFrame(event:LeapEvent):voidProcess points
Parameters
event:LeapEvent |