File tree Expand file tree Collapse file tree 5 files changed +8
-15
lines changed
SofaRuntime/src/SofaPython3/SofaRuntime
Sofa/src/SofaPython3/Sofa Expand file tree Collapse file tree 5 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 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>
2828namespace 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{
3333public:
34- SOFA_CLASS (BasePrefab, sofa::simulation::graph::DAGNode );
34+ SOFA_CLASS (BasePrefab, sofa::simulation::Node );
3535};
3636
3737} // namespace sofa::core::objectmodel
3838
3939namespace sofapython3
4040{
41- using sofa::simulation::graph::DAGNode ;
41+ using sofa::simulation::Node ;
4242using sofa::core::objectmodel::BasePrefab;
4343using sofa::core::objectmodel::DataCallback;
4444
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change @@ -164,12 +164,12 @@ std::string getLinkPath(Node* node){
164164}
165165
166166py_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
171171py_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 ()));
Original file line number Diff line number Diff line change 2626#include " SofaPython3/DataHelper.h"
2727using sofa::simulation::Simulation;
2828
29- #include < sofa/simulation/graph/DAGSimulation.h>
30- using sofa::simulation::graph::DAGSimulation;
31-
3229#include < sofa/simulation/Node.h>
3330using sofa::simulation::Node;
3431using namespace pybind11 ::literals;
Original file line number Diff line number Diff line change 2222#include < sofa/helper/system/PluginManager.h>
2323namespace py = pybind11;
2424
25- #include < sofa/simulation/graph/DAGSimulation.h>
26- using sofa::simulation::graph::DAGSimulation ;
25+ #include < sofa/simulation/Simulation.h>
2726using sofa::simulation::Simulation;
2827
2928#include < sofa/simpleapi/SimpleApi.h>
You can’t perform that action at this time.
0 commit comments