57 #ifndef __OMREADER_HH__
58 #define __OMREADER_HH__
64 #include <OpenMesh/Core/System/config.h>
65 #include <OpenMesh/Core/Utils/SingletonT.hh>
66 #include <OpenMesh/Core/IO/OMFormat.hh>
67 #include <OpenMesh/Core/IO/IOManager.hh>
68 #include <OpenMesh/Core/IO/importer/BaseImporter.hh>
69 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
101 bool read(
const std::string& _filename,
106 bool read(std::istream& _is,
110 virtual bool can_u_read(
const std::string& _filename)
const;
111 virtual bool can_u_read(std::istream& _is)
const;
116 bool supports(
const OMFormat::uint8 version )
const;
121 typedef OMFormat::Header Header;
122 typedef OMFormat::Chunk::Header ChunkHeader;
123 typedef OMFormat::Chunk::PropertyName PropertyName;
126 mutable size_t bytes_;
128 mutable Header header_;
129 mutable ChunkHeader chunk_header_;
130 mutable PropertyName property_name_;
132 bool read_binary_vertex_chunk( std::istream &_is,
137 bool read_binary_face_chunk( std::istream &_is,
142 bool read_binary_edge_chunk( std::istream &_is,
147 bool read_binary_halfedge_chunk( std::istream &_is,
152 bool read_binary_mesh_chunk( std::istream &_is,
157 size_t restore_binary_custom_data( std::istream& _is,
170 OPENMESHDLLEXPORT _OMReader_& OMReader();
Set options for reader/writer modules.
Definition: Options.hh:95
std::string get_extensions() const
Returns a string with the accepted file extensions separated by a whitespace and in small caps...
Definition: OMReader.hh:98
Implementation of the OM format reader.
Definition: OMReader.hh:90
Base class for reader modules.
Definition: BaseReader.hh:94
std::string get_description() const
Returns a brief description of the file type that can be parsed.
Definition: OMReader.hh:97
_OMReader_ __OMReaderInstance
Declare the single entity of the OM reader.
Definition: OMReader.cc:77
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
Base class for importer modules.
Definition: BaseImporter.hh:88
Abstract class defining the basic interface of a dynamic property.
Definition: BaseProperty.hh:65
std::string get_magic() const
Return magic bits used to determine file format.
Definition: OMReader.hh:99