Skip to content

Commit 135aac9

Browse files
committed
[Framework] Apply template method design pattern to BehaviorModel
1 parent cb6acf8 commit 135aac9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/PluginExample/MyBehaviorModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void MyBehaviorModel::reinit()
4747
{
4848
}
4949

50-
void MyBehaviorModel::updatePosition(double dt)
50+
void MyBehaviorModel::doUpdatePosition(double dt)
5151
{
5252
SOFA_UNUSED(dt);
5353
}

src/PluginExample/MyBehaviorModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SOFA_PLUGINEXAMPLE_API MyBehaviorModel : public sofa::core::BehaviorModel
4545
public:
4646
void init() override;
4747
void reinit() override;
48-
void updatePosition(double dt) override;
48+
void doUpdatePosition(double dt) override;
4949

5050
Data<unsigned> d_customUnsignedData; ///< Example of unsigned data with custom widget
5151
Data<unsigned> d_regularUnsignedData; ///< Example of unsigned data with standard widget

0 commit comments

Comments
 (0)