Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNavigationDataRecorder.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_NavigationDataRecorder_H
18 #define _MITK_NavigationDataRecorder_H
19 
21 #include "mitkNavigationData.h"
22 #include "mitkNavigationDataSet.h"
23 
24 namespace mitk
25 {
39  {
40  public:
41 
43 
44  itkFactorylessNewMacro(Self)
45  itkCloneMacro(Self)
46 
47 
50  itkGetMacro(Recording, bool);
51 
56 
60  itkSetMacro(RecordCountLimit, int);
61 
65  itkGetMacro(StandardizeTime, bool);
66 
71  itkSetMacro(StandardizeTime, bool);
72 
76  virtual void StartRecording();
77 
84  virtual void StopRecording();
85 
91  virtual void ResetRecording();
92 
97  virtual int GetNumberOfRecordedSteps();
98 
99  protected:
100 
101  virtual void GenerateData() override;
102 
104 
105  virtual ~NavigationDataRecorder();
106 
107  unsigned int m_NumberOfInputs;
108 
110 
111  bool m_Recording;
112 
113  bool m_StandardizeTime; //< indicates whether one should use the timestamps in NavigationData or create new timestamps upon recording
114 
115  bool m_StandardizedTimeInitialized; //< set to true the first time start recording is called.
116 
118  };
119 }
120 #endif // #define _MITK_POINT_SET_SOURCE_H
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
bool m_Recording
indicates whether the recording is started or not
int m_RecordCountLimit
limits the number of frames, recording will be stopped if the limit is reached. -1 disables the limit...
DataCollection - Class to facilitate loading/accessing structured data.
This class records NavigationData objects into NavigationDataSets.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Data structure which stores streams of mitk::NavigationData for multiple tools.
unsigned int m_NumberOfInputs
counts the numbers of added input NavigationDatas
mitk::NavigationDataSet::Pointer m_NavigationDataSet