Medical Imaging Interaction Toolkit  2018.4.99-936b789b
Medical Imaging Interaction Toolkit
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef _mitk_Video_Source_h_
14 #define _mitk_Video_Source_h_
15 
17 #include "mitkCommon.h"
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
20 #include <mitkMessage.h>
21 
22 namespace mitk
23 {
27  class MITKDATATYPESEXT_EXPORT VideoSource : virtual public itk::Object
28  {
29  public:
39  virtual void FetchFrame();
43  virtual unsigned char *GetVideoTexture() = 0;
49  virtual void StartCapturing();
55  virtual void StopCapturing();
60  virtual bool IsCapturingEnabled() const;
64  virtual int GetImageWidth();
68  virtual int GetImageHeight();
72  virtual unsigned long GetFrameCount() const;
76  virtual bool GetCapturePaused() const;
83  virtual void PauseCapturing();
84 
85  protected:
89  VideoSource();
93  ~VideoSource() override;
94 
95  protected:
100  unsigned char *m_CurrentVideoTexture;
101 
107 
113 
119 
125  unsigned long m_FrameCount;
126 
134  };
135 }
136 #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:49