Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::IO::OFFFileManager Class Reference

#include <IO/deprecated/OFFFileManager.hpp>

+ Inheritance diagram for Ra::IO::OFFFileManager:
+ Collaboration diagram for Ra::IO::OFFFileManager:

Public Member Functions

 OFFFileManager ()
 CONSTRUCTOR.
 
 ~OFFFileManager () override
 DESTRUCTOR.
 
- Public Member Functions inherited from Ra::IO::FileManager< Core::Geometry::TriangleMesh >
 FileManager ()=default
 CONSTRUCTOR.
 
virtual ~FileManager ()=default
 DESTRUCTOR.
 
bool load (const std::string &filename, Core::Geometry::TriangleMesh &data, const bool SAVE_LOG_FILE=false)
 INTERFACE.
 
bool save (const std::string &filename, const Core::Geometry::TriangleMesh &data, const bool SAVE_LOG_FILE=false)
 
std::string log () const
 LOG.
 

Protected Member Functions

std::string header () const
 HEADER.
 
std::string fileExtension () const override
 INTERFACE.
 
bool importData (std::istream &file, Core::Geometry::TriangleMesh &data) override
 
bool exportData (std::ostream &file, const Core::Geometry::TriangleMesh &data) override
 
- Protected Member Functions inherited from Ra::IO::FileManager< Core::Geometry::TriangleMesh >
void addLogEntry (const std::string &text)
 LOG.
 
void addLogEntry (const std::string &text, const LogEntryType type)
 
void addLogWarningEntry (const std::string &text)
 
void addLogErrorEntry (const std::string &text)
 

Additional Inherited Members

- Public Types inherited from Ra::IO::FileManager< Core::Geometry::TriangleMesh >
enum  LogEntryType
 ENUM. More...
 

Detailed Description

The class OFFFileManager handles the loading and storing of TriangleMesh in the standard OFF format.

Warning
will be removed once integration of file saving is done in new IO, see https://github.com/STORM-IRIT/Radium-Engine/issues/362
Todo
reimplement in IO
Deprecated
see https://github.com/STORM-IRIT/Radium-Engine/issues/362

Definition at line 18 of file OFFFileManager.hpp.

Constructor & Destructor Documentation

◆ OFFFileManager()

Ra::IO::OFFFileManager::OFFFileManager ( )

CONSTRUCTOR.

===============================================================================

CONSTRUCTOR

Definition at line 12 of file OFFFileManager.cpp.

◆ ~OFFFileManager()

Ra::IO::OFFFileManager::~OFFFileManager ( )
override

DESTRUCTOR.

===============================================================================

DESTRUCTOR

Definition at line 17 of file OFFFileManager.cpp.

Member Function Documentation

◆ exportData()

bool Ra::IO::OFFFileManager::exportData ( std::ostream & file,
const Core::Geometry::TriangleMesh & data )
overrideprotectedvirtual

◆ fileExtension()

std::string Ra::IO::OFFFileManager::fileExtension ( ) const
overrideprotectedvirtual

INTERFACE.

===============================================================================

INTERFACE

Implements Ra::IO::FileManager< Core::Geometry::TriangleMesh >.

Definition at line 29 of file OFFFileManager.cpp.

◆ header()

std::string Ra::IO::OFFFileManager::header ( ) const
protected

HEADER.

===============================================================================

HEADER

Definition at line 22 of file OFFFileManager.cpp.

◆ importData()

bool Ra::IO::OFFFileManager::importData ( std::istream & file,
Core::Geometry::TriangleMesh & data )
overrideprotectedvirtual

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