52 #ifndef __OMREADER_HH__ 53 #define __OMREADER_HH__ 60 #include <OpenMesh/Core/Utils/SingletonT.hh> 61 #include <OpenMesh/Core/IO/OMFormat.hh> 62 #include <OpenMesh/Core/IO/IOManager.hh> 63 #include <OpenMesh/Core/IO/importer/BaseImporter.hh> 64 #include <OpenMesh/Core/IO/reader/BaseReader.hh> 94 std::string
get_magic()
const override {
return "OM"; }
96 bool read(
const std::string& _filename,
101 bool read(std::istream& _is,
105 virtual bool can_u_read(
const std::string& _filename)
const override;
106 virtual bool can_u_read(std::istream& _is)
const;
111 bool supports(
const OMFormat::uint8 version )
const;
116 typedef OMFormat::Header Header;
117 typedef OMFormat::Chunk::Header ChunkHeader;
118 typedef OMFormat::Chunk::PropertyName PropertyName;
121 mutable size_t bytes_;
123 mutable Header header_;
124 mutable ChunkHeader chunk_header_;
125 mutable PropertyName property_name_;
127 bool read_binary_vertex_chunk( std::istream &_is,
132 bool read_binary_face_chunk( std::istream &_is,
137 bool read_binary_edge_chunk( std::istream &_is,
142 bool read_binary_halfedge_chunk( std::istream &_is,
147 bool read_binary_mesh_chunk( std::istream &_is,
152 size_t restore_binary_custom_data( std::istream& _is,
_OMReader_ __OMReaderInstance
Declare the single entity of the OM reader.
std::string get_magic() const override
Return magic bits used to determine file format.
std::string get_extensions() const override
Set options for reader/writer modules.
std::string get_description() const override
Returns a brief description of the file type that can be parsed.