Public Member Functions | |
AstraDeviceListener () | |
boost::shared_ptr< std::vector < AstraDeviceInfo > > | getConnectedDeviceInfos () |
boost::shared_ptr< std::vector < std::string > > | getConnectedDeviceURIs () |
std::size_t | getNumOfConnectedDevices () |
virtual void | onDeviceConnected (const openni::DeviceInfo *pInfo) |
virtual void | onDeviceDisconnected (const openni::DeviceInfo *pInfo) |
virtual void | onDeviceStateChanged (const openni::DeviceInfo *pInfo, openni::DeviceState state) |
~AstraDeviceListener () | |
Public Attributes | |
boost::mutex | device_mutex_ |
DeviceSet | device_set_ |
Definition at line 61 of file astra_device_manager.cpp.
Definition at line 66 of file astra_device_manager.cpp.
Definition at line 85 of file astra_device_manager.cpp.
boost::shared_ptr<std::vector<AstraDeviceInfo> > astra_wrapper::AstraDeviceListener::getConnectedDeviceInfos | ( | ) | [inline] |
Definition at line 151 of file astra_device_manager.cpp.
boost::shared_ptr<std::vector<std::string> > astra_wrapper::AstraDeviceListener::getConnectedDeviceURIs | ( | ) | [inline] |
Definition at line 134 of file astra_device_manager.cpp.
std::size_t astra_wrapper::AstraDeviceListener::getNumOfConnectedDevices | ( | ) | [inline] |
Definition at line 168 of file astra_device_manager.cpp.
virtual void astra_wrapper::AstraDeviceListener::onDeviceConnected | ( | const openni::DeviceInfo * | ) | [inline, virtual] |
Callback function for the onDeviceConnected event. This function will be called whenever this event occurs. When this happens, a pointer to the DeviceInfo object for the newly connected device will be supplied. Note that once a device is removed, if it was opened by a Device object, that object can no longer be used to access the device, even if it was reconnected. Once a device was reconnected, Device::open() should be called again in order to use this device.
If you wish to open the new device as it is connected, simply query the provided DeviceInfo object to obtain the URI of the device, and pass this URI to the Device.Open() function.
Implements openni::OpenNI::DeviceConnectedListener.
Definition at line 110 of file astra_device_manager.cpp.
virtual void astra_wrapper::AstraDeviceListener::onDeviceDisconnected | ( | const openni::DeviceInfo * | ) | [inline, virtual] |
Callback function for the onDeviceDisconnected event. This function will be called whenever this event occurs. When this happens, a pointer to the DeviceInfo object for the newly disconnected device will be supplied. Note that once a device is removed, if it was opened by a Device object, that object can no longer be used to access the device, even if it was reconnected. Once a device was reconnected, Device::open() should be called again in order to use this device.
Implements openni::OpenNI::DeviceDisconnectedListener.
Definition at line 124 of file astra_device_manager.cpp.
virtual void astra_wrapper::AstraDeviceListener::onDeviceStateChanged | ( | const openni::DeviceInfo * | , |
openni::DeviceState | |||
) | [inline, virtual] |
Callback function for the onDeviceStateChanged event. This function will be called whenever this event occurs. When this happens, a pointer to a DeviceInfo object for the affected device will be supplied, as well as the new DeviceState value of that device.
Implements openni::OpenNI::DeviceStateChangedListener.
Definition at line 92 of file astra_device_manager.cpp.
boost::mutex astra_wrapper::AstraDeviceListener::device_mutex_ |
Definition at line 175 of file astra_device_manager.cpp.
Definition at line 176 of file astra_device_manager.cpp.