60#include <OpenMesh/Core/System/config.h>
61#include <OpenMesh/Core/Utils/SingletonT.hh>
62#include <OpenMesh/Core/IO/reader/BaseReader.hh>
120 std::string
get_magic()
const override {
return "OFF"; }
122 bool read(
const std::string& _filename,
126 bool can_u_read(
const std::string& _filename)
const override;
132 bool can_u_read(std::istream& _is)
const;
137 void readValue(std::istream& _in,
float& _value)
const;
138 void readValue(std::istream& _in,
int& _value)
const;
139 void readValue(std::istream& _in,
unsigned int& _value)
const;
141 int getColorType(std::string & _line,
bool _texCoordsAvailable)
const;
155OPENMESHDLLEXPORT _OFFReader_& OFFReader();
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:59
This namespace contains functions for reading and writing polygonal meshes and a list of supported fi...
_OFFReader_ __OFFReaderInstance
Declare the single entity of the OFF reader.
Definition OFFReader.cc:88
void swap(VectorT< Scalar, DIM > &_v1, VectorT< Scalar, DIM > &_v2) noexcept(noexcept(_v1.swap(_v2)))
non-member swap
Definition Vector11T.hh:741
Base class for importer modules.
Definition BaseImporter.hh:84
Set options for reader/writer modules.
Definition Options.hh:92
Base class for reader modules.
Definition BaseReader.hh:87
virtual ~_OFFReader_()
Destructor.
Definition OFFReader.hh:116
std::string get_description() const override
Returns a brief description of the file type that can be parsed.
Definition OFFReader.hh:118
std::string get_extensions() const override
Returns a string with the accepted file extensions separated by a whitespace and in small caps.
Definition OFFReader.hh:119
std::string get_magic() const override
Return magic bits used to determine file format.
Definition OFFReader.hh:120