50 #ifndef __OMREADER_HH__
51 #define __OMREADER_HH__
57 #include <OpenMesh/Core/System/config.h>
58 #include <OpenMesh/Core/Utils/SingletonT.hh>
59 #include <OpenMesh/Core/IO/OMFormat.hh>
60 #include <OpenMesh/Core/IO/IOManager.hh>
61 #include <OpenMesh/Core/IO/importer/BaseImporter.hh>
62 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
94 bool read(
const std::string& _filename,
99 bool read(std::istream& _is,
103 virtual bool can_u_read(
const std::string& _filename)
const;
104 virtual bool can_u_read(std::istream& _is)
const;
109 bool supports(
const OMFormat::uint8 version )
const;
114 typedef OMFormat::Header Header;
115 typedef OMFormat::Chunk::Header ChunkHeader;
116 typedef OMFormat::Chunk::PropertyName PropertyName;
119 mutable size_t bytes_;
121 mutable Header header_;
122 mutable ChunkHeader chunk_header_;
123 mutable PropertyName property_name_;
125 bool read_binary_vertex_chunk( std::istream &_is,
130 bool read_binary_face_chunk( std::istream &_is,
135 bool read_binary_edge_chunk( std::istream &_is,
140 bool read_binary_halfedge_chunk( std::istream &_is,
145 bool read_binary_mesh_chunk( std::istream &_is,
150 size_t restore_binary_custom_data( std::istream& _is,
163 OPENMESHDLLEXPORT _OMReader_& OMReader();
Base class for reader modules.
Definition: BaseReader.hh:86
std::string get_extensions() const
Returns a string with the accepted file extensions separated by a whitespace and in small caps...
Definition: OMReader.hh:91
Abstract class defining the basic interface of a dynamic property.
Definition: BaseProperty.hh:58
Base class for importer modules.
Definition: BaseImporter.hh:81
Set options for reader/writer modules.
Definition: Options.hh:88
std::string get_description() const
Returns a brief description of the file type that can be parsed.
Definition: OMReader.hh:90
Implementation of the OM format reader.
Definition: OMReader.hh:83
std::string get_magic() const
Return magic bits used to determine file format.
Definition: OMReader.hh:92
_OMReader_ __OMReaderInstance
Declare the single entity of the OM reader.
Definition: OMReader.cc:68