Driver class implemented as Singleton. This class contains the xn::Context object used by all devices. It \ provides methods for enumerating and accessing devices. More...
#include <openni_driver.h>
Classes | |
| struct | DeviceContext |
Public Member Functions | |
| boost::shared_ptr< OpenNIDevice > | createVirtualDevice (const std::string &path, bool repeat, bool stream) const throw (OpenNIException) |
| unsigned char | getAddress (unsigned index) const throw () |
| unsigned char | getBus (unsigned index) const throw () |
| const char * | getConnectionString (unsigned index) const throw () |
| returns the connectionstring for current device, which has following format vendorID/productID@BusID/DeviceID | |
| boost::shared_ptr< OpenNIDevice > | getDeviceByAddress (unsigned char bus, unsigned char address) const throw (OpenNIException) |
| boost::shared_ptr< OpenNIDevice > | getDeviceByIndex (unsigned index) const throw (OpenNIException) |
| boost::shared_ptr< OpenNIDevice > | getDeviceBySerialNumber (const std::string &serial_number) const throw (OpenNIException) |
| unsigned | getNumberDevices () const throw () |
| void | getPrimesenseSerial (xn::NodeInfo info, char *buffer, unsigned buf_size) const throw () |
| unsigned short | getProductID (unsigned index) const throw () |
| const char * | getProductName (unsigned index) const throw () |
| const char * | getSerialNumber (unsigned index) const throw () |
| unsigned short | getVendorID (unsigned index) const throw () |
| const char * | getVendorName (unsigned index) const throw () |
| void | stopAll () throw (OpenNIException) |
| unsigned | updateDeviceList () throw () |
| ~OpenNIDriver () throw () | |
Static Public Member Functions | |
| static void | getDeviceType (const std::string &connection_string, unsigned short &vendorId, unsigned short &productId) |
| static OpenNIDriver & | getInstance () throw (OpenNIException) |
Protected Member Functions | |
| boost::shared_ptr< OpenNIDevice > | getDevice (unsigned index) const throw (OpenNIException) |
| void | getDeviceInfos () throw () |
| OpenNIDriver () throw (OpenNIException) | |
Protected Attributes | |
| std::map< unsigned char, std::map< unsigned char, unsigned > > | bus_map_ |
| std::map< std::string, unsigned > | connection_string_map_ |
| xn::Context | context_ |
| std::vector< DeviceContext > | device_context_ |
| std::map< std::string, unsigned > | serial_map_ |
Driver class implemented as Singleton. This class contains the xn::Context object used by all devices. It \ provides methods for enumerating and accessing devices.
Definition at line 58 of file openni_driver.h.
| openni_wrapper::OpenNIDriver::~OpenNIDriver | ( | ) | throw () |
Definition at line 218 of file openni_driver.cpp.
| openni_wrapper::OpenNIDriver::OpenNIDriver | ( | ) | throw (OpenNIException) [protected] |
Definition at line 61 of file openni_driver.cpp.
| boost::shared_ptr< OpenNIDevice > openni_wrapper::OpenNIDriver::createVirtualDevice | ( | const std::string & | path, |
| bool | repeat, | ||
| bool | stream | ||
| ) | const throw (OpenNIException) |
Definition at line 232 of file openni_driver.cpp.
| unsigned char openni_wrapper::OpenNIDriver::getAddress | ( | unsigned | index | ) | const throw () |
Definition at line 507 of file openni_driver.cpp.
| unsigned char openni_wrapper::OpenNIDriver::getBus | ( | unsigned | index | ) | const throw () |
Definition at line 495 of file openni_driver.cpp.
| const char * openni_wrapper::OpenNIDriver::getConnectionString | ( | unsigned | index | ) | const throw () |
returns the connectionstring for current device, which has following format vendorID/productID@BusID/DeviceID
Definition at line 450 of file openni_driver.cpp.
| boost::shared_ptr<OpenNIDevice> openni_wrapper::OpenNIDriver::getDevice | ( | unsigned | index | ) | const throw (OpenNIException) [protected] |
| boost::shared_ptr< OpenNIDevice > openni_wrapper::OpenNIDriver::getDeviceByAddress | ( | unsigned char | bus, |
| unsigned char | address | ||
| ) | const throw (OpenNIException) |
Definition at line 311 of file openni_driver.cpp.
| boost::shared_ptr< OpenNIDevice > openni_wrapper::OpenNIDriver::getDeviceByIndex | ( | unsigned | index | ) | const throw (OpenNIException) |
Definition at line 253 of file openni_driver.cpp.
| boost::shared_ptr< OpenNIDevice > openni_wrapper::OpenNIDriver::getDeviceBySerialNumber | ( | const std::string & | serial_number | ) | const throw (OpenNIException) |
Definition at line 295 of file openni_driver.cpp.
| void openni_wrapper::OpenNIDriver::getDeviceInfos | ( | ) | throw () [protected] |
Definition at line 336 of file openni_driver.cpp.
| void openni_wrapper::OpenNIDriver::getDeviceType | ( | const std::string & | connection_string, |
| unsigned short & | vendorId, | ||
| unsigned short & | productId | ||
| ) | [static] |
Definition at line 421 of file openni_driver.cpp.
| OpenNIDriver & openni_wrapper::OpenNIDriver::getInstance | ( | ) | throw (OpenNIException) [inline, static] |
Definition at line 119 of file openni_driver.h.
| unsigned openni_wrapper::OpenNIDriver::getNumberDevices | ( | ) | const throw () [inline] |
Definition at line 125 of file openni_driver.h.
| void openni_wrapper::OpenNIDriver::getPrimesenseSerial | ( | xn::NodeInfo | info, |
| char * | buffer, | ||
| unsigned | buf_size | ||
| ) | const throw () |
Definition at line 237 of file openni_driver.cpp.
| unsigned short openni_wrapper::OpenNIDriver::getProductID | ( | unsigned | index | ) | const throw () |
Definition at line 480 of file openni_driver.cpp.
| const char * openni_wrapper::OpenNIDriver::getProductName | ( | unsigned | index | ) | const throw () |
Definition at line 460 of file openni_driver.cpp.
| const char * openni_wrapper::OpenNIDriver::getSerialNumber | ( | unsigned | index | ) | const throw () |
Definition at line 400 of file openni_driver.cpp.
| unsigned short openni_wrapper::OpenNIDriver::getVendorID | ( | unsigned | index | ) | const throw () |
Definition at line 465 of file openni_driver.cpp.
| const char * openni_wrapper::OpenNIDriver::getVendorName | ( | unsigned | index | ) | const throw () |
Definition at line 455 of file openni_driver.cpp.
| void openni_wrapper::OpenNIDriver::stopAll | ( | ) | throw (OpenNIException) |
Definition at line 211 of file openni_driver.cpp.
| unsigned openni_wrapper::OpenNIDriver::updateDeviceList | ( | ) | throw () |
Definition at line 71 of file openni_driver.cpp.
std::map< unsigned char, std::map<unsigned char, unsigned > > openni_wrapper::OpenNIDriver::bus_map_ [protected] |
Definition at line 114 of file openni_driver.h.
std::map< std::string, unsigned > openni_wrapper::OpenNIDriver::connection_string_map_ [protected] |
Definition at line 116 of file openni_driver.h.
xn::Context openni_wrapper::OpenNIDriver::context_ [mutable, protected] |
Definition at line 112 of file openni_driver.h.
std::vector<DeviceContext> openni_wrapper::OpenNIDriver::device_context_ [mutable, protected] |
Definition at line 111 of file openni_driver.h.
std::map< std::string, unsigned > openni_wrapper::OpenNIDriver::serial_map_ [protected] |
Definition at line 115 of file openni_driver.h.