Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkVideoSource.cpp
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 #include "mitkVideoSource.h"
14 
16  : m_CurrentVideoTexture(nullptr),
17  m_CaptureWidth(0),
18  m_CaptureHeight(0),
19  m_CapturingInProcess(false),
20  m_FrameCount(0),
21  m_CapturePaused(false)
22 {
23 }
24 
26 {
28  delete m_CurrentVideoTexture;
29 }
30 
32 {
33  m_CapturingInProcess = true;
34  m_FrameCount = 0;
35  this->Modified();
36 }
37 
39 {
40  m_CapturingInProcess = false;
41  m_FrameCount = 0;
42  this->Modified();
43 }
44 
46 {
47  return m_CapturingInProcess;
48 }
49 
51 {
52  ++m_FrameCount;
53  this->Modified();
54 }
55 
57 {
58  return m_CaptureWidth;
59 }
60 
62 {
63  return m_CaptureHeight;
64 }
65 
66 unsigned long mitk::VideoSource::GetFrameCount() const
67 {
68  return m_FrameCount;
69 }
70 
72 {
73  return m_CapturePaused;
74 }
75 
77 {
79 }
unsigned long m_FrameCount
virtual unsigned long GetFrameCount() const
virtual int GetImageHeight()
virtual void StartCapturing()
unsigned char * m_CurrentVideoTexture
virtual void StopCapturing()
virtual bool GetCapturePaused() const
virtual int GetImageWidth()
virtual void PauseCapturing()
virtual bool IsCapturingEnabled() const
virtual void FetchFrame()