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_ */
BaseVector.hpp
lvr2::Matrix4
A 4x4 matrix class implementation for use with the provided vertex types.
Definition: Matrix4.hpp:64
lvr2::BoctreeIO::save
virtual void save(string filename)
Save the loaded elements to the given file.
Definition: BoctreeIO.cpp:220
scan_io_oct.h
IO of a 3D scan in oct-file format.
lvr2::BoctreeIO::~BoctreeIO
virtual ~BoctreeIO()
Definition: BoctreeIO.cpp:50
scripts.normalize_multiple.filename
filename
Definition: normalize_multiple.py:60
Vec
BaseVector< float > Vec
Definition: src/tools/lvr2_cuda_normals/Main.cpp:57
lvr2::BoctreeIO::BoctreeIO
BoctreeIO()
Definition: BoctreeIO.cpp:45
lvr2::BoctreeIO
IO-Class to import compressed octrees from slam6d.
Definition: BoctreeIO.hpp:56
lvr2::BoctreeIO::read
virtual ModelPtr read(string filename)
Parse the given file and load supported elements.
Definition: BoctreeIO.cpp:55
BaseIO.hpp
Base interface for all I/O related classes.
Matrix4.hpp
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ModelPtr
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
lvr2::BoctreeIO::parseFrameFile
Matrix4< Vec > parseFrameFile(ifstream &frameFile)
Definition: BoctreeIO.cpp:225
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