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

Method FillInputPortInformation

Filters/Python/vtkPythonAlgorithm.cxx:179–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179int 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
198int vtkPythonAlgorithm::FillOutputPortInformation(int port, vtkInformation* info)
199{

Callers

nothing calls this directly

Calls 2

VTKToPythonFunction · 0.70
CheckResultFunction · 0.50

Tested by

no test coverage detected