|
19 | 19 | ******************************************************************************/ |
20 | 20 |
|
21 | 21 | #include <SofaPython3/Sofa/Core/Binding_Base.h> |
22 | | -#include <SofaExporter/Binding_OBJExporter.h> |
23 | | -#include <SofaExporter/Binding_OBJExporter_doc.h> |
| 22 | +#include <SofaExporter/Binding_VisualModelOBJExporter.h> |
| 23 | +#include <SofaExporter/Binding_VisualModelOBJExporter_doc.h> |
24 | 24 |
|
25 | 25 | #include <SofaPython3/PythonFactory.h> |
26 | 26 | #include <SofaPython3/Sofa/Core/Binding_BaseObject.h> |
27 | | -#include <SofaExporter/OBJExporter.h> |
| 27 | +#include <SofaExporter/VisualModelOBJExporter.h> |
28 | 28 |
|
29 | | -using sofa::component::exporter::OBJExporter; |
| 29 | +using sofa::component::exporter::VisualModelOBJExporter; |
30 | 30 |
|
31 | 31 | namespace py { using namespace pybind11; } |
32 | 32 |
|
33 | 33 | namespace sofapython3 { |
34 | 34 |
|
35 | | -void moduleAddOBJExporter(py::module &m) |
| 35 | +void moduleAddVisualModelOBJExporter(py::module &m) |
36 | 36 | { |
37 | | - PythonFactory::registerType<OBJExporter>([](sofa::core::objectmodel::Base* object) |
| 37 | + PythonFactory::registerType<VisualModelOBJExporter>([](sofa::core::objectmodel::Base* object) |
38 | 38 | { |
39 | | - return py::cast(dynamic_cast<OBJExporter*>(object)); |
| 39 | + return py::cast(dynamic_cast<VisualModelOBJExporter*>(object)); |
40 | 40 | }); |
41 | 41 |
|
42 | | - py::class_<OBJExporter, sofa::core::objectmodel::BaseObject, py_shared_ptr<OBJExporter>> p(m, "OBJExporter"); |
| 42 | + py::class_<VisualModelOBJExporter, sofa::core::objectmodel::BaseObject, py_shared_ptr<VisualModelOBJExporter>> p(m, "VisualModelOBJExporter"); |
43 | 43 |
|
44 | | - p.def("write", &OBJExporter::write, sofapython3::doc::SofaExporter::OBJExporter::write::docstring); |
| 44 | + p.def("write", &VisualModelOBJExporter::write, sofapython3::doc::SofaExporter::VisualModelOBJExporter::write::docstring); |
| 45 | + |
| 46 | + SOFA_ATTRIBUTE_DISABLED("v21.12", "PR#2505", "The OBJExporter class has been renamed in VisualModelOBJExporter.") |
| 47 | + py::class_<VisualModelOBJExporter, sofa::core::objectmodel::BaseObject, py_shared_ptr<VisualModelOBJExporter>> p_deprecated(m, "OBJExporter"); |
45 | 48 | } |
46 | 49 |
|
47 | 50 | } // namespace sofapython3 |
0 commit comments