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

Method Paint

Rendering/PythonContext2D/vtkPythonItem.cxx:148–163  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

146
147//------------------------------------------------------------------------------
148bool vtkPythonItem::Paint(vtkContext2D* painter)
149{
150 vtkPythonScopeGilEnsurer gilEnsurer;
151 const char* mname = "Paint";
152 VTK_GET_METHOD(method, this->Object, mname, 0)
153
154 PyObject* vtkself = VTKToPython(this);
155 PyObject* pypainter = VTKToPython(painter);
156 vtkSmartPyObject args(PyTuple_Pack(2, vtkself, pypainter));
157 Py_DECREF(vtkself);
158 Py_DECREF(pypainter);
159
160 vtkSmartPyObject result(PyObject_Call(method, args, nullptr));
161
162 return CheckResult(mname, result);
163}
164VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

VTKToPythonFunction · 0.70
CheckResultFunction · 0.50

Tested by

no test coverage detected