PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
ICCapturingListener.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2  Program: Plus
3  Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4  See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef __ICCapturingListener_h
8 #define __ICCapturingListener_h
9 
10 #include <tisudshl.h>
11 
17 class ICCapturingListener : public DShowLib::GrabberListener
18 {
19 public:
22 
25 
27  virtual void overlayCallback( DShowLib::Grabber& caller, smart_ptr<DShowLib::OverlayBitmap> pBitmap, const DShowLib::tsMediaSampleDesc& MediaSampleDesc );
28 
30  virtual void frameReady( DShowLib::Grabber& caller, smart_ptr<DShowLib::MemBuffer> pBuffer, DWORD FrameNumber );
31 
33  void saveImage( smart_ptr<DShowLib::MemBuffer> pBuffer, DWORD currFrame );
34 
36  void setBufferSize( unsigned long NumBuffers );
37 
39  typedef bool (*ICCapturingSourceNewFramePtr)(unsigned char *imageData, unsigned long dataSize, unsigned long frameNumber);
40 
43 
44 protected:
46  std::vector<bool> m_BufferWritten;
47 
50 
51 };
52 
53 #endif
std::vector< bool > m_BufferWritten
Class that listens for incoming framegrabber images.
void saveImage(smart_ptr< DShowLib::MemBuffer > pBuffer, DWORD currFrame)
unsigned long DWORD
Definition: ATC3DGm.h:451
void setBufferSize(unsigned long NumBuffers)
bool(* ICCapturingSourceNewFramePtr)(unsigned char *imageData, unsigned long dataSize, unsigned long frameNumber)
ICCapturingSourceNewFramePtr ICCapturingSourceNewFrameCallback
void SetICCapturingSourceNewFrameCallback(ICCapturingSourceNewFramePtr cb)
virtual void overlayCallback(DShowLib::Grabber &caller, smart_ptr< DShowLib::OverlayBitmap > pBitmap, const DShowLib::tsMediaSampleDesc &MediaSampleDesc)
virtual void frameReady(DShowLib::Grabber &caller, smart_ptr< DShowLib::MemBuffer > pBuffer, DWORD FrameNumber)