include
avt_vimba_camera
frame_observer.h
Go to the documentation of this file.
1
33
#ifndef FRAME_OBSERVER_H
34
#define FRAME_OBSERVER_H
35
36
#include <
VimbaCPP/Include/VimbaCPP.h
>
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
51
~FrameObserver
(){};
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
FrameObserver
Definition:
frame_observer.h:42
VimbaCPP.h
FrameObserver::Callback
std::function< void(const FramePtr vimba_frame_ptr)> Callback
Definition:
frame_observer.h:45
FrameObserver::~FrameObserver
~FrameObserver()
Definition:
frame_observer.h:51
FrameObserver::cam_ptr_
CameraPtr cam_ptr_
Definition:
frame_observer.h:58
AVT::VmbAPI::IFrameObserver
Definition:
IFrameObserver.h:38
FrameObserver::callback_
Callback callback_
Definition:
frame_observer.h:59
AVT::VmbAPI
Definition:
AncillaryData.h:36
avt_vimba_camera
Author(s): Allied Vision Technologies, Miquel Massot
autogenerated on Sat Jun 3 2023 02:14:12