Public Member Functions | Public Attributes | List of all members
astra_wrapper::AstraDeviceListener Class Reference
Inheritance diagram for astra_wrapper::AstraDeviceListener:
Inheritance graph
[legend]

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 Member Functions inherited from openni::OpenNI::DeviceConnectedListener
 DeviceConnectedListener ()
 
virtual ~DeviceConnectedListener ()
 
- Public Member Functions inherited from openni::OpenNI::DeviceDisconnectedListener
 DeviceDisconnectedListener ()
 
virtual ~DeviceDisconnectedListener ()
 
- Public Member Functions inherited from openni::OpenNI::DeviceStateChangedListener
 DeviceStateChangedListener ()
 
virtual ~DeviceStateChangedListener ()
 

Public Attributes

boost::mutex device_mutex_
 
DeviceSet device_set_
 

Detailed Description

Definition at line 61 of file astra_device_manager.cpp.

Constructor & Destructor Documentation

astra_wrapper::AstraDeviceListener::AstraDeviceListener ( )
inline

Definition at line 66 of file astra_device_manager.cpp.

astra_wrapper::AstraDeviceListener::~AstraDeviceListener ( )
inline

Definition at line 85 of file astra_device_manager.cpp.

Member Function Documentation

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 )
inlinevirtual

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 )
inlinevirtual

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   
)
inlinevirtual

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.

Member Data Documentation

boost::mutex astra_wrapper::AstraDeviceListener::device_mutex_

Definition at line 175 of file astra_device_manager.cpp.

DeviceSet astra_wrapper::AstraDeviceListener::device_set_

Definition at line 176 of file astra_device_manager.cpp.


The documentation for this class was generated from the following file:


astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34