Commit 0c200b6a authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot

Merge topic 'enable-discrete-import-op'

ecb442a8 Discrete session: enable python bindings for import op
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David Thompson's avatarDavid Thompson <david.thompson@kitware.com>
Merge-request: !1337
parents 95fd1c6f ecb442a8
Pipeline #123267 failed with stage
in 0 seconds
...@@ -25,6 +25,7 @@ using PySharedPtrClass = py::class_<T, std::shared_ptr<T>, Args...>; ...@@ -25,6 +25,7 @@ using PySharedPtrClass = py::class_<T, std::shared_ptr<T>, Args...>;
#include "PybindLegacyReadResource.h" #include "PybindLegacyReadResource.h"
#include "PybindCreateEdgesOperation.h" #include "PybindCreateEdgesOperation.h"
#include "PybindEdgeOperation.h" #include "PybindEdgeOperation.h"
#include "PybindImportOperation.h"
#include "PybindReadOperation.h" #include "PybindReadOperation.h"
#include "PybindSession.h" #include "PybindSession.h"
#include "PybindSession_json.h" #include "PybindSession_json.h"
...@@ -48,6 +49,7 @@ PYBIND11_MODULE(_smtkPybindDiscreteSession, discrete) ...@@ -48,6 +49,7 @@ PYBIND11_MODULE(_smtkPybindDiscreteSession, discrete)
py::class_< smtk::session::discrete::ArrangementHelper, smtk::model::ArrangementHelper > smtk_session_discrete_ArrangementHelper = pybind11_init_smtk_session_discrete_ArrangementHelper(discrete); py::class_< smtk::session::discrete::ArrangementHelper, smtk::model::ArrangementHelper > smtk_session_discrete_ArrangementHelper = pybind11_init_smtk_session_discrete_ArrangementHelper(discrete);
PySharedPtrClass< smtk::session::discrete::CreateEdgesOperation, smtk::operation::Operation > smtk_session_discrete_CreateEdgesOperation = pybind11_init_smtk_session_discrete_CreateEdgesOperation(discrete); PySharedPtrClass< smtk::session::discrete::CreateEdgesOperation, smtk::operation::Operation > smtk_session_discrete_CreateEdgesOperation = pybind11_init_smtk_session_discrete_CreateEdgesOperation(discrete);
PySharedPtrClass< smtk::session::discrete::EdgeOperation, smtk::operation::Operation > smtk_session_discrete_EdgeOperation = pybind11_init_smtk_session_discrete_EdgeOperation(discrete); PySharedPtrClass< smtk::session::discrete::EdgeOperation, smtk::operation::Operation > smtk_session_discrete_EdgeOperation = pybind11_init_smtk_session_discrete_EdgeOperation(discrete);
PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Operation > smtk_session_discrete_ImportOperation = pybind11_init_smtk_session_discrete_ImportOperation(discrete);
PySharedPtrClass< smtk::session::discrete::ReadOperation, smtk::operation::Operation > smtk_session_discrete_ReadOperation = pybind11_init_smtk_session_discrete_ReadOperation(discrete); PySharedPtrClass< smtk::session::discrete::ReadOperation, smtk::operation::Operation > smtk_session_discrete_ReadOperation = pybind11_init_smtk_session_discrete_ReadOperation(discrete);
PySharedPtrClass< smtk::session::discrete::LegacyReadResource, smtk::operation::Operation > smtk_session_discrete_LegacyReadResource = pybind11_init_smtk_session_discrete_LegacyReadResource(discrete); PySharedPtrClass< smtk::session::discrete::LegacyReadResource, smtk::operation::Operation > smtk_session_discrete_LegacyReadResource = pybind11_init_smtk_session_discrete_LegacyReadResource(discrete);
PySharedPtrClass< smtk::session::discrete::WriteOperation, smtk::operation::Operation > smtk_session_discrete_WriteOperation = pybind11_init_smtk_session_discrete_WriteOperation(discrete); PySharedPtrClass< smtk::session::discrete::WriteOperation, smtk::operation::Operation > smtk_session_discrete_WriteOperation = pybind11_init_smtk_session_discrete_WriteOperation(discrete);
......
...@@ -23,10 +23,6 @@ PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Ope ...@@ -23,10 +23,6 @@ PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Ope
PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Operation > instance(m, "ImportOperation"); PySharedPtrClass< smtk::session::discrete::ImportOperation, smtk::operation::Operation > instance(m, "ImportOperation");
instance instance
.def_static("create", (std::shared_ptr<smtk::session::discrete::ImportOperation> (*)()) &smtk::session::discrete::ImportOperation::create) .def_static("create", (std::shared_ptr<smtk::session::discrete::ImportOperation> (*)()) &smtk::session::discrete::ImportOperation::create)
.def_static("create", (std::shared_ptr<smtk::session::discrete::ImportOperation> (*)(::std::shared_ptr<smtk::session::discrete::ImportOperation> &)) &smtk::session::discrete::ImportOperator::create, py::arg("ref"))
.def("shared_from_this", (std::shared_ptr<smtk::session::discrete::ImportOperation> (smtk::session::discrete::ImportOperation::*)()) &smtk::session::discrete::ImportOperator::shared_from_this)
.def("shared_from_this", (std::shared_ptr<const smtk::session::discrete::ImportOperation> (smtk::session::discrete::ImportOperation::*)() const) &smtk::session::discrete::ImportOperator::shared_from_this)
.def("name", &smtk::session::discrete::ImportOperation::name)
.def("ableToOperate", &smtk::session::discrete::ImportOperation::ableToOperate) .def("ableToOperate", &smtk::session::discrete::ImportOperation::ableToOperate)
; ;
return instance; return instance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment