Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::SceneGraph::OpenMesh::IO::BaseWriter Class Referenceabstract

Public Types

typedef unsigned int Option
 

Public Member Functions

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). _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, Options _opt, std::streamsize _precision=6) const =0
 
virtual bool write (std::ostream &_os, BaseExporter &_be, Options _opt, std::streamsize _precision=6) const =0
 
virtual size_t binary_size (BaseExporter &, Options) const
 Returns expected size of file if binary format is supported else 0.
 

Protected Member Functions

bool check (BaseExporter &_be, Options _opt) const
 

Detailed Description

Base class for all writer modules. The module should register itself at the IOManager by calling the register_module function.

Definition at line 88 of file MeshNode2T.cc.

Member Function Documentation

virtual bool ACG::SceneGraph::OpenMesh::IO::BaseWriter::can_u_write ( const std::string &  _filename) const
virtual

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.

Parameters
_filenamecomplete name of a file or just the extension
Returns
true, if writer can write data with the given extension
virtual bool ACG::SceneGraph::OpenMesh::IO::BaseWriter::write ( const std::string &  _filename,
BaseExporter _be,
Options  _opt,
std::streamsize  _precision = 6 
) const
pure 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.
virtual bool ACG::SceneGraph::OpenMesh::IO::BaseWriter::write ( std::ostream &  _os,
BaseExporter _be,
Options  _opt,
std::streamsize  _precision = 6 
) const
pure 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.

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