Medical Imaging Interaction Toolkit  2024.06.99-abf15e24
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 mitkVideoSource_h
14 #define mitkVideoSource_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
mitk::VideoSource::m_FrameCount
unsigned long m_FrameCount
Definition: mitkVideoSource.h:125
mitk::VideoSource::m_CapturingInProcess
bool m_CapturingInProcess
Definition: mitkVideoSource.h:118
MitkDataTypesExtExports.h
mitk::VideoSource::m_CurrentVideoTexture
unsigned char * m_CurrentVideoTexture
Definition: mitkVideoSource.h:100
mitk::VideoSource::m_CaptureWidth
int m_CaptureWidth
Definition: mitkVideoSource.h:106
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition: MitkDataTypesExtExports.h:15
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::VideoSource::m_CapturePaused
bool m_CapturePaused
Definition: mitkVideoSource.h:133
mitkMessage.h
mitk::VideoSource
Definition: mitkVideoSource.h:27
mitkCommon.h
mitk::VideoSource::m_CaptureHeight
int m_CaptureHeight
Definition: mitkVideoSource.h:112