OpenMesh
Loading...
Searching...
No Matches
OpenMesh::IO::_STLWriter_ Class Reference

Implementation of the STL format writer. More...

#include <OpenMesh/Core/IO/writer/STLWriter.hh>

Inheritance diagram for OpenMesh::IO::_STLWriter_:
Collaboration diagram for OpenMesh::IO::_STLWriter_:

Public Member Functions

virtual ~_STLWriter_ ()
 Destructor.
 
std::string get_description () const
 Return short description of the supported file format.
 
std::string get_extensions () const
 Return file format's extension.
 
bool write (const std::string &, BaseExporter &, Options, std::streamsize _precision=6) const
 Write to a file.
 
bool write (std::ostream &, BaseExporter &, Options, std::streamsize _precision=6) const
 Write to a std::ostream.
 
size_t binary_size (BaseExporter &, Options) const
 Returns expected size of file if binary format is supported else 0.
 
- Public Member Functions inherited from OpenMesh::IO::BaseWriter
virtual ~BaseWriter ()
 Destructor.
 
virtual std::string get_description () const =0
 Return short description of the supported file format.
 
virtual std::string get_extensions () const =0
 Return file format's extension.
 
virtual bool can_u_write (const std::string &_filename) const
 Returns true if writer can write _filename (checks extension).
 
virtual bool write (const std::string &_filename, BaseExporter &_be, Options _opt, std::streamsize _precision=6) const =0
 Write to a file.
 
virtual bool write (std::ostream &_os, BaseExporter &_be, Options _opt, std::streamsize _precision=6) const =0
 Write to a std::ostream.
 
virtual size_t binary_size (BaseExporter &, Options) const
 Returns expected size of file if binary format is supported else 0.
 

Additional Inherited Members

- Public Types inherited from OpenMesh::IO::BaseWriter
typedef unsigned int Option
 
- Protected Member Functions inherited from OpenMesh::IO::BaseWriter
bool check (BaseExporter &_be, Options _opt) const
 

Detailed Description

Implementation of the STL format writer.

This class is singleton'ed by SingletonT to STLWriter.

Member Function Documentation

◆ binary_size()

size_t OpenMesh::IO::_STLWriter_::binary_size ( BaseExporter ,
Options   
) const
virtual

Returns expected size of file if binary format is supported else 0.

Reimplemented from OpenMesh::IO::BaseWriter.

◆ get_description()

std::string OpenMesh::IO::_STLWriter_::get_description ( ) const
inlinevirtual

Return short description of the supported file format.

Implements OpenMesh::IO::BaseWriter.

◆ get_extensions()

std::string OpenMesh::IO::_STLWriter_::get_extensions ( ) const
inlinevirtual

Return file format's extension.

Implements OpenMesh::IO::BaseWriter.

◆ write() [1/2]

bool OpenMesh::IO::_STLWriter_::write ( const std::string &  _filename,
BaseExporter _be,
Options  _opt,
std::streamsize  _precision = 6 
) const
virtual

Write to a file.

Parameters
_filenamewrite to file with the given filename
_beBaseExporter, which specifies the data source
_optwriting options
_precisioncan be used to specify the precision of the floating point notation.

Implements OpenMesh::IO::BaseWriter.

◆ write() [2/2]

bool OpenMesh::IO::_STLWriter_::write ( std::ostream &  _os,
BaseExporter _be,
Options  _opt,
std::streamsize  _precision = 6 
) const
virtual

Write to a std::ostream.

Parameters
_oswrite to std::ostream
_beBaseExporter, which specifies the data source
_optwriting options
_precisioncan be used to specify the precision of the floating point notation.

Implements OpenMesh::IO::BaseWriter.


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

Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .