Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNavigationDataRecorderDeprecated.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_NavigationDataRecorderDeprecated_H
18 #define _MITK_NavigationDataRecorderDeprecated_H
19 
20 #include <itkProcessObject.h>
21 #include "mitkNavigationData.h"
22 #include "MitkIGTExports.h"
23 #include <iostream>
24 
25 #include <mitkRealTimeClock.h>
26 
27 namespace mitk
28 {
44  class MITKIGT_EXPORT NavigationDataRecorderDeprecated : public itk::ProcessObject
45  {
46  public:
48 
49  itkNewMacro( Self );
50 
59  {
62  ZipFile
63  };
64 
72  {
73  xml,
74  csv
75  };
76 
84  DEPRECATED( itkSetStringMacro(FileName));
85 
89  DEPRECATED( itkGetStringMacro(FileName));
90 
94  DEPRECATED( itkSetMacro(DoNotOverwriteFiles,bool));
95 
99  DEPRECATED( itkGetMacro(Recording,bool));
100 
104  DEPRECATED( itkGetMacro(RecordingMode,RecordingMode));
105 
109  DEPRECATED( itkGetMacro(RecordCounter,int));
110 
114  DEPRECATED( itkSetMacro(RecordCountLimit,int));
115 
119  DEPRECATED( virtual void AddNavigationData(const NavigationData* nd));
120 
126  DEPRECATED( void SetAdditionalAttribute( const NavigationData* nd, const std::string& attributeName
127  , const std::string& attributeValue ));
128  DEPRECATED(void RemoveAdditionalAttribute( const NavigationData* nd ));
129 
138  DEPRECATED( void StartRecording());
139 
146  DEPRECATED( void StartRecording(std::ostream* stream));
147 
151  DEPRECATED( void StopRecording());
152 
157  DEPRECATED( virtual void Update());
158 
163  DEPRECATED( void SetRecordingMode(RecordingMode mode));
164 
170 
171  protected:
172 
177  virtual void GenerateData() override;
178 
180 
182 
183  std::string m_FileName;
184 
185  unsigned int m_NumberOfInputs;
186 
187  std::ostream* m_Stream;
188 
190 
192 
194 
195  bool m_Recording;
196 
198 
200 
201  bool m_firstLine; //for the csv writer to detect wether the header must be written
202 
203  unsigned int m_NumberOfRecordedFiles;
204 
206 
208 
209  std::map<const mitk::NavigationData*, std::pair<std::string, std::string> > m_AdditionalAttributes;
210  };
211 }
212 #endif // #define _MITK_POINT_SET_SOURCE_H
itk::SmartPointer< Self > Pointer
unsigned int m_NumberOfInputs
counts the numbers of added input NavigationDatas
std::map< const mitk::NavigationData *, std::pair< std::string, std::string > > m_AdditionalAttributes
Navigation Data.
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
DataCollection - Class to facilitate loading/accessing structured data.
int m_RecordCounter
counts the number of frames which are recorded since StartRecording
This class records NavigationData objects.
std::string m_FileName
stores the file name and path
#define DEPRECATED(func)
Definition: mitkCommon.h:183
mitk::RealTimeClock::Pointer m_SystemTimeClock
system time clock for system time tag in output xml file
RecordingMode
Determines where the output is directed to.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
bool m_Recording
indicates whether the recording is started or not
RecordingMode m_RecordingMode
stores the mode see enum RecordingMode
unsigned int m_NumberOfRecordedFiles
necessary for the naming of the file if there is more than one start-stop cycle
bool m_DoNotOverwriteFiles
do not overwrite any files if true
OutputFormatEnum m_OutputFormat
stores the output format; see enum OutputFormat
int m_RecordCountLimit
limits the number of frames, recording will be stopped if the limit is reached. -1 disables the limit...