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


avt_vimba_camera
Author(s): Allied Vision Technologies, Miquel Massot
autogenerated on Fri Jun 2 2023 02:21:10