OpenMesh::IO::_PLYWriter_ Class Reference

#include <PLYWriter.hh>

Inheritance diagram for OpenMesh::IO::_PLYWriter_:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ValueType {
  Unsupported, ValueTypeFLOAT32, ValueTypeFLOAT, ValueTypeUINT8,
  ValueTypeINT32, ValueTypeINT, ValueTypeUCHAR
}

Public Member Functions

 _PLYWriter_ ()
size_t binary_size (BaseExporter &_be, Options _opt) const
 Returns expected size of file if binary format is supported else 0.
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 (std::ostream &, BaseExporter &, Options) const
 Write to std::ostream _os. Data source specified by BaseExporter _be.
bool write (const std::string &, BaseExporter &, Options) const
 Write to file _filename. Data source specified by BaseExporter _be.
virtual ~_PLYWriter_ ()
 Destructor.

Protected Member Functions

bool write_ascii (std::ostream &_in, BaseExporter &, Options) const
bool write_binary (std::ostream &_in, BaseExporter &, Options) const
void writeValue (ValueType _type, std::ostream &_out, float value) const
void writeValue (ValueType _type, std::ostream &_out, unsigned int value) const
void writeValue (ValueType _type, std::ostream &_out, int value) const

Private Attributes

Options options_

Detailed Description

Implementation of the PLY format writer. This class is singleton'ed by SingletonT to PLYWriter.

currently supported options:

Definition at line 86 of file PLYWriter.hh.


Member Enumeration Documentation

Enumerator:
Unsupported 
ValueTypeFLOAT32 
ValueTypeFLOAT 
ValueTypeUINT8 
ValueTypeINT32 
ValueTypeINT 
ValueTypeUCHAR 

Definition at line 104 of file PLYWriter.hh.


Constructor & Destructor Documentation

OpenMesh::IO::_PLYWriter_::_PLYWriter_ (  ) 
virtual OpenMesh::IO::_PLYWriter_::~_PLYWriter_ (  )  [inline, virtual]

Destructor.

Definition at line 93 of file PLYWriter.hh.


Member Function Documentation

size_t OpenMesh::IO::_PLYWriter_::binary_size ( BaseExporter ,
Options   
) const [virtual]

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

Reimplemented from OpenMesh::IO::BaseWriter.

std::string OpenMesh::IO::_PLYWriter_::get_description (  )  const [inline, virtual]

Return short description of the supported file format.

Implements OpenMesh::IO::BaseWriter.

Definition at line 95 of file PLYWriter.hh.

std::string OpenMesh::IO::_PLYWriter_::get_extensions (  )  const [inline, virtual]

Return file format's extension.

Implements OpenMesh::IO::BaseWriter.

Definition at line 96 of file PLYWriter.hh.

bool OpenMesh::IO::_PLYWriter_::write ( std::ostream &  _os,
BaseExporter _be,
Options  _opt 
) const [virtual]

Write to std::ostream _os. Data source specified by BaseExporter _be.

Implements OpenMesh::IO::BaseWriter.

bool OpenMesh::IO::_PLYWriter_::write ( const std::string &  _filename,
BaseExporter _be,
Options  _opt 
) const [virtual]

Write to file _filename. Data source specified by BaseExporter _be.

Implements OpenMesh::IO::BaseWriter.

bool OpenMesh::IO::_PLYWriter_::write_ascii ( std::ostream &  _in,
BaseExporter ,
Options   
) const [protected]
bool OpenMesh::IO::_PLYWriter_::write_binary ( std::ostream &  _in,
BaseExporter ,
Options   
) const [protected]
void OpenMesh::IO::_PLYWriter_::writeValue ( ValueType  _type,
std::ostream &  _out,
float  value 
) const [protected]
void OpenMesh::IO::_PLYWriter_::writeValue ( ValueType  _type,
std::ostream &  _out,
unsigned int  value 
) const [protected]
void OpenMesh::IO::_PLYWriter_::writeValue ( ValueType  _type,
std::ostream &  _out,
int  value 
) const [protected]

Member Data Documentation

Definition at line 112 of file PLYWriter.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:17 2013