Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkVideoSource.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _mitk_Video_Source_h_
18 #define _mitk_Video_Source_h_
19 
21 #include "mitkCommon.h"
22 #include <itkObject.h>
23 #include <itkObjectFactory.h>
24 #include <mitkMessage.h>
25 
26 namespace mitk
27 {
31  class MITKDATATYPESEXT_EXPORT VideoSource : virtual public itk::Object
32  {
33  public:
43  virtual void FetchFrame();
47  virtual unsigned char *GetVideoTexture() = 0;
53  virtual void StartCapturing();
59  virtual void StopCapturing();
64  virtual bool IsCapturingEnabled() const;
68  virtual int GetImageWidth();
72  virtual int GetImageHeight();
76  virtual unsigned long GetFrameCount() const;
80  virtual bool GetCapturePaused() const;
87  virtual void PauseCapturing();
88 
89  protected:
93  VideoSource();
97  virtual ~VideoSource();
98 
99  protected:
104  unsigned char *m_CurrentVideoTexture;
105 
111 
117 
123 
129  unsigned long m_FrameCount;
130 
138  };
139 }
140 #endif // Header
unsigned long m_FrameCount
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
unsigned char * m_CurrentVideoTexture
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53