// python wrapper for vtkPDFContextDevice2D // #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include "vtkPythonArgs.h" #include "vtkPythonOverload.h" #include "vtkConfigure.h" #include #include #include "vtkVariant.h" #include "vtkIndent.h" #include "vtkStdString.h" #include "vtkUnicodeString.h" #include "vtkRect.h" #include "vtkPDFContextDevice2D.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkPDFContextDevice2D(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkPDFContextDevice2D_ClassNew(); } #ifndef DECLARED_PyvtkContextDevice2D_ClassNew extern "C" { PyObject *PyvtkContextDevice2D_ClassNew(); } #define DECLARED_PyvtkContextDevice2D_ClassNew #endif static const char *PyvtkPDFContextDevice2D_Doc = "vtkPDFContextDevice2D - vtkContextDevice2D implementation for use\nwith vtkPDFExporter.\n\n" "Superclass: vtkContextDevice2D\n\n" ; static PyObject * PyvtkPDFContextDevice2D_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkPDFContextDevice2D::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPDFContextDevice2D_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkPDFContextDevice2D::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkPDFContextDevice2D *tempr = vtkPDFContextDevice2D::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPDFContextDevice2D_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPDFContextDevice2D *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkPDFContextDevice2D::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetHaruObjects(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetHaruObjects"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); void *temp0 = nullptr; Py_buffer pbuf0 = VTK_PYBUFFER_INITIALIZER; void *temp1 = nullptr; Py_buffer pbuf1 = VTK_PYBUFFER_INITIALIZER; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetBuffer(temp0, &pbuf0) && ap.GetBuffer(temp1, &pbuf1)) { if (ap.IsBound()) { op->SetHaruObjects(temp0, temp1); } else { op->vtkPDFContextDevice2D::SetHaruObjects(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } #if PY_VERSION_HEX >= 0x02060000 if (pbuf0.obj != 0) { PyBuffer_Release(&pbuf0); } #endif #if PY_VERSION_HEX >= 0x02060000 if (pbuf1.obj != 0) { PyBuffer_Release(&pbuf1); } #endif return result; } static PyObject * PyvtkPDFContextDevice2D_SetRenderer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRenderer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkRenderer *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkRenderer")) { if (ap.IsBound()) { op->SetRenderer(temp0); } else { op->vtkPDFContextDevice2D::SetRenderer(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawPoly(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPoly"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); unsigned char *temp2 = store2.Data(); unsigned char *save2 = (size2 == 0 ? nullptr : temp2 + size2); int temp3 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 4) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetArray(temp2, size2)) && (ap.NoArgsLeft() || ap.GetValue(temp3))) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp2, save2, size2); if (ap.IsBound()) { op->DrawPoly(temp0, temp1, temp2, temp3); } else { op->vtkPDFContextDevice2D::DrawPoly(temp0, temp1, temp2, temp3); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawLines(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawLines"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); unsigned char *temp2 = store2.Data(); unsigned char *save2 = (size2 == 0 ? nullptr : temp2 + size2); int temp3 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 4) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetArray(temp2, size2)) && (ap.NoArgsLeft() || ap.GetValue(temp3))) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp2, save2, size2); if (ap.IsBound()) { op->DrawLines(temp0, temp1, temp2, temp3); } else { op->vtkPDFContextDevice2D::DrawLines(temp0, temp1, temp2, temp3); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); unsigned char *temp2 = store2.Data(); unsigned char *save2 = (size2 == 0 ? nullptr : temp2 + size2); int temp3 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 4) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetArray(temp2, size2)) && (ap.NoArgsLeft() || ap.GetValue(temp3))) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp2, save2, size2); if (ap.IsBound()) { op->DrawPoints(temp0, temp1, temp2, temp3); } else { op->vtkPDFContextDevice2D::DrawPoints(temp0, temp1, temp2, temp3); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawPointSprites(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPointSprites"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkImageData *temp0 = nullptr; int size1 = ap.GetArgSize(1); vtkPythonArgs::Array store1(2*size1); float *temp1 = store1.Data(); float *save1 = (size1 == 0 ? nullptr : temp1 + size1); int temp2; int size3 = ap.GetArgSize(3); vtkPythonArgs::Array store3(2*size3); unsigned char *temp3 = store3.Data(); unsigned char *save3 = (size3 == 0 ? nullptr : temp3 + size3); int temp4 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(3, 5) && ap.GetVTKObject(temp0, "vtkImageData") && ap.GetArray(temp1, size1) && ap.GetValue(temp2) && (ap.NoArgsLeft() || ap.GetArray(temp3, size3)) && (ap.NoArgsLeft() || ap.GetValue(temp4))) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp3, save3, size3); if (ap.IsBound()) { op->DrawPointSprites(temp0, temp1, temp2, temp3, temp4); } else { op->vtkPDFContextDevice2D::DrawPointSprites(temp0, temp1, temp2, temp3, temp4); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (ap.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawMarkers(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawMarkers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int temp0; bool temp1 = false; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); float *temp2 = store2.Data(); float *save2 = (size2 == 0 ? nullptr : temp2 + size2); int temp3; int size4 = ap.GetArgSize(4); vtkPythonArgs::Array store4(2*size4); unsigned char *temp4 = store4.Data(); unsigned char *save4 = (size4 == 0 ? nullptr : temp4 + size4); int temp5 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(4, 6) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetArray(temp2, size2) && ap.GetValue(temp3) && (ap.NoArgsLeft() || ap.GetArray(temp4, size4)) && (ap.NoArgsLeft() || ap.GetValue(temp5))) { ap.SaveArray(temp2, save2, size2); ap.SaveArray(temp4, save4, size4); if (ap.IsBound()) { op->DrawMarkers(temp0, temp1, temp2, temp3, temp4, temp5); } else { op->vtkPDFContextDevice2D::DrawMarkers(temp0, temp1, temp2, temp3, temp4, temp5); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (ap.ArrayHasChanged(temp4, save4, size4) && !ap.ErrorOccurred()) { ap.SetArray(4, temp4, size4); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawQuad(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawQuad"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawQuad(temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawQuad(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawQuadStrip(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawQuadStrip"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawQuadStrip(temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawQuadStrip(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawPolygon(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPolygon"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawPolygon(temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawPolygon(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawColoredPolygon(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawColoredPolygon"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); unsigned char *temp2 = store2.Data(); unsigned char *save2 = (size2 == 0 ? nullptr : temp2 + size2); int temp3 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 4) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetArray(temp2, size2)) && (ap.NoArgsLeft() || ap.GetValue(temp3))) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp2, save2, size2); if (ap.IsBound()) { op->DrawColoredPolygon(temp0, temp1, temp2, temp3); } else { op->vtkPDFContextDevice2D::DrawColoredPolygon(temp0, temp1, temp2, temp3); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawEllipseWedge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawEllipseWedge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); float temp0; float temp1; float temp2; float temp3; float temp4; float temp5; float temp6; float temp7; PyObject *result = nullptr; if (op && ap.CheckArgCount(8) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetValue(temp5) && ap.GetValue(temp6) && ap.GetValue(temp7)) { if (ap.IsBound()) { op->DrawEllipseWedge(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7); } else { op->vtkPDFContextDevice2D::DrawEllipseWedge(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawEllipticArc(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawEllipticArc"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); float temp0; float temp1; float temp2; float temp3; float temp4; float temp5; PyObject *result = nullptr; if (op && ap.CheckArgCount(6) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetValue(temp5)) { if (ap.IsBound()) { op->DrawEllipticArc(temp0, temp1, temp2, temp3, temp4, temp5); } else { op->vtkPDFContextDevice2D::DrawEllipticArc(temp0, temp1, temp2, temp3, temp4, temp5); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawString_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); vtkStdString temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawString(temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawString(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawString_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); vtkUnicodeString temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawString(temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawString(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPDFContextDevice2D_DrawString_Methods[] = { {nullptr, PyvtkPDFContextDevice2D_DrawString_s1, METH_VARARGS, "@Ps *f"}, {nullptr, PyvtkPDFContextDevice2D_DrawString_s2, METH_VARARGS, "@Pu *f"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPDFContextDevice2D_DrawString(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkPDFContextDevice2D_DrawString_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "DrawString"); return nullptr; } static PyObject * PyvtkPDFContextDevice2D_ComputeStringBounds_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeStringBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkStdString temp0; const int size1 = 4; float temp1[4]; float save1[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->ComputeStringBounds(temp0, temp1); } else { op->vtkPDFContextDevice2D::ComputeStringBounds(temp0, temp1); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_ComputeStringBounds_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeStringBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkUnicodeString temp0; const int size1 = 4; float temp1[4]; float save1[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->ComputeStringBounds(temp0, temp1); } else { op->vtkPDFContextDevice2D::ComputeStringBounds(temp0, temp1); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPDFContextDevice2D_ComputeStringBounds_Methods[] = { {nullptr, PyvtkPDFContextDevice2D_ComputeStringBounds_s1, METH_VARARGS, "@sP *f"}, {nullptr, PyvtkPDFContextDevice2D_ComputeStringBounds_s2, METH_VARARGS, "@uP *f"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPDFContextDevice2D_ComputeStringBounds(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkPDFContextDevice2D_ComputeStringBounds_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "ComputeStringBounds"); return nullptr; } static PyObject * PyvtkPDFContextDevice2D_ComputeJustifiedStringBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeJustifiedStringBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); char *temp0 = nullptr; const int size1 = 4; float temp1[4]; float save1[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->ComputeJustifiedStringBounds(temp0, temp1); } else { op->vtkPDFContextDevice2D::ComputeJustifiedStringBounds(temp0, temp1); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawMathTextString(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawMathTextString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); float *temp0 = store0.Data(); float *save0 = (size0 == 0 ? nullptr : temp0 + size0); vtkStdString temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawMathTextString(temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawMathTextString(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawImage_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawImage"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); const int size0 = 2; float temp0[2]; float save0[2]; float temp1; vtkImageData *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && ap.GetVTKObject(temp2, "vtkImageData")) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawImage(temp0, temp1, temp2); } else { op->vtkPDFContextDevice2D::DrawImage(temp0, temp1, temp2); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawImage_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawImage"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkRectf *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkImageData *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetSpecialObject(temp0, pobj0, "vtkRectf") && ap.GetVTKObject(temp1, "vtkImageData")) { if (ap.IsBound()) { op->DrawImage(*temp0, temp1); } else { op->vtkPDFContextDevice2D::DrawImage(*temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkPDFContextDevice2D_DrawImage(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkPDFContextDevice2D_DrawImage_s1(self, args); case 2: return PyvtkPDFContextDevice2D_DrawImage_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "DrawImage"); return nullptr; } static PyObject * PyvtkPDFContextDevice2D_SetColor4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor4"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); const int size0 = 4; unsigned char temp0[4]; unsigned char save0[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->SetColor4(temp0); } else { op->vtkPDFContextDevice2D::SetColor4(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetTexture(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTexture"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkImageData *temp0 = nullptr; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetVTKObject(temp0, "vtkImageData") && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetTexture(temp0, temp1); } else { op->vtkPDFContextDevice2D::SetTexture(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetPointSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetPointSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetPointSize(temp0); } else { op->vtkPDFContextDevice2D::SetPointSize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetLineWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLineWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetLineWidth(temp0); } else { op->vtkPDFContextDevice2D::SetLineWidth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_DrawPolyData(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPolyData"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); const int size0 = 2; float temp0[2]; float save0[2]; float temp1; vtkPolyData *temp2 = nullptr; vtkUnsignedCharArray *temp3 = nullptr; int temp4; PyObject *result = nullptr; if (op && ap.CheckArgCount(5) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && ap.GetVTKObject(temp2, "vtkPolyData") && ap.GetVTKObject(temp3, "vtkUnsignedCharArray") && ap.GetValue(temp4)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DrawPolyData(temp0, temp1, temp2, temp3, temp4); } else { op->vtkPDFContextDevice2D::DrawPolyData(temp0, temp1, temp2, temp3, temp4); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetLineType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLineType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetLineType(temp0); } else { op->vtkPDFContextDevice2D::SetLineType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkMatrix3x3 *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkMatrix3x3")) { if (ap.IsBound()) { op->SetMatrix(temp0); } else { op->vtkPDFContextDevice2D::SetMatrix(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_GetMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkMatrix3x3 *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkMatrix3x3")) { if (ap.IsBound()) { op->GetMatrix(temp0); } else { op->vtkPDFContextDevice2D::GetMatrix(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_MultiplyMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "MultiplyMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); vtkMatrix3x3 *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkMatrix3x3")) { if (ap.IsBound()) { op->MultiplyMatrix(temp0); } else { op->vtkPDFContextDevice2D::MultiplyMatrix(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_PushMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PushMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->PushMatrix(); } else { op->vtkPDFContextDevice2D::PushMatrix(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_PopMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PopMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->PopMatrix(); } else { op->vtkPDFContextDevice2D::PopMatrix(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_SetClipping(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetClipping"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); int *temp0 = store0.Data(); int *save0 = (size0 == 0 ? nullptr : temp0 + size0); PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->SetClipping(temp0); } else { op->vtkPDFContextDevice2D::SetClipping(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPDFContextDevice2D_EnableClipping(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "EnableClipping"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPDFContextDevice2D *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->EnableClipping(temp0); } else { op->vtkPDFContextDevice2D::EnableClipping(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPDFContextDevice2D_Methods[] = { {"IsTypeOf", PyvtkPDFContextDevice2D_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkPDFContextDevice2D_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkPDFContextDevice2D_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkPDFContextDevice2D\nC++: static vtkPDFContextDevice2D *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkPDFContextDevice2D_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkPDFContextDevice2D\nC++: vtkPDFContextDevice2D *NewInstance()\n\n"}, {"SetHaruObjects", PyvtkPDFContextDevice2D_SetHaruObjects, METH_VARARGS, "V.SetHaruObjects(void, void)\nC++: void SetHaruObjects(void *doc, void *page)\n\nSet the HPDF_Doc and HPDF_Page to use while exporting the scene.\nThe type is void* to keep the libharu opaque types from leaking\ninto headers. This function expects HPDF_Document* and HPDF_Page*\nas the arguments.\n"}, {"SetRenderer", PyvtkPDFContextDevice2D_SetRenderer, METH_VARARGS, "V.SetRenderer(vtkRenderer)\nC++: void SetRenderer(vtkRenderer *)\n\n"}, {"DrawPoly", PyvtkPDFContextDevice2D_DrawPoly, METH_VARARGS, "V.DrawPoly([float, ...], int, [int, ...], int)\nC++: void DrawPoly(float *points, int n,\n unsigned char *colors=nullptr, int nc_comps=0) override;\n\nDraw a poly line using the points - fastest code path due to\nmemory layout of the coordinates. The line will be colored by the\ncolors array, which must be have nc_comps components (defining a\nsingle color).\n\\sa DrawLines()\n"}, {"DrawLines", PyvtkPDFContextDevice2D_DrawLines, METH_VARARGS, "V.DrawLines([float, ...], int, [int, ...], int)\nC++: void DrawLines(float *f, int n,\n unsigned char *colors=nullptr, int nc_comps=0) override;\n\nDraw lines using the points - memory layout is as follows:\nl1p1,l1p2,l2p1,l2p2... The lines will be colored by colors array\nwhich has nc_comps components (defining a single color).\n\\sa DrawPoly()\n"}, {"DrawPoints", PyvtkPDFContextDevice2D_DrawPoints, METH_VARARGS, "V.DrawPoints([float, ...], int, [int, ...], int)\nC++: void DrawPoints(float *points, int n,\n unsigned char *colors=nullptr, int nc_comps=0) override;\n\nDraw a series of points - fastest code path due to memory layout\nof the coordinates. The colors and nc_comps are optional - color\narray.\n"}, {"DrawPointSprites", PyvtkPDFContextDevice2D_DrawPointSprites, METH_VARARGS, "V.DrawPointSprites(vtkImageData, [float, ...], int, [int, ...],\n int)\nC++: void DrawPointSprites(vtkImageData *sprite, float *points,\n int n, unsigned char *colors=nullptr, int nc_comps=0)\n override;\n\nDraw a series of point sprites, images centred at the points\nsupplied. The supplied vtkImageData is the sprite to be drawn,\nonly squares will be drawn and the size is set using\nSetPointSize.\n\\param colors is an optional array of colors.\n\\param nc_comps is the number of components for the color.\n"}, {"DrawMarkers", PyvtkPDFContextDevice2D_DrawMarkers, METH_VARARGS, "V.DrawMarkers(int, bool, [float, ...], int, [int, ...], int)\nC++: void DrawMarkers(int shape, bool highlight, float *points,\n int n, unsigned char *colors=nullptr, int nc_comps=0)\n override;\n\nDraw a series of markers centered at the points supplied. The\nshape argument controls the marker shape, and can be one of\n- VTK_MARKER_CROSS\n- VTK_MARKER_PLUS\n- VTK_MARKER_SQUARE\n- VTK_MARKER_CIRCLE\n- VTK_MARKER_DIAMOND\n\\param colors is an optional array of colors.\n\\param nc_comps is the number of components for the color.\n"}, {"DrawQuad", PyvtkPDFContextDevice2D_DrawQuad, METH_VARARGS, "V.DrawQuad([float, ...], int)\nC++: void DrawQuad(float *, int) override;\n\nDraw a quad using the specified number of points.\n"}, {"DrawQuadStrip", PyvtkPDFContextDevice2D_DrawQuadStrip, METH_VARARGS, "V.DrawQuadStrip([float, ...], int)\nC++: void DrawQuadStrip(float *, int) override;\n\nDraw a quad using the specified number of points.\n"}, {"DrawPolygon", PyvtkPDFContextDevice2D_DrawPolygon, METH_VARARGS, "V.DrawPolygon([float, ...], int)\nC++: void DrawPolygon(float *, int) override;\n\n"}, {"DrawColoredPolygon", PyvtkPDFContextDevice2D_DrawColoredPolygon, METH_VARARGS, "V.DrawColoredPolygon([float, ...], int, [int, ...], int)\nC++: void DrawColoredPolygon(float *points, int numPoints,\n unsigned char *colors=nullptr, int nc_comps=0) override;\n\n"}, {"DrawEllipseWedge", PyvtkPDFContextDevice2D_DrawEllipseWedge, METH_VARARGS, "V.DrawEllipseWedge(float, float, float, float, float, float,\n float, float)\nC++: void DrawEllipseWedge(float x, float y, float outRx,\n float outRy, float inRx, float inRy, float startAngle,\n float stopAngle) override;\n\nDraw an elliptic wedge with center at x, y, outer radii outRx,\noutRy, inner radii inRx, inRy between angles startAngle and\nstopAngle (expressed in degrees).\n\\pre positive_outRx: outRx>=0\n\\pre positive_outRy: outRy>=0\n\\pre positive_inRx: inRx>=0\n\\pre positive_inRy: inRy>=0\n\\pre ordered_rx: inRx<=outRx\n\\pre ordered_ry: inRy<=outRy\n"}, {"DrawEllipticArc", PyvtkPDFContextDevice2D_DrawEllipticArc, METH_VARARGS, "V.DrawEllipticArc(float, float, float, float, float, float)\nC++: void DrawEllipticArc(float x, float y, float rX, float rY,\n float startAngle, float stopAngle) override;\n\nDraw an elliptic arc with center at x,y with radii rX and rY\nbetween angles startAngle and stopAngle (expressed in degrees).\n\\pre positive_rX: rX>=0\n\\pre positive_rY: rY>=0\n"}, {"DrawString", PyvtkPDFContextDevice2D_DrawString, METH_VARARGS, "V.DrawString([float, ...], string)\nC++: void DrawString(float *point, const vtkStdString &string)\n override;\nV.DrawString([float, ...], unicode)\nC++: void DrawString(float *point, const vtkUnicodeString &string)\n override;\n\nDraw some text to the screen.\n"}, {"ComputeStringBounds", PyvtkPDFContextDevice2D_ComputeStringBounds, METH_VARARGS, "V.ComputeStringBounds(string, [float, float, float, float])\nC++: void ComputeStringBounds(const vtkStdString &string,\n float bounds[4]) override;\nV.ComputeStringBounds(unicode, [float, float, float, float])\nC++: void ComputeStringBounds(const vtkUnicodeString &string,\n float bounds[4]) override;\n\nCompute the bounds of the supplied string. The bounds will be\ncopied to the supplied bounds variable, the first two elements\nare the bottom corner of the string, and the second two elements\nare the width and height of the bounding box. NOTE: This function\ndoes not take account of the text rotation or justification.\n"}, {"ComputeJustifiedStringBounds", PyvtkPDFContextDevice2D_ComputeJustifiedStringBounds, METH_VARARGS, "V.ComputeJustifiedStringBounds(string, [float, float, float,\n float])\nC++: void ComputeJustifiedStringBounds(const char *string,\n float bounds[4]) override;\n\nCompute the bounds of the supplied string while taking into\naccount the justification of the currently applied text property.\nSimple rotations (0, 90, 180, 270) are also correctly taken into\naccount.\n"}, {"DrawMathTextString", PyvtkPDFContextDevice2D_DrawMathTextString, METH_VARARGS, "V.DrawMathTextString([float, ...], string)\nC++: void DrawMathTextString(float *point,\n const vtkStdString &str) override;\n\nDraw text using MathText markup for mathematical equations. See\nhttp://matplotlib.sourceforge.net/users/mathtext.html for more\ninformation.\n"}, {"DrawImage", PyvtkPDFContextDevice2D_DrawImage, METH_VARARGS, "V.DrawImage([float, float], float, vtkImageData)\nC++: void DrawImage(float p[2], float scale, vtkImageData *image)\n override;\nV.DrawImage(vtkRectf, vtkImageData)\nC++: void DrawImage(const vtkRectf &pos, vtkImageData *image)\n override;\n\nDraw the supplied image at the given x, y (p[0], p[1]) (bottom\ncorner), scaled by scale (1.0 would match the image).\n"}, {"SetColor4", PyvtkPDFContextDevice2D_SetColor4, METH_VARARGS, "V.SetColor4([int, int, int, int])\nC++: void SetColor4(unsigned char color[4]) override;\n\nSet the color for the device using unsigned char of length 4,\nRGBA.\n"}, {"SetTexture", PyvtkPDFContextDevice2D_SetTexture, METH_VARARGS, "V.SetTexture(vtkImageData, int)\nC++: void SetTexture(vtkImageData *image, int properties)\n override;\n\nSet the texture for the device, it is used to fill the polygons\n"}, {"SetPointSize", PyvtkPDFContextDevice2D_SetPointSize, METH_VARARGS, "V.SetPointSize(float)\nC++: void SetPointSize(float size) override;\n\nSet the point size for glyphs/sprites.\n"}, {"SetLineWidth", PyvtkPDFContextDevice2D_SetLineWidth, METH_VARARGS, "V.SetLineWidth(float)\nC++: void SetLineWidth(float width) override;\n\nSet the line width.\n"}, {"DrawPolyData", PyvtkPDFContextDevice2D_DrawPolyData, METH_VARARGS, "V.DrawPolyData([float, float], float, vtkPolyData,\n vtkUnsignedCharArray, int)\nC++: void DrawPolyData(float p[2], float scale,\n vtkPolyData *polyData, vtkUnsignedCharArray *colors,\n int scalarMode) override;\n\nDraw the supplied PolyData at the given x, y (p[0], p[1]) (bottom\ncorner), scaled by scale (1.0 would match the actual dataset).\n\nOnly lines and polys are rendered. Only the x/y coordinates of\nthe polydata are used.\n\n@param p Offset to apply to polydata.\n@param scale Isotropic scale for polydata. Applied after offset.\n@param polyData Draw lines and polys from this dataset.\n@param colors RGBA for points or cells, depending on value of\n scalarMode.\nMust not be NULL.\n@param scalarMode Must be either VTK_SCALAR_MODE_USE_POINT_DATA\n or\nVTK_SCALAR_MODE_USE_CELL_DATA.\n\nThe base implementation breaks the polydata apart and renders\neach polygon individually using the device API. Subclasses should\noverride this method with a batch-drawing implementation if\nperformance is a concern.\n"}, {"SetLineType", PyvtkPDFContextDevice2D_SetLineType, METH_VARARGS, "V.SetLineType(int)\nC++: void SetLineType(int type) override;\n\nSet the line type type (using anonymous enum in vtkPen).\n"}, {"SetMatrix", PyvtkPDFContextDevice2D_SetMatrix, METH_VARARGS, "V.SetMatrix(vtkMatrix3x3)\nC++: void SetMatrix(vtkMatrix3x3 *m) override;\n\nSet the model view matrix for the display\n"}, {"GetMatrix", PyvtkPDFContextDevice2D_GetMatrix, METH_VARARGS, "V.GetMatrix(vtkMatrix3x3)\nC++: void GetMatrix(vtkMatrix3x3 *m) override;\n\nSet the model view matrix for the display\n"}, {"MultiplyMatrix", PyvtkPDFContextDevice2D_MultiplyMatrix, METH_VARARGS, "V.MultiplyMatrix(vtkMatrix3x3)\nC++: void MultiplyMatrix(vtkMatrix3x3 *m) override;\n\nMultiply the current model view matrix by the supplied one\n"}, {"PushMatrix", PyvtkPDFContextDevice2D_PushMatrix, METH_VARARGS, "V.PushMatrix()\nC++: void PushMatrix() override;\n\nPush the current matrix onto the stack.\n"}, {"PopMatrix", PyvtkPDFContextDevice2D_PopMatrix, METH_VARARGS, "V.PopMatrix()\nC++: void PopMatrix() override;\n\nPop the current matrix off of the stack.\n"}, {"SetClipping", PyvtkPDFContextDevice2D_SetClipping, METH_VARARGS, "V.SetClipping([int, ...])\nC++: void SetClipping(int *x) override;\n\nSupply a float array of length 4 with x1, y1, width, height\nspecifying clipping region for the device in pixels.\n"}, {"EnableClipping", PyvtkPDFContextDevice2D_EnableClipping, METH_VARARGS, "V.EnableClipping(bool)\nC++: void EnableClipping(bool enable) override;\n\nEnable or disable the clipping of the scene.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkPDFContextDevice2D_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkIOExportPython.vtkPDFContextDevice2D", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkPDFContextDevice2D_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkPDFContextDevice2D_StaticNew() { return vtkPDFContextDevice2D::New(); } PyObject *PyvtkPDFContextDevice2D_ClassNew() { PyVTKClass_Add( &PyvtkPDFContextDevice2D_Type, PyvtkPDFContextDevice2D_Methods, "vtkPDFContextDevice2D", &PyvtkPDFContextDevice2D_StaticNew); PyTypeObject *pytype = &PyvtkPDFContextDevice2D_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkContextDevice2D_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkPDFContextDevice2D( PyObject *dict) { PyObject *o; o = PyvtkPDFContextDevice2D_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkPDFContextDevice2D", o) != 0) { Py_DECREF(o); } }