// python wrapper for vtkSVGContextDevice2D // #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 "vtkSVGContextDevice2D.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkSVGContextDevice2D(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkSVGContextDevice2D_ClassNew(); } #ifndef DECLARED_PyvtkContextDevice2D_ClassNew extern "C" { PyObject *PyvtkContextDevice2D_ClassNew(); } #define DECLARED_PyvtkContextDevice2D_ClassNew #endif static const char *PyvtkSVGContextDevice2D_Doc = "vtkSVGContextDevice2D - vtkContextDevice2D implementation for use\nwith vtkSVGExporter.\n\n" "Superclass: vtkContextDevice2D\n\n" "Limitations:\n" "- The Nearest/Linear texture properties are ignored, since SVG\n" " doesn't provide any reliable control over interpolation.\n" "- Embedded fonts are experimental and poorly tested. Viewer support\n" " is lacking at the time of writing, hence the feature is largely\n" " useless. By default, fonts are not embedded since they're basically\n" "useless bloat.\n" "- TextAsPath is enabled by default, since viewers differ wildly in\n" " how they handle text objects (eg. Inkscape renders at expected\n" " size, but webkit is way too big).\n" "- Pattern fills and markers are not shown on some viewers, e.g. KDE's\n" "okular (Webkit seems to work, though).\n" "- Clipping seems to be broken in most viewers. Webkit is buggy and\n" " forces the clip coordinates to objectBoundingBox, even when\n" " explicitly set to userSpaceOnUse.\n" "- Many viewers anti-alias the output, leaving thin outlines around\n" " the triangles that make up larger polygons. This is a viewer issue\n" " and there not much we can do about it from the VTK side of things\n" " (and most viewers don't seem to have an antialiasing toggle,\n" " either...).\n\n"; static PyObject * PyvtkSVGContextDevice2D_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkSVGContextDevice2D::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSVGContextDevice2D_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkSVGContextDevice2D *tempr = vtkSVGContextDevice2D::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSVGContextDevice2D_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkSVGContextDevice2D *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_SetSVGContext(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSVGContext"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); vtkXMLDataElement *temp0 = nullptr; vtkXMLDataElement *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetVTKObject(temp0, "vtkXMLDataElement") && ap.GetVTKObject(temp1, "vtkXMLDataElement")) { if (ap.IsBound()) { op->SetSVGContext(temp0, temp1); } else { op->vtkSVGContextDevice2D::SetSVGContext(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetEmbedFonts(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetEmbedFonts"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetEmbedFonts(temp0); } else { op->vtkSVGContextDevice2D::SetEmbedFonts(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_GetEmbedFonts(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetEmbedFonts"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { bool tempr = (ap.IsBound() ? op->GetEmbedFonts() : op->vtkSVGContextDevice2D::GetEmbedFonts()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSVGContextDevice2D_EmbedFontsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "EmbedFontsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->EmbedFontsOn(); } else { op->vtkSVGContextDevice2D::EmbedFontsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_EmbedFontsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "EmbedFontsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->EmbedFontsOff(); } else { op->vtkSVGContextDevice2D::EmbedFontsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetTextAsPath(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTextAsPath"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTextAsPath(temp0); } else { op->vtkSVGContextDevice2D::SetTextAsPath(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_GetTextAsPath(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTextAsPath"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { bool tempr = (ap.IsBound() ? op->GetTextAsPath() : op->vtkSVGContextDevice2D::GetTextAsPath()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSVGContextDevice2D_TextAsPathOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "TextAsPathOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->TextAsPathOn(); } else { op->vtkSVGContextDevice2D::TextAsPathOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_TextAsPathOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "TextAsPathOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->TextAsPathOff(); } else { op->vtkSVGContextDevice2D::TextAsPathOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetSubdivisionThreshold(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSubdivisionThreshold"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSubdivisionThreshold(temp0); } else { op->vtkSVGContextDevice2D::SetSubdivisionThreshold(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_GetSubdivisionThreshold(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSubdivisionThreshold"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetSubdivisionThreshold() : op->vtkSVGContextDevice2D::GetSubdivisionThreshold()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSVGContextDevice2D_GenerateDefinitions(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GenerateDefinitions"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->GenerateDefinitions(); } else { op->vtkSVGContextDevice2D::GenerateDefinitions(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_Begin(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Begin"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); vtkViewport *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkViewport")) { if (ap.IsBound()) { op->Begin(temp0); } else { op->vtkSVGContextDevice2D::Begin(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_End(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "End"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->End(); } else { op->vtkSVGContextDevice2D::End(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_DrawPoly(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPoly"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawLines(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawLines"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawPointSprites(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPointSprites"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawMarkers(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawMarkers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawQuad(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawQuad"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawQuadStrip(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawQuadStrip"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawPolygon(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawPolygon"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawColoredPolygon(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawColoredPolygon"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawEllipseWedge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawEllipseWedge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::DrawEllipseWedge(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_DrawEllipticArc(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawEllipticArc"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::DrawEllipticArc(temp0, temp1, temp2, temp3, temp4, temp5); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_DrawString_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawString_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 PyvtkSVGContextDevice2D_DrawString_Methods[] = { {nullptr, PyvtkSVGContextDevice2D_DrawString_s1, METH_VARARGS, "@Ps *f"}, {nullptr, PyvtkSVGContextDevice2D_DrawString_s2, METH_VARARGS, "@Pu *f"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkSVGContextDevice2D_DrawString(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkSVGContextDevice2D_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 * PyvtkSVGContextDevice2D_ComputeStringBounds_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeStringBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_ComputeStringBounds_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeStringBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 PyvtkSVGContextDevice2D_ComputeStringBounds_Methods[] = { {nullptr, PyvtkSVGContextDevice2D_ComputeStringBounds_s1, METH_VARARGS, "@sP *f"}, {nullptr, PyvtkSVGContextDevice2D_ComputeStringBounds_s2, METH_VARARGS, "@uP *f"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkSVGContextDevice2D_ComputeStringBounds(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkSVGContextDevice2D_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 * PyvtkSVGContextDevice2D_ComputeJustifiedStringBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeJustifiedStringBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawMathTextString(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawMathTextString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawImage_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawImage"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_DrawImage_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DrawImage"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::DrawImage(*temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkSVGContextDevice2D_DrawImage(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkSVGContextDevice2D_DrawImage_s1(self, args); case 2: return PyvtkSVGContextDevice2D_DrawImage_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "DrawImage"); return nullptr; } static PyObject * PyvtkSVGContextDevice2D_SetColor4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor4"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_SetTexture(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTexture"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::SetTexture(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetPointSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetPointSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::SetPointSize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetLineWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLineWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::SetLineWidth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetLineType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLineType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::SetLineType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::SetMatrix(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_GetMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::GetMatrix(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_MultiplyMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "MultiplyMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::MultiplyMatrix(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_PushMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PushMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->PushMatrix(); } else { op->vtkSVGContextDevice2D::PushMatrix(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_PopMatrix(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PopMatrix"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->PopMatrix(); } else { op->vtkSVGContextDevice2D::PopMatrix(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSVGContextDevice2D_SetClipping(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetClipping"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::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 * PyvtkSVGContextDevice2D_EnableClipping(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "EnableClipping"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSVGContextDevice2D *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->vtkSVGContextDevice2D::EnableClipping(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkSVGContextDevice2D_Methods[] = { {"IsTypeOf", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkSVGContextDevice2D\nC++: static vtkSVGContextDevice2D *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkSVGContextDevice2D_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkSVGContextDevice2D\nC++: vtkSVGContextDevice2D *NewInstance()\n\n"}, {"SetSVGContext", PyvtkSVGContextDevice2D_SetSVGContext, METH_VARARGS, "V.SetSVGContext(vtkXMLDataElement, vtkXMLDataElement)\nC++: void SetSVGContext(vtkXMLDataElement *context,\n vtkXMLDataElement *defs)\n\nThe svg container element to draw into, and the global\ndefinitions element.\n"}, {"SetEmbedFonts", PyvtkSVGContextDevice2D_SetEmbedFonts, METH_VARARGS, "V.SetEmbedFonts(bool)\nC++: virtual void SetEmbedFonts(bool _arg)\n\n"}, {"GetEmbedFonts", PyvtkSVGContextDevice2D_GetEmbedFonts, METH_VARARGS, "V.GetEmbedFonts() -> bool\nC++: virtual bool GetEmbedFonts()\n\n"}, {"EmbedFontsOn", PyvtkSVGContextDevice2D_EmbedFontsOn, METH_VARARGS, "V.EmbedFontsOn()\nC++: virtual void EmbedFontsOn()\n\n"}, {"EmbedFontsOff", PyvtkSVGContextDevice2D_EmbedFontsOff, METH_VARARGS, "V.EmbedFontsOff()\nC++: virtual void EmbedFontsOff()\n\n"}, {"SetTextAsPath", PyvtkSVGContextDevice2D_SetTextAsPath, METH_VARARGS, "V.SetTextAsPath(bool)\nC++: virtual void SetTextAsPath(bool _arg)\n\n"}, {"GetTextAsPath", PyvtkSVGContextDevice2D_GetTextAsPath, METH_VARARGS, "V.GetTextAsPath() -> bool\nC++: virtual bool GetTextAsPath()\n\n"}, {"TextAsPathOn", PyvtkSVGContextDevice2D_TextAsPathOn, METH_VARARGS, "V.TextAsPathOn()\nC++: virtual void TextAsPathOn()\n\n"}, {"TextAsPathOff", PyvtkSVGContextDevice2D_TextAsPathOff, METH_VARARGS, "V.TextAsPathOff()\nC++: virtual void TextAsPathOff()\n\n"}, {"SetSubdivisionThreshold", PyvtkSVGContextDevice2D_SetSubdivisionThreshold, METH_VARARGS, "V.SetSubdivisionThreshold(float)\nC++: virtual void SetSubdivisionThreshold(float _arg)\n\n"}, {"GetSubdivisionThreshold", PyvtkSVGContextDevice2D_GetSubdivisionThreshold, METH_VARARGS, "V.GetSubdivisionThreshold() -> float\nC++: virtual float GetSubdivisionThreshold()\n\n"}, {"GenerateDefinitions", PyvtkSVGContextDevice2D_GenerateDefinitions, METH_VARARGS, "V.GenerateDefinitions()\nC++: void GenerateDefinitions()\n\nWrite any definition information (fonts, images, etc) that are\naccumulated between actors.\n"}, {"Begin", PyvtkSVGContextDevice2D_Begin, METH_VARARGS, "V.Begin(vtkViewport)\nC++: void Begin(vtkViewport *) override;\n\nBegin drawing, pass in the viewport to set up the view.\n"}, {"End", PyvtkSVGContextDevice2D_End, METH_VARARGS, "V.End()\nC++: void End() override;\n\nEnd drawing, clean up the view.\n"}, {"DrawPoly", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_DrawPolygon, METH_VARARGS, "V.DrawPolygon([float, ...], int)\nC++: void DrawPolygon(float *, int) override;\n\n"}, {"DrawColoredPolygon", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_SetPointSize, METH_VARARGS, "V.SetPointSize(float)\nC++: void SetPointSize(float size) override;\n\nSet the point size for glyphs/sprites.\n"}, {"SetLineWidth", PyvtkSVGContextDevice2D_SetLineWidth, METH_VARARGS, "V.SetLineWidth(float)\nC++: void SetLineWidth(float width) override;\n\nSet the line width.\n"}, {"SetLineType", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_SetMatrix, METH_VARARGS, "V.SetMatrix(vtkMatrix3x3)\nC++: void SetMatrix(vtkMatrix3x3 *m) override;\n\nSet the model view matrix for the display\n"}, {"GetMatrix", PyvtkSVGContextDevice2D_GetMatrix, METH_VARARGS, "V.GetMatrix(vtkMatrix3x3)\nC++: void GetMatrix(vtkMatrix3x3 *m) override;\n\nSet the model view matrix for the display\n"}, {"MultiplyMatrix", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_PushMatrix, METH_VARARGS, "V.PushMatrix()\nC++: void PushMatrix() override;\n\nPush the current matrix onto the stack.\n"}, {"PopMatrix", PyvtkSVGContextDevice2D_PopMatrix, METH_VARARGS, "V.PopMatrix()\nC++: void PopMatrix() override;\n\nPop the current matrix off of the stack.\n"}, {"SetClipping", PyvtkSVGContextDevice2D_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", PyvtkSVGContextDevice2D_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 PyvtkSVGContextDevice2D_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkIOExportPython.vtkSVGContextDevice2D", // 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 PyvtkSVGContextDevice2D_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 *PyvtkSVGContextDevice2D_StaticNew() { return vtkSVGContextDevice2D::New(); } PyObject *PyvtkSVGContextDevice2D_ClassNew() { PyVTKClass_Add( &PyvtkSVGContextDevice2D_Type, PyvtkSVGContextDevice2D_Methods, "vtkSVGContextDevice2D", &PyvtkSVGContextDevice2D_StaticNew); PyTypeObject *pytype = &PyvtkSVGContextDevice2D_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_vtkSVGContextDevice2D( PyObject *dict) { PyObject *o; o = PyvtkSVGContextDevice2D_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkSVGContextDevice2D", o) != 0) { Py_DECREF(o); } }