Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 (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_NavigationDataRecorder_H
14 #define _MITK_NavigationDataRecorder_H
15 
17 #include "mitkNavigationData.h"
18 #include "mitkNavigationDataSet.h"
19 
20 namespace mitk
21 {
35  {
36  public:
37 
39 
40  itkFactorylessNewMacro(Self);
41 
42  itkCloneMacro(Self);
43 
47  itkGetMacro(Recording, bool);
48 
53 
57  itkSetMacro(RecordCountLimit, int);
58 
62  itkGetMacro(StandardizeTime, bool);
63 
68  itkSetMacro(StandardizeTime, bool);
69 
74  itkSetMacro(RecordOnlyValidData, bool);
75 
79  itkGetMacro(RecordOnlyValidData, bool);
80 
84  virtual void StartRecording();
85 
92  virtual void StopRecording();
93 
99  virtual void ResetRecording();
100 
105  virtual int GetNumberOfRecordedSteps();
106 
107  protected:
108 
109  void GenerateData() override;
110 
112 
113  ~NavigationDataRecorder() override;
114 
115  unsigned int m_NumberOfInputs;
116 
118 
119  bool m_Recording;
120 
122 
124 
126 
128  };
129 }
130 #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...
bool m_StandardizedTimeInitialized
set to true the first time start recording is called.
DataCollection - Class to facilitate loading/accessing structured data.
bool m_StandardizeTime
indicates whether one should use the timestamps in NavigationData or create new timestamps upon recor...
#define MITKIGT_EXPORT
This class records NavigationData objects into NavigationDataSets.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Data structure which stores streams of mitk::NavigationData for multiple tools.
unsigned int m_NumberOfInputs
counts the numbers of added input NavigationDatas
bool m_RecordOnlyValidData
indicates whether only valid data is recorded
mitk::NavigationDataSet::Pointer m_NavigationDataSet