![]() |
OpenNI2 SDK
v2.3.0.81
|
类 | |
interface | DeviceConnectedListener |
interface | DeviceDisconnectedListener |
interface | DeviceStateChangedListener |
静态 Public 属性 | |
static final int | TIMEOUT_FOREVER = -1 |
The OpenNI class is a static entry point to the library. It is used by every OpenNI 2.0 application to initialize the SDK and drivers to enable creation of valid device objects.
It also defines a listener class and events that enable for event driven notification of device connection, device disconnection, and device configuration changes.
In addition, it gives access to SDK version information and provides a function that allows you to wait for data to become available on any one of a list of streams (as opposed to waiting for data on one specific stream with functions provided by the VideoStream class)
|
inlinestatic |
Add new device connected observer to OpenNI observers list
deviceListener | object which implements DeviceConnectedListener. |
|
inlinestatic |
Add new device connected observer to OpenNI observers list
deviceListener | object which implements DeviceDisconnectedListener. |
|
inlinestatic |
Add new device connected observer to OpenNI observers list
deviceListener | object which implements DeviceConnectedListener. |
|
inlinestatic |
Fills up an array of DeviceInfo DeviceInfo objects with devices that are available.
|
inlinestatic |
Retrieves the calling thread's last extended error information. The last extended error information is maintained on a per-thread basis. Multiple threads do not overwrite each others last extended error information.
The extended error information is cleared on every call to an OpenNI method, so you should call this method immediately after a call to an OpenNI method which have failed.
|
inlinestatic |
|
inlinestatic |
Initialize the library. This will load all available drivers, and see which devices are available It is forbidden to call any other method in OpenNI before calling initialize().
|
inlinestatic |
Remove device connected observer to OpenNI observers list
deviceListener | object which implements DeviceConnectedListener. |
|
inlinestatic |
Remove device connected observer to OpenNI observers list
deviceListener | object which implements DeviceDisconnectedListener. |
|
inlinestatic |
Remove device state changed observer from OpenNI observers list
deviceListener | object which implements DeviceConnectedListener. |
|
inlinestatic |
Configures if log entries will be printed to file
enabled | Whether log entries should be printed to android log or not. |
|
inlinestatic |
Configures if log entries will be printed to and redirect.
enabled | Whether log entries should be redirected after printing to Android logs. |
|
inlinestatic |
Configures if log entries will be printed to console
enabled | Whether log entries should be printed to console or not. |
|
inlinestatic |
Configures if log entries will be printed to file
enabled | Whether log entries should be printed to file or not. |
|
inlinestatic |
Set minimum severity for log entries
minSeverity | Minimum severity to output |
|
inlinestatic |
Set the output folder for log files (if enabled)
path | Path to write log files to. |
|
inlinestatic |
Stop using the library. Unload all drivers, close all streams and devices. Once shutdown() was called, no other calls to OpenNI is allowed.
|
inlinestatic |
Wait for a new frame from any of the streams provided. The function blocks until any of the streams has a new frame available, or the timeout has passed.
streams | An list of streams to wait for. |
timeout | A timeout before returning if no stream has new data. Default value is TIMEOUT_FOREVER. |