Skip to content

Commit 72c40da

Browse files
committed
Propagates the removale of DAGNode and DAGSimulation
1 parent 5ae42ed commit 72c40da

File tree

5 files changed

+8
-15
lines changed

5 files changed

+8
-15
lines changed

Plugin/src/SofaPython3/Prefab.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
******************************************************************************/
2020

2121
#pragma once
22-
#include <sofa/simulation/graph/DAGNode.h>
22+
#include <sofa/simulation/Node.h>
2323
#include <sofa/core/objectmodel/DataCallback.h>
2424

2525
#include <sofa/helper/system/FileMonitor.h>
@@ -28,17 +28,17 @@
2828
namespace sofa::core::objectmodel
2929
{
3030

31-
class SOFAPYTHON3_API BasePrefab : public sofa::simulation::graph::DAGNode
31+
class SOFAPYTHON3_API BasePrefab : public sofa::simulation::Node
3232
{
3333
public:
34-
SOFA_CLASS(BasePrefab, sofa::simulation::graph::DAGNode);
34+
SOFA_CLASS(BasePrefab, sofa::simulation::Node);
3535
};
3636

3737
} // namespace sofa::core::objectmodel
3838

3939
namespace sofapython3
4040
{
41-
using sofa::simulation::graph::DAGNode;
41+
using sofa::simulation::Node;
4242
using sofa::core::objectmodel::BasePrefab;
4343
using sofa::core::objectmodel::DataCallback;
4444

Plugin/src/SofaPython3/SceneLoaderPY3.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
#include <fstream>
2323
#include <sofa/simulation/Simulation.h>
2424

25-
#include <sofa/simulation/graph/DAGNode.h>
26-
using sofa::simulation::graph::DAGNode;
27-
2825
#include <SofaPython3/PythonEnvironment.h>
2926
#include <SofaPython3/SceneLoaderPY3.h>
3027
#include <SofaPython3/PythonFactory.h>

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Node.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ std::string getLinkPath(Node* node){
164164
}
165165

166166
py_shared_ptr<Node> __init__noname() {
167-
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>("unnamed");
167+
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::Node>("unnamed");
168168
return std::move(dag_node);
169169
}
170170

171171
py_shared_ptr<Node> __init__(const std::string& name) {
172-
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>(name);
172+
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::Node>(name);
173173
return std::move(dag_node);
174174
}
175175

@@ -629,7 +629,7 @@ void moduleAddNode(py::module &m) {
629629
sofa::core::objectmodel::Context, py_shared_ptr<Node>>
630630
p(m, "Node", sofapython3::doc::sofa::core::Node::Class);
631631

632-
PythonFactory::registerType<sofa::simulation::graph::DAGNode>(
632+
PythonFactory::registerType<sofa::simulation::Node>(
633633
[](sofa::core::objectmodel::Base* object)
634634
{
635635
return py::cast(dynamic_cast<Node*>(object->toBaseNode()));

bindings/Sofa/src/SofaPython3/Sofa/Simulation/Submodule_Simulation.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
#include "SofaPython3/DataHelper.h"
2727
using sofa::simulation::Simulation;
2828

29-
#include <sofa/simulation/graph/DAGSimulation.h>
30-
using sofa::simulation::graph::DAGSimulation;
31-
3229
#include <sofa/simulation/Node.h>
3330
using sofa::simulation::Node;
3431
using namespace pybind11::literals;

bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Module_SofaRuntime.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
#include <sofa/helper/system/PluginManager.h>
2323
namespace py = pybind11;
2424

25-
#include <sofa/simulation/graph/DAGSimulation.h>
26-
using sofa::simulation::graph::DAGSimulation ;
25+
#include <sofa/simulation/Simulation.h>
2726
using sofa::simulation::Simulation;
2827

2928
#include <sofa/simpleapi/SimpleApi.h>

0 commit comments

Comments
 (0)