FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
VTKMeshFileImporter.hpp
Go to the documentation of this file.
1 #ifndef VTK_SURFACE_FILE_IMPORTER_HPP
2 #define VTK_SURFACE_FILE_IMPORTER_HPP
3 
4 #include "Importer.hpp"
5 #include <string>
6 #include <map>
8 
9 namespace fast {
10 
11 class FAST_EXPORT VTKMeshFileImporter : public Importer {
13  public:
14  void setFilename(std::string filename);
15  private:
17  void execute();
18 
19  void processPoints(std::ifstream& file, std::string& line);
20  void processLines(std::ifstream& file, std::string& line);
21  void processTriangles(std::ifstream& file, std::string& line);
22  void processNormals(std::ifstream& file, std::string& line);
23  void processVectors(std::ifstream& file, std::string& line);
24 
25  std::string mFilename;
26  std::vector<MeshVertex> mVertices;
27  std::vector<MeshLine> mLines;
28  std::vector<MeshTriangle> mTriangles;
29  std::map<std::string, std::function<void(std::ifstream&, std::string&)>> mFunctions;
30 };
31 
32 } // end namespace fast
33 
34 #endif
fast
Definition: AffineTransformation.hpp:7
fast::VTKMeshFileImporter
Definition: VTKMeshFileImporter.hpp:11
FAST_OBJECT
#define FAST_OBJECT(className)
Definition: Object.hpp:9
Importer.hpp
fast::Importer
Definition: Importer.hpp:8
MeshVertex.hpp