ANIMA  4.0
animaShapesWriter.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 ShapesWriter
12 {
13 public:
15  {
16  m_FileName = "";
17  m_InputData = 0;
18  }
19 
21 
22  void SetInputData(vtkPolyData *data) {m_InputData = data;}
23  void SetFileName(std::string &name) {m_FileName = name;}
24 
25  void Update();
26 
27 protected:
28  void WriteFileAsVTKAscii();
29  void WriteFileAsVTKXML();
30  void WriteFileAsMedinriaFibers();
31  void WriteFileAsCSV();
32 
33 private:
34  vtkSmartPointer <vtkPolyData> m_InputData;
35  std::string m_FileName;
36 };
37 
38 } // end namespace anima
void SetInputData(vtkPolyData *data)
void SetFileName(std::string &name)