Grabber interface for PCL 1.x device drivers. More...
#include <pcl/io/grabber.h>

Public Member Functions | |
| Grabber () | |
| Constructor. | |
| virtual | ~Grabber () throw () |
| virtual desctructor. | |
| template<typename T > | |
| boost::signals2::connection | registerCallback (const boost::function< T > &callback) |
| registers a callback function/method to a signal with the corresponding signature | |
| template<typename T > | |
| bool | providesCallback () const |
| indicates whether a signal with given parameter-type exists or not | |
| virtual void | start ()=0 |
| For devices that are streaming, the streams are started by calling this method. | |
| virtual void | stop ()=0 |
| For devices that are streaming, the streams are stopped. | |
| virtual std::string | getName () const =0 |
| returns the name of the concrete subclass. | |
| virtual bool | isRunning () const =0 |
| Indicates whether the grabber is streaming or not. | |
| virtual float | getFramesPerSecond () const =0 |
| returns fps. | |
Protected Member Functions | |
| virtual void | signalsChanged () |
| template<typename T > | |
| boost::signals2::signal< T > * | find_signal () const |
| template<typename T > | |
| int | num_slots () const |
| template<typename T > | |
| void | disconnect_all_slots () |
| template<typename T > | |
| void | block_signal () |
| template<typename T > | |
| void | unblock_signal () |
| void | block_signals () |
| void | unblock_signals () |
| template<typename T > | |
| boost::signals2::signal< T > * | createSignal () |
Protected Attributes | |
| std::map< std::string, boost::signals2::signal_base * > | signals_ |
| std::map< std::string, std::vector < boost::signals2::connection > > | connections_ |
| std::map< std::string, std::vector < boost::signals2::shared_connection_block > > | shared_connections_ |
Grabber interface for PCL 1.x device drivers.
Definition at line 58 of file grabber.h.
| pcl::Grabber::~Grabber | ( | ) | throw () [inline, virtual] |
| void pcl::Grabber::block_signal | ( | ) | [inline, protected] |
Definition at line 174 of file grabber.h.
References connections_, and shared_connections_.
| void pcl::Grabber::block_signals | ( | ) | [inline, protected] |
Definition at line 190 of file grabber.h.
References shared_connections_, and signals_.
| boost::signals2::signal< T > * pcl::Grabber::createSignal | ( | ) | [inline, protected] |
| void pcl::Grabber::disconnect_all_slots | ( | ) | [inline, protected] |
| boost::signals2::signal< T > * pcl::Grabber::find_signal | ( | ) | const [inline, protected] |
| virtual float pcl::Grabber::getFramesPerSecond | ( | ) | const [pure virtual] |
returns fps.
0 if trigger based.
Implemented in pcl::DinastGrabber, pcl::HDLGrabber, pcl::ImageGrabberBase, pcl::ONIGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::PXCGrabber, and pcl::RobotEyeGrabber.
| virtual std::string pcl::Grabber::getName | ( | ) | const [pure virtual] |
returns the name of the concrete subclass.
Implemented in pcl::DinastGrabber, pcl::HDLGrabber, pcl::ImageGrabberBase, pcl::ONIGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::PXCGrabber, and pcl::RobotEyeGrabber.
Referenced by registerCallback().
| virtual bool pcl::Grabber::isRunning | ( | ) | const [pure virtual] |
Indicates whether the grabber is streaming or not.
This value is not defined for triggered devices.
Implemented in pcl::DinastGrabber, pcl::HDLGrabber, pcl::ImageGrabberBase, pcl::ONIGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::PXCGrabber, and pcl::RobotEyeGrabber.
| int pcl::Grabber::num_slots | ( | ) | const [inline, protected] |
| bool pcl::Grabber::providesCallback | ( | ) | const [inline] |
| boost::signals2::connection pcl::Grabber::registerCallback | ( | const boost::function< T > & | callback | ) | [inline] |
registers a callback function/method to a signal with the corresponding signature
| [in] | callback,: | the callback function/method |
Definition at line 235 of file grabber.h.
References connections_, getName(), shared_connections_, signals_, and signalsChanged().
| virtual void pcl::Grabber::signalsChanged | ( | ) | [inline, protected, virtual] |
Reimplemented in pcl::OpenNIGrabber.
Definition at line 112 of file grabber.h.
Referenced by registerCallback().
| virtual void pcl::Grabber::start | ( | ) | [pure virtual] |
For devices that are streaming, the streams are started by calling this method.
Trigger-based devices, just trigger the device once for each call of start.
Implemented in pcl::DinastGrabber, pcl::HDLGrabber, pcl::ImageGrabberBase, pcl::ONIGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::PXCGrabber, and pcl::RobotEyeGrabber.
| virtual void pcl::Grabber::stop | ( | ) | [pure virtual] |
For devices that are streaming, the streams are stopped.
This method has no effect for triggered devices.
Implemented in pcl::DinastGrabber, pcl::HDLGrabber, pcl::ImageGrabberBase, pcl::ONIGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::PXCGrabber, and pcl::RobotEyeGrabber.
| void pcl::Grabber::unblock_signal | ( | ) | [inline, protected] |
Definition at line 182 of file grabber.h.
References connections_, and shared_connections_.
| void pcl::Grabber::unblock_signals | ( | ) | [inline, protected] |
Definition at line 198 of file grabber.h.
References shared_connections_, and signals_.
std::map<std::string, std::vector<boost::signals2::connection> > pcl::Grabber::connections_ [protected] |
Definition at line 139 of file grabber.h.
Referenced by block_signal(), registerCallback(), and unblock_signal().
std::map<std::string, std::vector<boost::signals2::shared_connection_block> > pcl::Grabber::shared_connections_ [protected] |
Definition at line 140 of file grabber.h.
Referenced by block_signal(), block_signals(), registerCallback(), unblock_signal(), and unblock_signals().
std::map<std::string, boost::signals2::signal_base*> pcl::Grabber::signals_ [protected] |
Definition at line 138 of file grabber.h.
Referenced by block_signals(), createSignal(), disconnect_all_slots(), find_signal(), num_slots(), providesCallback(), registerCallback(), unblock_signals(), and ~Grabber().