Commit ed2bd43e authored by T.J. Corona's avatar T.J. Corona

Add name set/get methods for pybind resource

parent 20e44317
......@@ -79,8 +79,6 @@ PySharedPtrClass< smtk::mesh::Resource > pybind11_init_smtk_mesh_Resource(py::mo
.def("meshes", (smtk::mesh::MeshSet (smtk::mesh::Resource::*)(::smtk::mesh::Dirichlet const &) const) &smtk::mesh::Resource::meshes, py::arg("d"))
.def("meshes", (smtk::mesh::MeshSet (smtk::mesh::Resource::*)(::smtk::mesh::Neumann const &) const) &smtk::mesh::Resource::meshes, py::arg("n"))
.def("meshes", (smtk::mesh::MeshSet (smtk::mesh::Resource::*)(::std::string const &) const) &smtk::mesh::Resource::meshes, py::arg("name"))
.def("name", (std::string (smtk::mesh::Resource::*)() const) &smtk::mesh::Resource::name)
.def("name", (void (smtk::mesh::Resource::*)(::std::string const &)) &smtk::mesh::Resource::name, py::arg("n"))
.def("neumannMeshes", &smtk::mesh::Resource::neumannMeshes, py::arg("n"))
.def("neumanns", &smtk::mesh::Resource::neumanns)
.def("numberOfMeshes", &smtk::mesh::Resource::numberOfMeshes)
......
......@@ -25,7 +25,9 @@ PySharedPtrClass< smtk::resource::Resource, smtk::resource::PersistentObject > p
.def("index", &smtk::resource::Resource::index)
.def("id", &smtk::resource::Resource::id)
.def("location", &smtk::resource::Resource::location)
.def("setId", &smtk::resource::Resource::setId)
.def("name", (std::string (smtk::resource::Resource::*)() const) &smtk::resource::Resource::name)
.def("setName", (bool (smtk::resource::Resource::*)(::std::string const &)) &smtk::resource::Resource::name, py::arg("name"))
.def("setId", &smtk::resource::Resource::setId)
.def("setLocation", &smtk::resource::Resource::setLocation)
.def("find", (smtk::resource::ComponentSet (smtk::resource::Resource::*)(const std::string&) const) &smtk::resource::Resource::find)
.def("manager", &smtk::resource::Resource::manager)
......
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