57 #ifndef __OMREADER_HH__
58 #define __OMREADER_HH__
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();
std::string get_extensions() const
_OMReader_ __OMReaderInstance
Declare the single entity of the OM reader.
Set options for reader/writer modules.
std::string get_magic() const
Return magic bits used to determine file format.
std::string get_description() const
Returns a brief description of the file type that can be parsed.