52 #ifndef __OMREADER_HH__ 53 #define __OMREADER_HH__ 59 #include <OpenMesh/Core/System/config.h> 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,
Abstract class defining the basic interface of a dynamic property.
Definition: BaseProperty.hh:60
std::string get_extensions() const override
Returns a string with the accepted file extensions separated by a whitespace and in small caps...
Definition: OMReader.hh:93
_OMReader_ __OMReaderInstance
Declare the single entity of the OM reader.
Definition: OMReader.cc:73
std::string get_magic() const override
Return magic bits used to determine file format.
Definition: OMReader.hh:94
std::string get_description() const override
Returns a brief description of the file type that can be parsed.
Definition: OMReader.hh:92
Set options for reader/writer modules.
Definition: Options.hh:90
Base class for importer modules.
Definition: BaseImporter.hh:83
Implementation of the OM format reader.
Definition: OMReader.hh:85
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
Base class for reader modules.
Definition: BaseReader.hh:86