BaseIO.hpp
Go to the documentation of this file.
1 
41 #ifndef BASEIO_HPP_
42 #define BASEIO_HPP_
43 
44 #include <string>
45 #include <map>
46 
47 #include "lvr2/io/Model.hpp"
48 
49 namespace lvr2
50 {
51 
52 
57 class BaseIO
58 {
59  public:
60  BaseIO() {}
61  virtual ~BaseIO() {};
62 
68  virtual ModelPtr read(std::string filename ) = 0;
69 
70 
76  virtual void save(std::string filename) = 0;
77 
78 
85  virtual void save(ModelPtr model, std::string filename);
86 
87 
88 
93  virtual void setModel(ModelPtr m);
94 
95 
100  virtual ModelPtr getModel();
101 
102 
103  protected:
105 
106 };
107 
108 } // namespace lvr2
109 
110 
111 #endif /* BASEIO_HPP_ */
lvr2::BaseIO::read
virtual ModelPtr read(std::string filename)=0
Parse the given file and load supported elements.
lvr2::BaseIO::BaseIO
BaseIO()
Definition: BaseIO.hpp:60
lvr2::BaseIO::setModel
virtual void setModel(ModelPtr m)
Set the model for io operations to use.
Definition: BaseIO.cpp:55
scripts.normalize_multiple.filename
filename
Definition: normalize_multiple.py:60
lvr2::BaseIO::~BaseIO
virtual ~BaseIO()
Definition: BaseIO.hpp:61
Model.hpp
lvr2::BaseIO::save
virtual void save(std::string filename)=0
Save the loaded elements to the given file.
lvr2::BaseIO::m_model
ModelPtr m_model
Definition: BaseIO.hpp:104
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::BaseIO::getModel
virtual ModelPtr getModel()
Get the model for io operations.
Definition: BaseIO.cpp:61
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:22