Developer Documentation
OpenMesh::IO::_STLWriter_ Class Reference

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

Inheritance diagram for OpenMesh::IO::_STLWriter_:
OpenMesh::IO::BaseWriter

Public Member Functions

virtual ~_STLWriter_ ()
 Destructor. More...
 
std::string get_description () const override
 Return short description of the supported file format. More...
 
std::string get_extensions () const override
 Return file format's extension. More...
 
bool write (const std::string &, BaseExporter &, const Options &_writeOptions, std::streamsize _precision=6) const override
 
bool write (std::ostream &, BaseExporter &, const Options &_writeOptions, std::streamsize _precision=6) const override
 
size_t binary_size (BaseExporter &, const Options &) const override
 Returns expected size of file if binary format is supported else 0. More...
 
- Public Member Functions inherited from OpenMesh::IO::BaseWriter
virtual ~BaseWriter ()
 Destructor. More...
 
virtual std::string get_description () const =0
 Return short description of the supported file format. More...
 
virtual std::string get_extensions () const =0
 Return file format's extension. More...
 
virtual bool can_u_write (const std::string &_filename) const
 Returns true if writer can write _filename (checks extension). _filename can also provide an extension without a name for a file e.g. _filename == "om" checks, if the writer can write the "om" extension. More...
 
virtual bool write (const std::string &_filename, BaseExporter &_be, const Options &_writeOptions, std::streamsize _precision=6) const =0
 
virtual bool write (std::ostream &_os, BaseExporter &_be, const Options &_writeOptions, std::streamsize _precision=6) const =0
 
virtual size_t binary_size (BaseExporter &, const Options &) const
 Returns expected size of file if binary format is supported else 0. More...
 

Private Member Functions

bool write_stla (const std::string &, const BaseExporter &, Options) const
 
bool write_stla (std::ostream &, const BaseExporter &, Options, std::streamsize _precision=6) const
 
bool write_stlb (const std::string &, const BaseExporter &, Options) const
 
bool write_stlb (std::ostream &, const BaseExporter &, Options, std::streamsize _precision=6) const
 

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, const Options &_writeOptions) const
 

Detailed Description

Implementation of the STL format writer. This class is singleton'ed by SingletonT to STLWriter.

Definition at line 82 of file STLWriter.hh.

Constructor & Destructor Documentation

◆ _STLWriter_()

OpenMesh::IO::_STLWriter_::_STLWriter_ ( )

Definition at line 75 of file STLWriter.cc.

◆ ~_STLWriter_()

virtual OpenMesh::IO::_STLWriter_::~_STLWriter_ ( )
inlinevirtual

Destructor.

Definition at line 89 of file STLWriter.hh.

Member Function Documentation

◆ binary_size()

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

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

Reimplemented from OpenMesh::IO::BaseWriter.

Definition at line 411 of file STLWriter.cc.

◆ get_description()

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

Return short description of the supported file format.

Implements OpenMesh::IO::BaseWriter.

Definition at line 91 of file STLWriter.hh.

◆ get_extensions()

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

Return file format's extension.

Implements OpenMesh::IO::BaseWriter.

Definition at line 92 of file STLWriter.hh.

◆ write() [1/2]

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

Write to a file

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

Implements OpenMesh::IO::BaseWriter.

Definition at line 82 of file STLWriter.cc.

◆ write() [2/2]

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

Write to a std::ostream

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

Implements OpenMesh::IO::BaseWriter.

Definition at line 112 of file STLWriter.cc.

◆ write_stla() [1/2]

bool OpenMesh::IO::_STLWriter_::write_stla ( const std::string &  _filename,
const BaseExporter _be,
Options   
) const
private

Definition at line 141 of file STLWriter.cc.

◆ write_stla() [2/2]

bool OpenMesh::IO::_STLWriter_::write_stla ( std::ostream &  _out,
const BaseExporter _be,
Options  ,
std::streamsize  _precision = 6 
) const
private

Definition at line 206 of file STLWriter.cc.

◆ write_stlb() [1/2]

bool OpenMesh::IO::_STLWriter_::write_stlb ( const std::string &  _filename,
const BaseExporter _be,
Options   
) const
private

Definition at line 258 of file STLWriter.cc.

◆ write_stlb() [2/2]

bool OpenMesh::IO::_STLWriter_::write_stlb ( std::ostream &  _out,
const BaseExporter _be,
Options  ,
std::streamsize  _precision = 6 
) const
private

Definition at line 338 of file STLWriter.cc.


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