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

#include <STLIO.hpp>

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

Public Member Functions

virtual ModelPtr read (string filename)
 Parse the given file and load supported elements. More...
 
virtual void save (ModelPtr model, string filename)
 
virtual void save (string filename)
 
 STLIO ()
 
virtual ~STLIO ()
 
- Public Member Functions inherited from lvr2::BaseIO
 BaseIO ()
 
virtual ModelPtr getModel ()
 Get the model for io operations. More...
 
virtual ModelPtr read (std::string filename)=0
 Parse the given file and load supported elements. More...
 
virtual void save (ModelPtr model, std::string filename)
 Set the model and save the loaded elements to the given file. More...
 
virtual void save (std::string filename)=0
 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

Definition at line 47 of file STLIO.hpp.

Constructor & Destructor Documentation

◆ STLIO()

lvr2::STLIO::STLIO ( )

Definition at line 53 of file STLIO.cpp.

◆ ~STLIO()

lvr2::STLIO::~STLIO ( )
virtual

Definition at line 58 of file STLIO.cpp.

Member Function Documentation

◆ read()

ModelPtr lvr2::STLIO::read ( string  filename)
virtual

Parse the given file and load supported elements.

Parameters
filenameThe file to read.
Returns
A new model. If the file could not be parsed, an empty model is returned.

Definition at line 62 of file STLIO.cpp.

◆ save() [1/2]

void lvr2::STLIO::save ( ModelPtr  model,
string  filename 
)
virtual

Definition at line 72 of file STLIO.cpp.

◆ save() [2/2]

void lvr2::STLIO::save ( string  filename)
virtual

Definition at line 67 of file STLIO.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 Wed Mar 2 2022 00:37:27