BaseIO.cpp
Go to the documentation of this file.
1 
40 #include "lvr2/io/BaseIO.hpp"
41 
42 
43 #include <string>
44 
45 namespace lvr2
46 {
47 
48 void BaseIO::save( ModelPtr m, std::string filename)
49 {
50  m_model = m;
51  save( filename);
52 }
53 
54 
56 {
57  m_model = m;
58 }
59 
60 
62 {
63  return m_model;
64 }
65 
66 } // namespace lvr2
virtual ModelPtr getModel()
Get the model for io operations.
Definition: BaseIO.cpp:61
ModelPtr m_model
Definition: BaseIO.hpp:104
Base interface for all I/O related classes.
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
virtual void save(std::string filename)=0
Save the loaded elements to the given file.
virtual void setModel(ModelPtr m)
Set the model for io operations to use.
Definition: BaseIO.cpp:55


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:06