Packagecom.as3nui.nativeExtensions.air.kinect.manager
Classpublic class KinectManager
InheritanceKinectManager Inheritance flash.events.EventDispatcher



Public Methods
 MethodDefined By
  
KinectManager(e:Enforcer)
KinectManager
  
Called when the application is closed.
KinectManager
  
disposeDevice(device:Kinect):void
Remove a registered device from the dictionary.
KinectManager
  
getDevice(nr:uint = 0):Kinect
Automatically chooses from the "default" devices for an operating system this is currently OpenNI for OSX and MSSDK / OpenNI for windows (depending on the ane)
KinectManager
  
getDeviceByClass(deviceClass:Class, nr:uint = 0):Kinect
Get an instance of the Kinect class.
KinectManager
  
getDeviceByFramework(framework:String, nr:uint = 0):Kinect
Get an instance of the Kinect class.
KinectManager
  
[static]
KinectManager
  
isSupported():Boolean
Check if there is a Sensor available for use
KinectManager
  
numDevices():uint
Get the current number of sensors connected to the system
KinectManager
  
registerDevice(device:Kinect):void
KinectManager
Protected Methods
 MethodDefined By
  
statusHandler(event:StatusEvent):void
KinectManager
Events
 Event Summary Defined By
  Dispatched when a device is connected to the system.KinectManager
  Dispatched when a device is disconnected from the system.KinectManager
Constructor Detail
KinectManager()Constructor
public function KinectManager(e:Enforcer)



Parameters
e:Enforcer
Method Detail
applicationShutdown()method
public function applicationShutdown():void

Called when the application is closed. Used to clean up native code in the extension.

disposeDevice()method 
public function disposeDevice(device:Kinect):void

Remove a registered device from the dictionary.

Parameters

device:Kinect

getDevice()method 
public function getDevice(nr:uint = 0):Kinect

Automatically chooses from the "default" devices for an operating system this is currently OpenNI for OSX and MSSDK / OpenNI for windows (depending on the ane)

Parameters

nr:uint (default = 0) — Device number to get

Returns
Kinect
getDeviceByClass()method 
public function getDeviceByClass(deviceClass:Class, nr:uint = 0):Kinect

Get an instance of the Kinect class. You'll use this method to get instances of the class, instead of creating instances yourself.

Parameters

deviceClass:Class
 
nr:uint (default = 0)

Returns
Kinect
getDeviceByFramework()method 
public function getDeviceByFramework(framework:String, nr:uint = 0):Kinect

Get an instance of the Kinect class. You'll use this method to get instances of the class, instead of creating instances yourself.

Parameters

framework:String
 
nr:uint (default = 0) — DeviceId to get

Returns
Kinect

See also

getInstance()method 
public static function getInstance():KinectManager

Returns
KinectManager
isSupported()method 
public function isSupported():Boolean

Check if there is a Sensor available for use

Returns
Boolean
numDevices()method 
public function numDevices():uint

Get the current number of sensors connected to the system

Returns
uint — Number of Sensors connected
registerDevice()method 
public function registerDevice(device:Kinect):void

Parameters

device:Kinect

statusHandler()method 
protected function statusHandler(event:StatusEvent):void

Parameters

event:StatusEvent

Event Detail
connected Event
Event Object Type: com.as3nui.nativeExtensions.air.kinect.events.DeviceEvent

Dispatched when a device is connected to the system.

disconnected Event  
Event Object Type: com.as3nui.nativeExtensions.air.kinect.events.DeviceEvent

Dispatched when a device is disconnected from the system.