frame_observer.h
Go to the documentation of this file.
1 
33 #ifndef FRAME_OBSERVER_H
34 #define FRAME_OBSERVER_H
35 
36 #include <boost/function.hpp>
37 
39 
40 using namespace AVT::VmbAPI;
41 
42 class FrameObserver : virtual public IFrameObserver
43 {
44  public:
45 
46  typedef boost::function<void (const FramePtr vimba_frame_ptr)> Callback;
47 
48  // We pass the camera that will deliver the frames to the constructor
49  FrameObserver( CameraPtr cam_ptr, Callback callback);
50 
51  // Destructor
53 
54  // This is our callback routine that will be executed on every received frame
55  virtual void FrameReceived( const FramePtr vimba_frame_ptr );
56 
57  private:
58  // Frame observer stores all FramePtr
60  Callback callback_;
61 };
62 
63 #endif
CameraPtr cam_ptr_
NetPointer< Frame, AVT::VmbAPINET::Frame > FramePtr
Callback callback_
NetPointer< Camera, AVT::VmbAPINET::Camera > CameraPtr
boost::function< void(const FramePtr vimba_frame_ptr)> Callback


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Mon Jun 10 2019 12:50:39