55 #ifndef __IOMANAGER_HH__ 56 #define __IOMANAGER_HH__ 70 #include <OpenMesh/Core/IO/Options.hh> 71 #include <OpenMesh/Core/IO/reader/BaseReader.hh> 72 #include <OpenMesh/Core/IO/writer/BaseWriter.hh> 73 #include <OpenMesh/Core/IO/importer/BaseImporter.hh> 74 #include <OpenMesh/Core/IO/exporter/BaseExporter.hh> 75 #include <OpenMesh/Core/Utils/SingletonT.hh> 130 bool read(
const std::string& _filename,
140 bool read(std::istream& _filename,
141 const std::string& _ext,
152 bool write(
const std::string& _filename,
155 std::streamsize _precision = 6);
163 bool write(std::ostream& _filename,
164 const std::string& _ext,
167 std::streamsize _precision = 6);
171 bool can_read(
const std::string& _format )
const;
174 bool can_write(
const std::string& _format )
const;
208 void update_read_filters();
212 void update_write_filters();
224 reader_modules_.insert(_bl);
225 update_read_filters();
236 writer_modules_.insert(_bw);
237 update_write_filters();
244 const BaseWriter *find_writer(
const std::string& _format);
247 std::set<BaseReader*> reader_modules_;
250 std::set<BaseWriter*> writer_modules_;
253 std::string read_filters_;
256 std::string write_filters_;
const std::string & qt_write_filters() const
const std::string & qt_read_filters() const
size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
Set options for reader/writer modules.
bool register_module(BaseReader *_bl)
~_IOManager_()
Destructor has nothing todo for the Manager.
bool register_module(BaseWriter *_bw)
_IOManager_ & IOManager()
_IOManager_()
Constructor has nothing todo for the Manager.
virtual size_t binary_size(BaseExporter &, Options) const
Returns expected size of file if binary format is supported else 0.