MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNavigationDataRecorder.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkNavigationDataRecorder_h
14#define mitkNavigationDataRecorder_h
15
17#include "mitkNavigationData.h"
19
20namespace mitk
21{
35 {
36 public:
37
39
41
43
47 itkGetMacro(Recording, bool);
48
52 itkGetMacro(NavigationDataSet, mitk::NavigationDataSet::Pointer);
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
117 mitk::NavigationDataSet::Pointer m_NavigationDataSet;
118
120
122
124
126
128 };
129}
130#endif
This class records NavigationData objects into NavigationDataSets.
itkGetMacro(RecordOnlyValidData, bool)
Returns whether to use valid data only.
itkSetMacro(RecordCountLimit, int)
Sets a limit of recorded data sets / frames. Recording will be stopped if the number is reached....
bool m_StandardizedTimeInitialized
set to true the first time start recording is called.
bool m_RecordOnlyValidData
indicates whether only valid data is recorded
bool m_StandardizeTime
indicates whether one should use the timestamps in NavigationData or create new timestamps upon recor...
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
itkSetMacro(RecordOnlyValidData, bool)
If set to false, invalid navigationDatas will also be used. If set to true, the recorder will record ...
itkGetMacro(StandardizeTime, bool)
Returns whether to use the navigationdata's time stamp or to create a new one upon recording.
itkSetMacro(StandardizeTime, bool)
If set to false, the navigationdata's timestamp will be used. If set to true, the recorder will gener...
unsigned int m_NumberOfInputs
counts the numbers of added input NavigationDatas
itkGetMacro(NavigationDataSet, mitk::NavigationDataSet::Pointer)
Returns the set that contains all of the recorded data.
itkGetMacro(Recording, bool)
Returns whether the NavigationDataRecorder is currently recording or not.
mitk::NavigationDataSet::Pointer m_NavigationDataSet
mitkClassMacro(NavigationDataRecorder, NavigationDataToNavigationDataFilter)
Data structure which stores streams of mitk::NavigationData for multiple tools.
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
IGT Exceptions.