Medical Imaging Interaction Toolkit  2025.12.02
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:
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
#define MITKDATATYPESEXT_EXPORT
mitkClassMacroItkParent(VideoSource, itk::Object)
virtual bool GetCapturePaused() const
~VideoSource() override
virtual void FetchFrame()
unsigned long m_FrameCount
virtual int GetImageHeight()
virtual void StopCapturing()
virtual void StartCapturing()
virtual int GetImageWidth()
virtual bool IsCapturingEnabled() const
virtual unsigned long GetFrameCount() const
virtual unsigned char * GetVideoTexture()=0
unsigned char * m_CurrentVideoTexture
virtual void PauseCapturing()
Find image slices visible on a given plane.