frame_observer.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 #ifndef FRAME_OBSERVER_H
00034 #define FRAME_OBSERVER_H
00035 
00036 #include <boost/function.hpp>
00037 
00038 #include <VimbaCPP/Include/VimbaCPP.h>
00039 
00040 using namespace AVT::VmbAPI;
00041 
00042 class FrameObserver : virtual public IFrameObserver
00043 {
00044   public:
00045 
00046     typedef boost::function<void (const FramePtr vimba_frame_ptr)> Callback;
00047 
00048     // We pass the camera that will deliver the frames to the constructor
00049     FrameObserver( CameraPtr cam_ptr, Callback callback);
00050 
00051     // Destructor
00052     ~FrameObserver(){};
00053 
00054     // This is our callback routine that will be executed on every received frame
00055     virtual void FrameReceived( const FramePtr vimba_frame_ptr );
00056 
00057   private:
00058     // Frame observer stores all FramePtr
00059     CameraPtr cam_ptr_;
00060     Callback callback_;
00061 };
00062 
00063 #endif


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Thu Jun 6 2019 18:23:39