Public Member Functions | List of all members
lvr2::RxpIO Class Reference

Reads .rxp files. More...

#include <RxpIO.hpp>

Inheritance diagram for lvr2::RxpIO:
Inheritance graph
[legend]

Public Member Functions

ModelPtr read (std::string filename)
 Reads .rxp files. More...
 
ModelPtr read (std::string filename, int reduction_factor, const Transformd &transform)
 Reads .rxp files. More...
 
void save (std::string filename)
 This function is not supported and will do nothing. More...
 
- Public Member Functions inherited from lvr2::BaseIO
 BaseIO ()
 
virtual ModelPtr getModel ()
 Get the model for io operations. More...
 
virtual void save (ModelPtr model, std::string filename)
 Set the model and save the loaded elements to the given file. More...
 
virtual void setModel (ModelPtr m)
 Set the model for io operations to use. More...
 
virtual ~BaseIO ()
 

Additional Inherited Members

- Protected Attributes inherited from lvr2::BaseIO
ModelPtr m_model
 

Detailed Description

Reads .rxp files.

Definition at line 52 of file RxpIO.hpp.

Member Function Documentation

◆ read() [1/2]

ModelPtr lvr2::RxpIO::read ( std::string  filename)
virtual

Reads .rxp files.

Parameters
filenamethe path to file that should be read
Returns
returns a ModelPtr with the pointcloud data or if it was unable to read the file it returns an empty ModelPtr

Implements lvr2::BaseIO.

Definition at line 44 of file RxpIO.cpp.

◆ read() [2/2]

ModelPtr lvr2::RxpIO::read ( std::string  filename,
int  reduction_factor,
const Transformd transform 
)

Reads .rxp files.

Parameters
filenamethe path to file that should be read
reduction_factoronly saves a point if (point_number % reduction_factor == 0). So it only saves every reduction_factor th point. If reduction factor is 1, every point will be saved and if it is smaller than 1 it will be set to 1 automatically.
transformevery Point will be transformed with the given tranformation matrix before it is put into the pointcloud
Returns
returns a ModelPtr with the pointcloud data or if it was unable to read the file it returns an empty ModelPtr

Definition at line 49 of file RxpIO.cpp.

◆ save()

void lvr2::RxpIO::save ( std::string  filename)
virtual

This function is not supported and will do nothing.

Implements lvr2::BaseIO.

Definition at line 122 of file RxpIO.cpp.


The documentation for this class was generated from the following files:


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