Added missing ovverides to silence clang
This commit is contained in:
@@ -92,12 +92,12 @@ public:
|
||||
ImporterT(Mesh& _mesh) : mesh_(_mesh), halfedgeNormals_() {}
|
||||
|
||||
|
||||
virtual VertexHandle add_vertex(const Vec3f& _point)
|
||||
virtual VertexHandle add_vertex(const Vec3f& _point) override
|
||||
{
|
||||
return mesh_.add_vertex(vector_cast<Point>(_point));
|
||||
}
|
||||
|
||||
virtual VertexHandle add_vertex()
|
||||
virtual VertexHandle add_vertex() override
|
||||
{
|
||||
return mesh_.new_vertex();
|
||||
}
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
return mesh_.new_edge(_vh0, _vh1);
|
||||
}
|
||||
|
||||
virtual FaceHandle add_face(const VHandles& _indices)
|
||||
virtual FaceHandle add_face(const VHandles& _indices) override
|
||||
{
|
||||
FaceHandle fh;
|
||||
|
||||
@@ -201,7 +201,7 @@ public:
|
||||
|
||||
// vertex attributes
|
||||
|
||||
virtual void set_point(VertexHandle _vh, const Vec3f& _point)
|
||||
virtual void set_point(VertexHandle _vh, const Vec3f& _point) override
|
||||
{
|
||||
mesh_.set_point(_vh,vector_cast<Point>(_point));
|
||||
}
|
||||
@@ -211,7 +211,7 @@ public:
|
||||
mesh_.set_halfedge_handle(_vh, _heh);
|
||||
}
|
||||
|
||||
virtual void set_normal(VertexHandle _vh, const Vec3f& _normal)
|
||||
virtual void set_normal(VertexHandle _vh, const Vec3f& _normal) override
|
||||
{
|
||||
if (mesh_.has_vertex_normals())
|
||||
mesh_.set_normal(_vh, vector_cast<Normal>(_normal));
|
||||
@@ -222,37 +222,37 @@ public:
|
||||
halfedgeNormals_[_vh] = vector_cast<Normal>(_normal);
|
||||
}
|
||||
|
||||
virtual void set_color(VertexHandle _vh, const Vec4uc& _color)
|
||||
virtual void set_color(VertexHandle _vh, const Vec4uc& _color) override
|
||||
{
|
||||
if (mesh_.has_vertex_colors())
|
||||
mesh_.set_color(_vh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(VertexHandle _vh, const Vec3uc& _color)
|
||||
virtual void set_color(VertexHandle _vh, const Vec3uc& _color) override
|
||||
{
|
||||
if (mesh_.has_vertex_colors())
|
||||
mesh_.set_color(_vh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(VertexHandle _vh, const Vec4f& _color)
|
||||
virtual void set_color(VertexHandle _vh, const Vec4f& _color) override
|
||||
{
|
||||
if (mesh_.has_vertex_colors())
|
||||
mesh_.set_color(_vh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(VertexHandle _vh, const Vec3f& _color)
|
||||
virtual void set_color(VertexHandle _vh, const Vec3f& _color) override
|
||||
{
|
||||
if (mesh_.has_vertex_colors())
|
||||
mesh_.set_color(_vh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_texcoord(VertexHandle _vh, const Vec2f& _texcoord)
|
||||
virtual void set_texcoord(VertexHandle _vh, const Vec2f& _texcoord) override
|
||||
{
|
||||
if (mesh_.has_vertex_texcoords2D())
|
||||
mesh_.set_texcoord2D(_vh, vector_cast<TexCoord2D>(_texcoord));
|
||||
}
|
||||
|
||||
virtual void set_status(VertexHandle _vh, const OpenMesh::Attributes::StatusInfo& _status)
|
||||
virtual void set_status(VertexHandle _vh, const OpenMesh::Attributes::StatusInfo& _status) override
|
||||
{
|
||||
if (!mesh_.has_vertex_status())
|
||||
mesh_.request_vertex_status();
|
||||
@@ -270,25 +270,25 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual void set_texcoord(HalfedgeHandle _heh, const Vec2f& _texcoord)
|
||||
virtual void set_texcoord(HalfedgeHandle _heh, const Vec2f& _texcoord) override
|
||||
{
|
||||
if (mesh_.has_halfedge_texcoords2D())
|
||||
mesh_.set_texcoord2D(_heh, vector_cast<TexCoord2D>(_texcoord));
|
||||
}
|
||||
|
||||
virtual void set_texcoord(VertexHandle _vh, const Vec3f& _texcoord)
|
||||
virtual void set_texcoord(VertexHandle _vh, const Vec3f& _texcoord) override
|
||||
{
|
||||
if (mesh_.has_vertex_texcoords3D())
|
||||
mesh_.set_texcoord3D(_vh, vector_cast<TexCoord3D>(_texcoord));
|
||||
}
|
||||
|
||||
virtual void set_texcoord(HalfedgeHandle _heh, const Vec3f& _texcoord)
|
||||
virtual void set_texcoord(HalfedgeHandle _heh, const Vec3f& _texcoord) override
|
||||
{
|
||||
if (mesh_.has_halfedge_texcoords3D())
|
||||
mesh_.set_texcoord3D(_heh, vector_cast<TexCoord3D>(_texcoord));
|
||||
}
|
||||
|
||||
virtual void set_status(HalfedgeHandle _heh, const OpenMesh::Attributes::StatusInfo& _status)
|
||||
virtual void set_status(HalfedgeHandle _heh, const OpenMesh::Attributes::StatusInfo& _status) override
|
||||
{
|
||||
if (!mesh_.has_halfedge_status())
|
||||
mesh_.request_halfedge_status();
|
||||
@@ -297,31 +297,31 @@ public:
|
||||
|
||||
// edge attributes
|
||||
|
||||
virtual void set_color(EdgeHandle _eh, const Vec4uc& _color)
|
||||
virtual void set_color(EdgeHandle _eh, const Vec4uc& _color) override
|
||||
{
|
||||
if (mesh_.has_edge_colors())
|
||||
mesh_.set_color(_eh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(EdgeHandle _eh, const Vec3uc& _color)
|
||||
virtual void set_color(EdgeHandle _eh, const Vec3uc& _color) override
|
||||
{
|
||||
if (mesh_.has_edge_colors())
|
||||
mesh_.set_color(_eh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(EdgeHandle _eh, const Vec4f& _color)
|
||||
virtual void set_color(EdgeHandle _eh, const Vec4f& _color) override
|
||||
{
|
||||
if (mesh_.has_edge_colors())
|
||||
mesh_.set_color(_eh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(EdgeHandle _eh, const Vec3f& _color)
|
||||
virtual void set_color(EdgeHandle _eh, const Vec3f& _color) override
|
||||
{
|
||||
if (mesh_.has_edge_colors())
|
||||
mesh_.set_color(_eh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_status(EdgeHandle _eh, const OpenMesh::Attributes::StatusInfo& _status)
|
||||
virtual void set_status(EdgeHandle _eh, const OpenMesh::Attributes::StatusInfo& _status) override
|
||||
{
|
||||
if (!mesh_.has_edge_status())
|
||||
mesh_.request_edge_status();
|
||||
@@ -330,44 +330,44 @@ public:
|
||||
|
||||
// face attributes
|
||||
|
||||
virtual void set_normal(FaceHandle _fh, const Vec3f& _normal)
|
||||
virtual void set_normal(FaceHandle _fh, const Vec3f& _normal) override
|
||||
{
|
||||
if (mesh_.has_face_normals())
|
||||
mesh_.set_normal(_fh, vector_cast<Normal>(_normal));
|
||||
}
|
||||
|
||||
virtual void set_color(FaceHandle _fh, const Vec3uc& _color)
|
||||
virtual void set_color(FaceHandle _fh, const Vec3uc& _color) override
|
||||
{
|
||||
if (mesh_.has_face_colors())
|
||||
mesh_.set_color(_fh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(FaceHandle _fh, const Vec4uc& _color)
|
||||
virtual void set_color(FaceHandle _fh, const Vec4uc& _color) override
|
||||
{
|
||||
if (mesh_.has_face_colors())
|
||||
mesh_.set_color(_fh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(FaceHandle _fh, const Vec3f& _color)
|
||||
virtual void set_color(FaceHandle _fh, const Vec3f& _color) override
|
||||
{
|
||||
if (mesh_.has_face_colors())
|
||||
mesh_.set_color(_fh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_color(FaceHandle _fh, const Vec4f& _color)
|
||||
virtual void set_color(FaceHandle _fh, const Vec4f& _color) override
|
||||
{
|
||||
if (mesh_.has_face_colors())
|
||||
mesh_.set_color(_fh, color_cast<Color>(_color));
|
||||
}
|
||||
|
||||
virtual void set_status(FaceHandle _fh, const OpenMesh::Attributes::StatusInfo& _status)
|
||||
virtual void set_status(FaceHandle _fh, const OpenMesh::Attributes::StatusInfo& _status) override
|
||||
{
|
||||
if (!mesh_.has_face_status())
|
||||
mesh_.request_face_status();
|
||||
mesh_.status(_fh) = _status;
|
||||
}
|
||||
|
||||
virtual void add_face_texcoords( FaceHandle _fh, VertexHandle _vh, const std::vector<Vec2f>& _face_texcoords)
|
||||
virtual void add_face_texcoords( FaceHandle _fh, VertexHandle _vh, const std::vector<Vec2f>& _face_texcoords) override
|
||||
{
|
||||
// get first halfedge handle
|
||||
HalfedgeHandle cur_heh = mesh_.halfedge_handle(_fh);
|
||||
@@ -384,7 +384,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void add_face_texcoords( FaceHandle _fh, VertexHandle _vh, const std::vector<Vec3f>& _face_texcoords)
|
||||
virtual void add_face_texcoords( FaceHandle _fh, VertexHandle _vh, const std::vector<Vec3f>& _face_texcoords) override
|
||||
{
|
||||
// get first halfedge handle
|
||||
HalfedgeHandle cur_heh = mesh_.halfedge_handle(_fh);
|
||||
@@ -401,13 +401,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void set_face_texindex( FaceHandle _fh, int _texId ) {
|
||||
virtual void set_face_texindex( FaceHandle _fh, int _texId ) override
|
||||
{
|
||||
if ( mesh_.has_face_texture_index() ) {
|
||||
mesh_.set_texture_index(_fh , _texId);
|
||||
}
|
||||
}
|
||||
|
||||
virtual void add_texture_information( int _id , std::string _name ) {
|
||||
virtual void add_texture_information( int _id , std::string _name ) override
|
||||
{
|
||||
OpenMesh::MPropHandleT< std::map< int, std::string > > property;
|
||||
|
||||
if ( !mesh_.get_property_handle(property,"TextureMapping") ) {
|
||||
@@ -420,26 +422,26 @@ public:
|
||||
|
||||
// low-level access to mesh
|
||||
|
||||
virtual BaseKernel* kernel() { return &mesh_; }
|
||||
virtual BaseKernel* kernel() override { return &mesh_; }
|
||||
|
||||
bool is_triangle_mesh() const
|
||||
bool is_triangle_mesh() const override
|
||||
{ return Mesh::is_triangles(); }
|
||||
|
||||
void reserve(unsigned int nV, unsigned int nE, unsigned int nF)
|
||||
void reserve(unsigned int nV, unsigned int nE, unsigned int nF) override
|
||||
{
|
||||
mesh_.reserve(nV, nE, nF);
|
||||
}
|
||||
|
||||
// query number of faces, vertices, normals, texcoords
|
||||
size_t n_vertices() const { return mesh_.n_vertices(); }
|
||||
size_t n_faces() const { return mesh_.n_faces(); }
|
||||
size_t n_edges() const { return mesh_.n_edges(); }
|
||||
size_t n_vertices() const override { return mesh_.n_vertices(); }
|
||||
size_t n_faces() const override { return mesh_.n_faces(); }
|
||||
size_t n_edges() const override { return mesh_.n_edges(); }
|
||||
|
||||
|
||||
void prepare() { }
|
||||
void prepare() override{ }
|
||||
|
||||
|
||||
void finish() { }
|
||||
void finish() override { }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user