Skip to content

Commit

Permalink
remove ApplyTopoChange override warnings in topohandler
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed May 24, 2019
1 parent 983f2b4 commit a85cdae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ class SOFA_CORE_API TopologyElementHandler : public sofa::core::topology::Topolo
/// Apply renumbering on elements.
virtual void ApplyTopologyChange(const ERenumbering* event) override;
/// Apply moving elements.
virtual void ApplyTopologyChange(const EMoved* event);
virtual void ApplyTopologyChange(const EMoved* event) override;
/// Apply adding function on moved elements.
virtual void ApplyTopologyChange(const EMoved_Adding* event);
virtual void ApplyTopologyChange(const EMoved_Adding* event) override;
/// Apply removing function on moved elements.
virtual void ApplyTopologyChange(const EMoved_Removing* event);
virtual void ApplyTopologyChange(const EMoved_Removing* event) override;

protected:
/// Swaps values at indices i1 and i2.
Expand Down
9 changes: 9 additions & 0 deletions SofaKernel/framework/sofa/core/topology/TopologyHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ class SOFA_CORE_API TopologyHandler
/// Apply renumbering on hexahedron elements.
virtual void ApplyTopologyChange(const core::topology::HexahedraRenumbering* /*event*/) {}

// Needed to remove override warnings in TopologyElementHandler
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Point>::EMoved_Adding* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Point>::EMoved_Removing* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Edge>::EMoved* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Triangle>::EMoved* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Quad>::EMoved* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Tetrahedron>::EMoved* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Hexahedron>::EMoved* /*event*/) {}


virtual bool isTopologyDataRegistered() {return false;}

Expand Down

0 comments on commit a85cdae

Please sign in to comment.