Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkNavigationDataReaderCSV.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 mitkNavigationDataReaderCSV_h
14 #define mitkNavigationDataReaderCSV_h
15 
16 #include <MitkIGTIOExports.h>
17 
18 #include <mitkAbstractFileReader.h>
19 #include <mitkNavigationDataSet.h>
20 
21 namespace mitk {
29  {
30  public:
31 
33  ~NavigationDataReaderCSV() override;
34 
39 
40  protected:
41  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
42 
46  mitk::NavigationData::Pointer CreateNd(std::string timestamp, std::string valid, std::string X, std::string Y, std::string Z, std::string QX, std::string QY, std::string QZ, std::string QR);
47 
51  std::vector<std::string> GetFileContentLineByLine(std::string filename);
52 
56  int getNumberOfToolsInLine(std::string line);
57 
61  std::vector<mitk::NavigationData::Pointer> parseLine(std::string line, int NumOfTools);
62 
66  double StringToDouble( const std::string& s );
67 
71  std::vector<std::string> splitLine(std::string line);
72 
74 
75  mitk::NavigationDataReaderCSV* Clone() const override;
76 
77  };
78 }
79 
80 #endif
mitk::NavigationDataReaderCSV
Definition: mitkNavigationDataReaderCSV.h:28
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition: mitkAbstractFileReader.h:42
MITKIGTIO_EXPORT
#define MITKIGTIO_EXPORT
Definition: MitkIGTIOExports.h:15
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkIGTIOExports.h
mitkAbstractFileReader.h
mitkNavigationDataSet.h
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.