Compounds | |
class | _OBJWriter_ |
This class defines the OBJ writer. More... | |
class | _IOManager_ |
This is the real IOManager class that is later encapsulated by SingletonT to enforce its uniqueness. More... | |
class | _OBJReader_ |
Implementation of the OBJ format reader. More... | |
class | _OFFReader_ |
Implementation of the OFF format reader. More... | |
class | _OFFWriter_ |
Implementation of the OFF format writer. More... | |
class | _OMReader_ |
Implementation of the OM format reader. More... | |
class | _OMWriter_ |
Implementation of the OM format writer. More... | |
class | _STLReader_ |
Implementation of the STL format reader. More... | |
class | _STLWriter_ |
Implementation of the STL format writer. More... | |
class | BaseExporter |
Base class for exporter modules. More... | |
class | BaseImporter |
Base class for importer modules. More... | |
class | BaseReader |
Base class for reader modules. More... | |
class | BaseWriter |
Base class for all writer modules. More... | |
struct | binary |
The struct defines how to store and restore the type T. More... | |
class | ExporterT |
This class template provides an exporter module for OpenMesh meshes. More... | |
class | ImporterT |
This class template provides an importer module for OpenMesh meshes. More... | |
class | Options |
Set options for reader/writer modules. More... | |
Handling binary input/output. | |
short int | read_short (FILE *_in, bool _swap=false) |
Binary read a short from _is and perform byte swapping if _swap is true. | |
int | read_int (FILE *_in, bool _swap=false) |
Binary read an int from _is and perform byte swapping if _swap is true. | |
float | read_float (FILE *_in, bool _swap=false) |
Binary read a float from _is and perform byte swapping if _swap is true. | |
double | read_double (FILE *_in, bool _swap=false) |
Binary read a double from _is and perform byte swapping if _swap is true. | |
void | write_short (short int _i, FILE *_out, bool _swap=false) |
Binary write a short to _os and perform byte swapping if _swap is true. | |
void | write_int (int _i, FILE *_out, bool _swap=false) |
Binary write an int to _os and perform byte swapping if _swap is true. | |
void | write_float (float _f, FILE *_out, bool _swap=false) |
Binary write a float to _os and perform byte swapping if _swap is true. | |
void | write_double (double _d, FILE *_out, bool _swap=false) |
Binary write a double to _os and perform byte swapping if _swap is true. | |
Mesh Reading / Writing | |
template<class Mesh> bool | read_mesh (Mesh &_mesh, const std::string &_filename) |
Read a mesh from file _filename. | |
template<class Mesh> bool | read_mesh (Mesh &_mesh, const std::string &_filename, Options &_opt) |
Read a mesh from file _filename. | |
template<class Mesh> bool | write_mesh (const Mesh &_mesh, const std::string &_filename, Options _opt=Options::Default) |
Write a mesh to the file _filename. | |
template<class Mesh> size_t | binary_size (const Mesh &_mesh, const std::string &_format, Options _opt=Options::Default) |
Read a mesh from file _filename. | |
Typedefs | |
typedef SingletonT< _IOManager_ > | IOManager |
The IOManager singleton. | |
typedef SingletonT< _OBJReader_ > | OBJReader |
Declare the single entity of the OBJ reader. | |
typedef SingletonT< _OFFReader_ > | OFFReader |
Declare the single entity of the OFF reader. | |
typedef SingletonT< _OMReader_ > | OMReader |
Declare the single entity of the OM reader. | |
typedef SingletonT< _STLReader_ > | STLReader |
Declare the single entity of the STL reader. | |
typedef SingletonT< _OBJWriter_ > | OBJWriter |
Declare the single entity of the OBJ writer. | |
typedef SingletonT< _OFFWriter_ > | OFFWriter |
Declare the single entity of the OFF writer. | |
typedef SingletonT< _OMWriter_ > | OMWriter |
Declare the single entity of the OM writer. |
|
The IOManager singleton. This is the one and only instance of the _IOManager_ class, enforced by SingletonT. It should be accessed by the IOManagerThe alias. |
|
Read a mesh from file _filename. The file format is determined by the file extension. |
|
Read a mesh from file _filename. The file format is determined by the file extension. |
|
Read a mesh from file _filename. The file format is determined by the file extension. |
|
Write a mesh to the file _filename. The file format is determined by _filename's extension. |