| 177 | } |
| 178 | |
| 179 | int vtkPythonAlgorithm::FillInputPortInformation(int port, vtkInformation* info) |
| 180 | { |
| 181 | vtkPythonScopeGilEnsurer gilEnsurer; |
| 182 | char mname[] = "FillInputPortInformation"; |
| 183 | VTK_GET_METHOD(method, this->Object, mname, 0) |
| 184 | |
| 185 | PyObject* vtkself = VTKToPython(this); |
| 186 | PyObject* pyport = PyLong_FromLong(port); |
| 187 | PyObject* pyinfo = VTKToPython(info); |
| 188 | vtkSmartPyObject args(PyTuple_Pack(3, vtkself, pyport, pyinfo)); |
| 189 | Py_DECREF(vtkself); |
| 190 | Py_DECREF(pyport); |
| 191 | Py_DECREF(pyinfo); |
| 192 | |
| 193 | vtkSmartPyObject result(PyObject_Call(method, args, nullptr)); |
| 194 | |
| 195 | return CheckResult(mname, result); |
| 196 | } |
| 197 | |
| 198 | int vtkPythonAlgorithm::FillOutputPortInformation(int port, vtkInformation* info) |
| 199 | { |
nothing calls this directly
no test coverage detected