Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace sofa::component::engine::analyze
* This class computes the average of a set of Coordinates
*/
template <class DataTypes>
class AverageCoord : public core::DataEngine, public core::behavior::SingleStateAccessor<DataTypes>
class AverageCoord : public core::DataEngine, public virtual core::behavior::SingleStateAccessor<DataTypes>
{
public:
SOFA_CLASS(SOFA_TEMPLATE(AverageCoord,DataTypes),core::DataEngine);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace sofa::component::engine::analyze
* This class computes target positions using shape matching deformation [Muller05][Muller11]
*/
template <class DataTypes>
class ShapeMatching : public core::DataEngine, public core::behavior::SingleStateAccessor<DataTypes>
class ShapeMatching : public core::DataEngine, public virtual core::behavior::SingleStateAccessor<DataTypes>
{
public:
SOFA_CLASS(SOFA_TEMPLATE(ShapeMatching,DataTypes),core::DataEngine);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace sofa::core::behavior
* Component computing constraint forces within a simulated body using the compliance method.
*/
template<class TDataTypes>
class ConstraintCorrection : public BaseConstraintCorrection, public SingleStateAccessor<TDataTypes>
class ConstraintCorrection : public BaseConstraintCorrection, public virtual SingleStateAccessor<TDataTypes>
{
public:
SOFA_ABSTRACT_CLASS2(SOFA_TEMPLATE(ConstraintCorrection, TDataTypes),
Expand Down
2 changes: 1 addition & 1 deletion Sofa/framework/Core/src/sofa/core/behavior/ForceField.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace sofa::core::behavior
* ( df, given a displacement dx ).
*/
template<class TDataTypes>
class ForceField : public BaseForceField, public SingleStateAccessor<TDataTypes>
class ForceField : public BaseForceField, public virtual SingleStateAccessor<TDataTypes>
{
public:
SOFA_CLASS2(SOFA_TEMPLATE(ForceField, TDataTypes), BaseForceField, SOFA_TEMPLATE(SingleStateAccessor, TDataTypes));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace sofa::core::behavior
*
*/
template<class DataTypes>
class LagrangianConstraint : public BaseLagrangianConstraint, public SingleStateAccessor<DataTypes>
class LagrangianConstraint : public BaseLagrangianConstraint, public virtual SingleStateAccessor<DataTypes>
{
public:
SOFA_CLASS2(SOFA_TEMPLATE(LagrangianConstraint, DataTypes), BaseLagrangianConstraint, SOFA_TEMPLATE(SingleStateAccessor, DataTypes));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace sofa::core::behavior
*
*/
template<class DataTypes>
class ProjectiveConstraintSet : public BaseProjectiveConstraintSet, public SingleStateAccessor<DataTypes>
class ProjectiveConstraintSet : public BaseProjectiveConstraintSet, public virtual SingleStateAccessor<DataTypes>
{
public:
SOFA_CLASS2(SOFA_TEMPLATE(ProjectiveConstraintSet,DataTypes), BaseProjectiveConstraintSet, SOFA_TEMPLATE(SingleStateAccessor, DataTypes));
Expand Down
Loading