overrides
This commit is contained in:
@@ -87,16 +87,16 @@ public:
|
||||
|
||||
virtual ~_OBJReader_() { }
|
||||
|
||||
std::string get_description() const { return "Alias/Wavefront"; }
|
||||
std::string get_extensions() const { return "obj"; }
|
||||
std::string get_description() const override { return "Alias/Wavefront"; }
|
||||
std::string get_extensions() const override { return "obj"; }
|
||||
|
||||
bool read(const std::string& _filename,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
bool read(std::istream& _in,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -118,17 +118,17 @@ public:
|
||||
/// Destructor
|
||||
virtual ~_OFFReader_() {};
|
||||
|
||||
std::string get_description() const { return "Object File Format"; }
|
||||
std::string get_extensions() const { return "off"; }
|
||||
std::string get_magic() const { return "OFF"; }
|
||||
std::string get_description() const override { return "Object File Format"; }
|
||||
std::string get_extensions() const override { return "off"; }
|
||||
std::string get_magic() const override { return "OFF"; }
|
||||
|
||||
bool read(const std::string& _filename,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
bool can_u_read(const std::string& _filename) const;
|
||||
bool can_u_read(const std::string& _filename) const override;
|
||||
|
||||
bool read(std::istream& _in, BaseImporter& _bi, Options& _opt );
|
||||
bool read(std::istream& _in, BaseImporter& _bi, Options& _opt ) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -89,20 +89,20 @@ public:
|
||||
_OMReader_();
|
||||
virtual ~_OMReader_() { }
|
||||
|
||||
std::string get_description() const { return "OpenMesh File Format"; }
|
||||
std::string get_extensions() const { return "om"; }
|
||||
std::string get_magic() const { return "OM"; }
|
||||
std::string get_description() const override { return "OpenMesh File Format"; }
|
||||
std::string get_extensions() const override { return "om"; }
|
||||
std::string get_magic() const override { return "OM"; }
|
||||
|
||||
bool read(const std::string& _filename,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt );
|
||||
Options& _opt ) override;
|
||||
|
||||
//! Stream Reader for std::istream input in binary format
|
||||
bool read(std::istream& _is,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt );
|
||||
Options& _opt ) override;
|
||||
|
||||
virtual bool can_u_read(const std::string& _filename) const;
|
||||
virtual bool can_u_read(const std::string& _filename) const override;
|
||||
virtual bool can_u_read(std::istream& _is) const;
|
||||
|
||||
|
||||
|
||||
@@ -97,19 +97,19 @@ public:
|
||||
|
||||
_PLYReader_();
|
||||
|
||||
std::string get_description() const { return "PLY polygon file format"; }
|
||||
std::string get_extensions() const { return "ply"; }
|
||||
std::string get_magic() const { return "PLY"; }
|
||||
std::string get_description() const override { return "PLY polygon file format"; }
|
||||
std::string get_extensions() const override { return "ply"; }
|
||||
std::string get_magic() const override { return "PLY"; }
|
||||
|
||||
bool read(const std::string& _filename,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
bool read(std::istream& _is,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
bool can_u_read(const std::string& _filename) const;
|
||||
bool can_u_read(const std::string& _filename) const override;
|
||||
|
||||
enum ValueType {
|
||||
Unsupported,
|
||||
|
||||
@@ -92,17 +92,17 @@ public:
|
||||
virtual ~_STLReader_() {};
|
||||
|
||||
|
||||
std::string get_description() const
|
||||
std::string get_description() const override
|
||||
{ return "Stereolithography Interface Format"; }
|
||||
std::string get_extensions() const { return "stl stla stlb"; }
|
||||
std::string get_extensions() const override { return "stl stla stlb"; }
|
||||
|
||||
bool read(const std::string& _filename,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
bool read(std::istream& _in,
|
||||
BaseImporter& _bi,
|
||||
Options& _opt);
|
||||
Options& _opt) override;
|
||||
|
||||
/** Set the threshold to be used for considering two point to be equal.
|
||||
Can be used to merge small gaps */
|
||||
|
||||
@@ -88,14 +88,14 @@ public:
|
||||
/// Destructor
|
||||
virtual ~_OBJWriter_() {};
|
||||
|
||||
std::string get_description() const { return "Alias/Wavefront"; }
|
||||
std::string get_extensions() const { return "obj"; }
|
||||
std::string get_description() const override { return "Alias/Wavefront"; }
|
||||
std::string get_extensions() const override { return "obj"; }
|
||||
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
size_t binary_size(BaseExporter&, Options) const { return 0; }
|
||||
size_t binary_size(BaseExporter&, Options) const override { return 0; }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -97,14 +97,14 @@ public:
|
||||
|
||||
virtual ~_OFFWriter_() {};
|
||||
|
||||
std::string get_description() const { return "no description"; }
|
||||
std::string get_extensions() const { return "off"; }
|
||||
std::string get_description() const override { return "no description"; }
|
||||
std::string get_extensions() const override { return "off"; }
|
||||
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
size_t binary_size(BaseExporter& _be, Options _opt) const;
|
||||
size_t binary_size(BaseExporter& _be, Options _opt) const override;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@@ -98,15 +98,15 @@ public:
|
||||
/// Destructor
|
||||
virtual ~_OMWriter_() {};
|
||||
|
||||
std::string get_description() const
|
||||
std::string get_description() const override
|
||||
{ return "OpenMesh Format"; }
|
||||
|
||||
std::string get_extensions() const
|
||||
std::string get_extensions() const override
|
||||
{ return "om"; }
|
||||
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
size_t binary_size(BaseExporter& _be, Options _opt) const;
|
||||
size_t binary_size(BaseExporter& _be, Options _opt) const override;
|
||||
|
||||
static OMFormat::uint8 get_version() { return version_; }
|
||||
|
||||
@@ -116,7 +116,7 @@ protected:
|
||||
static const OMFormat::uchar magic_[3];
|
||||
static const OMFormat::uint8 version_;
|
||||
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
bool write_binary(std::ostream&, BaseExporter&, Options) const;
|
||||
|
||||
|
||||
@@ -95,14 +95,14 @@ public:
|
||||
/// Destructor
|
||||
virtual ~_PLYWriter_() {};
|
||||
|
||||
std::string get_description() const { return "PLY polygon file format"; }
|
||||
std::string get_extensions() const { return "ply"; }
|
||||
std::string get_description() const override { return "PLY polygon file format"; }
|
||||
std::string get_extensions() const override { return "ply"; }
|
||||
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
size_t binary_size(BaseExporter& _be, Options _opt) const;
|
||||
size_t binary_size(BaseExporter& _be, Options _opt) const override;
|
||||
|
||||
enum ValueType {
|
||||
Unsupported = 0,
|
||||
|
||||
@@ -88,14 +88,14 @@ public:
|
||||
/// Destructor
|
||||
virtual ~_STLWriter_() {};
|
||||
|
||||
std::string get_description() const { return "Stereolithography Format"; }
|
||||
std::string get_extensions() const { return "stl stla stlb"; }
|
||||
std::string get_description() const override { return "Stereolithography Format"; }
|
||||
std::string get_extensions() const override { return "stl stla stlb"; }
|
||||
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
size_t binary_size(BaseExporter&, Options) const;
|
||||
size_t binary_size(BaseExporter&, Options) const override;
|
||||
|
||||
private:
|
||||
bool write_stla(const std::string&, BaseExporter&, Options) const;
|
||||
|
||||
@@ -29,13 +29,13 @@ class OPENMESHDLLEXPORT _VTKWriter_ : public BaseWriter
|
||||
public:
|
||||
_VTKWriter_();
|
||||
|
||||
std::string get_description() const { return "VTK"; }
|
||||
std::string get_extensions() const { return "vtk"; }
|
||||
std::string get_description() const override { return "VTK"; }
|
||||
std::string get_extensions() const override { return "vtk"; }
|
||||
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const;
|
||||
bool write(const std::string&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
bool write(std::ostream&, BaseExporter&, Options, std::streamsize _precision = 6) const override;
|
||||
|
||||
size_t binary_size(BaseExporter&, Options) const { return 0; }
|
||||
size_t binary_size(BaseExporter&, Options) const override { return 0; }
|
||||
};
|
||||
|
||||
//== TYPE DEFINITION ==========================================================
|
||||
|
||||
Reference in New Issue
Block a user