Packagecom.gestureworks.managers
Classpublic class Leap2DManager
InheritanceLeap2DManager Inheritance LeapManager Inheritance flash.display.Sprite



Public Properties
 PropertyDefined By
 Inheritedleap : 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
Protected Properties
 PropertyDefined By
 Inheriteddebug : Boolean = false
LeapManager
Public Methods
 MethodDefined 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
 Inherited
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
 Inherited
onConnect(event:LeapEvent):void
LeapManager
 Inherited
onDisconnect(event:LeapEvent):void
LeapManager
 Inherited
onExit(event:LeapEvent):void
LeapManager
 Inherited
onInit(event:LeapEvent):void
LeapManager
Protected Methods
 MethodDefined By
  
onFrame(event:LeapEvent):void
[override] Process points
Leap2DManager
Property Detail
maxXproperty
maxX:Number

The highest x of the Leap x-coordinate range

The default value is 180.


Implementation
    public function get maxX():Number
    public function set maxX(value:Number):void
maxYproperty 
maxY:Number

The highest y of the Leap y-coordinate range

The default value is 270.


Implementation
    public function get maxY():Number
    public function set maxY(value:Number):void
maxZproperty 
maxZ:Number

The highest z of the Leap z-coordinate range. Mapped to touch pressure.

The default value is 200.


Implementation
    public function get maxZ():Number
    public function set maxZ(value:Number):void
minXproperty 
minX:Number

The lowest x of the Leap x-coordinate range

The default value is -180.


Implementation
    public function get minX():Number
    public function set minX(value:Number):void
minYproperty 
minY:Number

The lowest y of the Leap y-coordinate range

The default value is 75.


Implementation
    public function get minY():Number
    public function set minY(value:Number):void
minZproperty 
minZ:Number

The lowest z of the Leap z-coordinate range. Mapped to touch pressure.

The default value is -110.


Implementation
    public function get minZ():Number
    public function set minZ(value:Number):void
pressureThresholdproperty 
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.

The default value is 1.


Implementation
    public function get pressureThreshold():Number
    public function set pressureThreshold(value:Number):void
Constructor Detail
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.

Parameters
minX: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
Method Detail
onFrame()method
override protected function onFrame(event:LeapEvent):void

Process points

Parameters

event:LeapEvent