MCPcopy Create free account
hub / github.com/Kitware/VTK / FillOutputPortInformation

Method FillOutputPortInformation

Filters/Python/vtkPythonAlgorithm.cxx:198–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int vtkPythonAlgorithm::FillOutputPortInformation(int port, vtkInformation* info)
199{
200 vtkPythonScopeGilEnsurer gilEnsurer;
201 char mname[] = "FillOutputPortInformation";
202 VTK_GET_METHOD(method, this->Object, mname, 0)
203
204 PyObject* vtkself = VTKToPython(this);
205 PyObject* pyport = PyLong_FromLong(port);
206 PyObject* pyinfo = VTKToPython(info);
207 vtkSmartPyObject args(PyTuple_Pack(3, vtkself, pyport, pyinfo));
208 Py_DECREF(vtkself);
209 Py_DECREF(pyport);
210 Py_DECREF(pyinfo);
211
212 vtkSmartPyObject result(PyObject_Call(method, args, nullptr));
213
214 return CheckResult(mname, result);
215}
216VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

VTKToPythonFunction · 0.70
CheckResultFunction · 0.50

Tested by

no test coverage detected