#include <OpenNI.h>
Classes | |
class | DeviceConnectedListener |
class | DeviceDisconnectedListener |
class | DeviceStateChangedListener |
Private Member Functions | |
OpenNI () | |
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 a listener to the list of objects that receive the event when a device is connected. See the OpenNI::DeviceConnectedListener class for details on utilizing the events provided by OpenNI.
pListener | Pointer to the Listener to be added to the list |
|
inlinestatic |
Add a listener to the list of objects that receive the event when a device is disconnected. See the OpenNI::DeviceDisconnectedListener class for details on utilizing the events provided by OpenNI.
pListener | Pointer to the Listener to be added to the list |
|
inlinestatic |
Add a listener to the list of objects that receive the event when a device's state changes. See the OpenNI::DeviceStateChangedListener class for details on utilizing the events provided by OpenNI.
pListener | Pointer to the Listener to be added to the list |
|
inlinestatic |
Fills up an array of DeviceInfo objects with devices that are available.
[in,out] | deviceInfoList | An array to be filled with devices. |
|
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 other's 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 |
|
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 a listener from the list of objects that receive the event when a device is connected. See the OpenNI::DeviceConnectedListener class for details on utilizing the events provided by OpenNI.
pListener | Pointer to the Listener to be removed from the list |
|
inlinestatic |
Remove a listener from the list of objects that receive the event when a device is disconnected. See the OpenNI::DeviceDisconnectedListener class for details on utilizing the events provided by OpenNI.
pListener | Pointer to the Listener to be removed from the list |
|
inlinestatic |
Remove a listener from the list of objects that receive the event when a device's state changes. See the OpenNI::DeviceStateChangedListener class for details on utilizing the events provided by OpenNI.
pListener | Pointer to the Listener to be removed from the list |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
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.
[in] | pStreams | An array of streams to wait for. |
[in] | streamCount | The number of streams in pStreams |
[out] | pReadyStreamIndex | The index of the first stream that has new frame available. |
[in] | timeout | [Optional] A timeout before returning if no stream has new data. Default value is TIMEOUT_FOREVER. |