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_ */
static int getEntriesInLine(string filename)
Helper method. Returns the number of columns in the given file.
Definition: AsciiIO.cpp:404
Interface specification for low-level io. All read elements are stored in linear arrays.
Definition: BaseIO.hpp:57
A import / export class for point cloud data in plain text formats. Currently the file extensions ...
Definition: AsciiIO.hpp:55
static size_t countLines(string filename)
TODO: Coordinate mapping for ascii files.
Definition: AsciiIO.cpp:386
AsciiIO()
Default constructor.
Definition: AsciiIO.hpp:62
Base interface for all I/O related classes.
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
virtual ModelPtr read(string filename)
Reads the given file and stores point and color information in the given parameters.
Definition: AsciiIO.cpp:227
virtual void save(string filename)
Definition: AsciiIO.cpp:300


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