ObjIO.hpp
Go to the documentation of this file.
1 
28 /*
29  * ObjIO.hpp
30  *
31  * @date 07.11.2011
32  * @author Florian Otte (fotte@uos.de)
33  * @author Kim Rinnewitz (krinnewitz@uos.de)
34  * @author Sven Schalk (sschalk@uos.de)
35  * @author Denis Meyer (denmeyer@uos.de)
36  */
37 
38 #ifndef LVR2_OBJIO_HPP_
39 #define LVR2_OBJIO_HPP_
40 #include "lvr2/io/BaseIO.hpp"
41 #include <fstream>
42 #include <set>
43 #include <map>
44 
45 using namespace std;
46 
47 namespace lvr2
48 {
49 
53 class ObjIO : public BaseIO
54 {
55 public:
56 
61  {
62  m_model.reset();
63  }
64 
65  ~ObjIO() { };
66 
72  ModelPtr read( string filename );
73 
80  void save( string filename );
81 
82 
83 private:
84 
85  void parseMtlFile(map<string, int>& matNames,
86  vector<Material>& materials,
87  vector<Texture>& textures,
88  string mtlname);
89 
90 };
91 
92 } // namespace lvr2
93 
94 #endif /* OBJIO_H_ */
ObjIO()
Constructor.
Definition: ObjIO.hpp:60
Interface specification for low-level io. All read elements are stored in linear arrays.
Definition: BaseIO.hpp:57
Base interface for all I/O related classes.
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
A basic implementation of the obj file format.
Definition: ObjIO.hpp:53


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08