BoctreeIO.hpp
Go to the documentation of this file.
1 
35 #ifndef BOCTREEIO_HPP_
36 #define BOCTREEIO_HPP_
37 
38 #include "lvr2/io/BaseIO.hpp"
39 
42 
43 #include <boost/filesystem.hpp>
44 
45 #include "slam6d/scan_io_oct.h"
46 
47 
48 namespace lvr2
49 {
50 
51 using Vec = BaseVector<float>;
52 
56 class BoctreeIO : public BaseIO
57 {
58 
59 
60 public:
61 
62  BoctreeIO();
63  virtual ~BoctreeIO();
64 
70  virtual ModelPtr read(string filename );
71 
72 
78  virtual void save( string filename );
79 
80 private:
81  Matrix4<Vec> parseFrameFile(ifstream& frameFile);
82 };
83 
84 } /* namespace lvr2 */
85 
86 #endif /* BOCTREEIO_HPP_ */
A 4x4 matrix class implementation for use with the provided vertex types.
Definition: Matrix4.hpp:64
IO-Class to import compressed octrees from slam6d.
Definition: BoctreeIO.hpp:56
Matrix4< Vec > parseFrameFile(ifstream &frameFile)
Definition: BoctreeIO.cpp:225
virtual void save(string filename)
Save the loaded elements to the given file.
Definition: BoctreeIO.cpp:220
Interface specification for low-level io. All read elements are stored in linear arrays.
Definition: BaseIO.hpp:57
virtual ModelPtr read(string filename)
Parse the given file and load supported elements.
Definition: BoctreeIO.cpp:55
virtual ~BoctreeIO()
Definition: BoctreeIO.cpp:50
Base interface for all I/O related classes.
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
BaseVector< float > Vec
IO of a 3D scan in oct-file format.


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