AsciiIO.hpp
Go to the documentation of this file.
1 
42 #ifndef ASCIIIO_H_
43 #define ASCIIIO_H_
44 
45 #include "lvr2/io/BaseIO.hpp"
46 
47 namespace lvr2
48 {
49 
55 class AsciiIO : public BaseIO
56 {
57  public:
58 
62  AsciiIO() {};
63 
64 
71  virtual ModelPtr read( string filename );
72 
94  virtual ModelPtr read(
95  string filename,
96  const int& x, const int& y, const int& z,
97  const int& r = -1, const int& g = -1, const int& b = -1, const int& i = -1);
98 
99 
104  virtual void save( string filename );
105 
106 
108  static size_t countLines(string filename);
109 
110 
115  static int getEntriesInLine(string filename);
116 };
117 
118 
119 } // namespace lvr2
120 
121 #endif /* ASCIIIO_H_ */
lvr2::AsciiIO::getEntriesInLine
static int getEntriesInLine(string filename)
Helper method. Returns the number of columns in the given file.
Definition: AsciiIO.cpp:404
lvr2::AsciiIO::AsciiIO
AsciiIO()
Default constructor.
Definition: AsciiIO.hpp:62
scripts.normalize_multiple.filename
filename
Definition: normalize_multiple.py:60
lvr2::AsciiIO::countLines
static size_t countLines(string filename)
TODO: Coordinate mapping for ascii files.
Definition: AsciiIO.cpp:386
lvr2::AsciiIO::read
virtual ModelPtr read(string filename)
Reads the given file and stores point and color information in the given parameters.
Definition: AsciiIO.cpp:227
BaseIO.hpp
Base interface for all I/O related classes.
lvr2::AsciiIO
A import / export class for point cloud data in plain text formats. Currently the file extensions ....
Definition: AsciiIO.hpp:55
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ModelPtr
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
lvr2::AsciiIO::save
virtual void save(string filename)
Definition: AsciiIO.cpp:300
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