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;
std::string get_extensions() const override
std::string get_magic() const override
Return magic bits used to determine file format.
virtual ~_OFFReader_()
Destructor.
Set options for reader/writer modules.
_OFFReader_ __OFFReaderInstance
Declare the single entity of the OFF reader.
std::string get_description() const override
Returns a brief description of the file type that can be parsed.