| Package | com.as3nui.nativeExtensions.air.kinect.manager |
| Class | public class KinectManager |
| Inheritance | KinectManager flash.events.EventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
KinectManager(e:Enforcer) | KinectManager | ||
applicationShutdown():void
Called when the application is closed. | KinectManager | ||
disposeDevice(device:Kinect):void
Remove a registered device from the dictionary. | KinectManager | ||
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 | ||
| Method | Defined By | ||
|---|---|---|---|
statusHandler(event:StatusEvent):void | KinectManager | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when a device is connected to the system. | KinectManager | |||
| Dispatched when a device is disconnected from the system. | KinectManager | |||
| KinectManager | () | Constructor |
public function KinectManager(e:Enforcer)e:Enforcer |
| applicationShutdown | () | method |
public function applicationShutdown():voidCalled when the application is closed. Used to clean up native code in the extension.
| disposeDevice | () | method |
public function disposeDevice(device:Kinect):voidRemove a registered device from the dictionary.
Parameters
device:Kinect |
| getDevice | () | method |
public function getDevice(nr:uint = 0):KinectAutomatically 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
|
Kinect — |
| getDeviceByClass | () | method |
public function getDeviceByClass(deviceClass:Class, nr:uint = 0):KinectGet 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) |
Kinect — |
| getDeviceByFramework | () | method |
public function getDeviceByFramework(framework:String, nr:uint = 0):KinectGet 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
|
Kinect — |
See also
| getInstance | () | method |
| isSupported | () | method |
public function isSupported():BooleanCheck if there is a Sensor available for use
ReturnsBoolean |
| numDevices | () | method |
public function numDevices():uintGet the current number of sensors connected to the system
Returnsuint — Number of Sensors connected
|
| registerDevice | () | method |
| statusHandler | () | method |
protected function statusHandler(event:StatusEvent):voidParameters
event:StatusEvent |
| connected | Event |
com.as3nui.nativeExtensions.air.kinect.events.DeviceEventDispatched when a device is connected to the system.
| disconnected | Event |
com.as3nui.nativeExtensions.air.kinect.events.DeviceEventDispatched when a device is disconnected from the system.