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_ */
lvr2::ObjIO::~ObjIO
~ObjIO()
Definition: ObjIO.hpp:65
lvr2::ObjIO::ObjIO
ObjIO()
Constructor.
Definition: ObjIO.hpp:60
scripts.normalize_multiple.filename
filename
Definition: normalize_multiple.py:60
lvr2::ObjIO
A basic implementation of the obj file format.
Definition: ObjIO.hpp:53
BaseIO.hpp
Base interface for all I/O related classes.
std
Definition: HalfEdge.hpp:124
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ModelPtr
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
lvr2::BaseIO
Interface specification for low-level io. All read elements are stored in linear arrays.
Definition: BaseIO.hpp:57


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 Wed Mar 2 2022 00:37:24