ANIMA  4.0
animaShapesReader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vtkSmartPointer.h>
4 #include <vtkPolyData.h>
5 #include <string>
6 
7 #include "AnimaDataIOExport.h"
8 
9 namespace anima {
10 
11 class ANIMADATAIO_EXPORT ShapesReader
12 {
13 public:
15  {
16  m_FileName = "";
17  m_OutputData = 0;
18  }
19 
21 
22  void SetFileName(std::string &name) {m_FileName = name;}
23  void Update();
24 
25  vtkPolyData *GetOutput() {return m_OutputData;}
26 
27 protected:
28  void ReadFileAsVTKAscii();
29  void ReadFileAsVTKXML();
30  void ReadFileAsMedinriaFibers();
31  void ReadFileAsCSV();
32 
33 private:
34  vtkSmartPointer <vtkPolyData> m_OutputData;
35  std::string m_FileName;
36 };
37 
38 } // end namespace anima
void SetFileName(std::string &name)
vtkPolyData * GetOutput()