// python wrapper for vtkWarpLens // #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 "vtkWarpLens.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkWarpLens(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkWarpLens_ClassNew(); } #ifndef DECLARED_PyvtkPointSetAlgorithm_ClassNew extern "C" { PyObject *PyvtkPointSetAlgorithm_ClassNew(); } #define DECLARED_PyvtkPointSetAlgorithm_ClassNew #endif static const char *PyvtkWarpLens_Doc = "vtkWarpLens - deform geometry by applying lens distortion\n\n" "Superclass: vtkPointSetAlgorithm\n\n" "vtkWarpLens is a filter that modifies point coordinates by moving in\n" "accord with a lens distortion model.\n\n"; static PyObject * PyvtkWarpLens_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkWarpLens::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *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->vtkWarpLens::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkWarpLens *tempr = vtkWarpLens::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkWarpLens_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkWarpLens *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkWarpLens::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 * PyvtkWarpLens_SetKappa(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetKappa"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetKappa(temp0); } else { op->vtkWarpLens::SetKappa(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetKappa(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetKappa"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetKappa() : op->vtkWarpLens::GetKappa()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetCenter(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCenter"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetCenter(temp0, temp1); } else { op->vtkWarpLens::SetCenter(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetCenter(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCenter"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetCenter() : op->vtkWarpLens::GetCenter()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkWarpLens_SetPrincipalPoint_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetPrincipalPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetPrincipalPoint(temp0, temp1); } else { op->vtkWarpLens::SetPrincipalPoint(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_SetPrincipalPoint_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetPrincipalPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); const int size0 = 2; double temp0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetPrincipalPoint(temp0); } else { op->vtkWarpLens::SetPrincipalPoint(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_SetPrincipalPoint(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkWarpLens_SetPrincipalPoint_s1(self, args); case 1: return PyvtkWarpLens_SetPrincipalPoint_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetPrincipalPoint"); return nullptr; } static PyObject * PyvtkWarpLens_GetPrincipalPoint(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPrincipalPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetPrincipalPoint() : op->vtkWarpLens::GetPrincipalPoint()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkWarpLens_SetK1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetK1"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetK1(temp0); } else { op->vtkWarpLens::SetK1(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetK1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetK1"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetK1() : op->vtkWarpLens::GetK1()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetK2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetK2"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetK2(temp0); } else { op->vtkWarpLens::SetK2(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetK2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetK2"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetK2() : op->vtkWarpLens::GetK2()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetP1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetP1"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetP1(temp0); } else { op->vtkWarpLens::SetP1(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetP1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetP1"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetP1() : op->vtkWarpLens::GetP1()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetP2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetP2"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetP2(temp0); } else { op->vtkWarpLens::SetP2(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetP2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetP2"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetP2() : op->vtkWarpLens::GetP2()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetFormatWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetFormatWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetFormatWidth(temp0); } else { op->vtkWarpLens::SetFormatWidth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetFormatWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetFormatWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetFormatWidth() : op->vtkWarpLens::GetFormatWidth()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetFormatHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetFormatHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetFormatHeight(temp0); } else { op->vtkWarpLens::SetFormatHeight(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetFormatHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetFormatHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetFormatHeight() : op->vtkWarpLens::GetFormatHeight()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetImageWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetImageWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetImageWidth(temp0); } else { op->vtkWarpLens::SetImageWidth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetImageWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetImageWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetImageWidth() : op->vtkWarpLens::GetImageWidth()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_SetImageHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetImageHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetImageHeight(temp0); } else { op->vtkWarpLens::SetImageHeight(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkWarpLens_GetImageHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetImageHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetImageHeight() : op->vtkWarpLens::GetImageHeight()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkWarpLens_FillInputPortInformation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FillInputPortInformation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkWarpLens *op = static_cast(vp); int temp0; vtkInformation *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkInformation")) { int tempr = (ap.IsBound() ? op->FillInputPortInformation(temp0, temp1) : op->vtkWarpLens::FillInputPortInformation(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkWarpLens_Methods[] = { {"IsTypeOf", PyvtkWarpLens_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", PyvtkWarpLens_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", PyvtkWarpLens_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkWarpLens\nC++: static vtkWarpLens *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkWarpLens_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkWarpLens\nC++: vtkWarpLens *NewInstance()\n\n"}, {"SetKappa", PyvtkWarpLens_SetKappa, METH_VARARGS, "V.SetKappa(float)\nC++: void SetKappa(double kappa)\n\nSpecify second order symmetric radial lens distortion parameter.\nThis is obsoleted by newer instance variables.\n"}, {"GetKappa", PyvtkWarpLens_GetKappa, METH_VARARGS, "V.GetKappa() -> float\nC++: double GetKappa()\n\nSpecify second order symmetric radial lens distortion parameter.\nThis is obsoleted by newer instance variables.\n"}, {"SetCenter", PyvtkWarpLens_SetCenter, METH_VARARGS, "V.SetCenter(float, float)\nC++: void SetCenter(double centerX, double centerY)\n\nSpecify the center of radial distortion in pixels. This is\nobsoleted by newer instance variables.\n"}, {"GetCenter", PyvtkWarpLens_GetCenter, METH_VARARGS, "V.GetCenter() -> (float, float)\nC++: double *GetCenter()\n\nSpecify the center of radial distortion in pixels. This is\nobsoleted by newer instance variables.\n"}, {"SetPrincipalPoint", PyvtkWarpLens_SetPrincipalPoint, METH_VARARGS, "V.SetPrincipalPoint(float, float)\nC++: void SetPrincipalPoint(double, double)\nV.SetPrincipalPoint((float, float))\nC++: void SetPrincipalPoint(double a[2])\n\n"}, {"GetPrincipalPoint", PyvtkWarpLens_GetPrincipalPoint, METH_VARARGS, "V.GetPrincipalPoint() -> (float, float)\nC++: double *GetPrincipalPoint()\n\nSpecify the calibrated principal point of the camera/lens\n"}, {"SetK1", PyvtkWarpLens_SetK1, METH_VARARGS, "V.SetK1(float)\nC++: virtual void SetK1(double _arg)\n\nSpecify the symmetric radial distortion parameters for the lens\n"}, {"GetK1", PyvtkWarpLens_GetK1, METH_VARARGS, "V.GetK1() -> float\nC++: virtual double GetK1()\n\nSpecify the symmetric radial distortion parameters for the lens\n"}, {"SetK2", PyvtkWarpLens_SetK2, METH_VARARGS, "V.SetK2(float)\nC++: virtual void SetK2(double _arg)\n\nSpecify the symmetric radial distortion parameters for the lens\n"}, {"GetK2", PyvtkWarpLens_GetK2, METH_VARARGS, "V.GetK2() -> float\nC++: virtual double GetK2()\n\nSpecify the symmetric radial distortion parameters for the lens\n"}, {"SetP1", PyvtkWarpLens_SetP1, METH_VARARGS, "V.SetP1(float)\nC++: virtual void SetP1(double _arg)\n\nSpecify the decentering distortion parameters for the lens\n"}, {"GetP1", PyvtkWarpLens_GetP1, METH_VARARGS, "V.GetP1() -> float\nC++: virtual double GetP1()\n\nSpecify the decentering distortion parameters for the lens\n"}, {"SetP2", PyvtkWarpLens_SetP2, METH_VARARGS, "V.SetP2(float)\nC++: virtual void SetP2(double _arg)\n\nSpecify the decentering distortion parameters for the lens\n"}, {"GetP2", PyvtkWarpLens_GetP2, METH_VARARGS, "V.GetP2() -> float\nC++: virtual double GetP2()\n\nSpecify the decentering distortion parameters for the lens\n"}, {"SetFormatWidth", PyvtkWarpLens_SetFormatWidth, METH_VARARGS, "V.SetFormatWidth(float)\nC++: virtual void SetFormatWidth(double _arg)\n\nSpecify the imager format width / height in mm\n"}, {"GetFormatWidth", PyvtkWarpLens_GetFormatWidth, METH_VARARGS, "V.GetFormatWidth() -> float\nC++: virtual double GetFormatWidth()\n\nSpecify the imager format width / height in mm\n"}, {"SetFormatHeight", PyvtkWarpLens_SetFormatHeight, METH_VARARGS, "V.SetFormatHeight(float)\nC++: virtual void SetFormatHeight(double _arg)\n\nSpecify the imager format width / height in mm\n"}, {"GetFormatHeight", PyvtkWarpLens_GetFormatHeight, METH_VARARGS, "V.GetFormatHeight() -> float\nC++: virtual double GetFormatHeight()\n\nSpecify the imager format width / height in mm\n"}, {"SetImageWidth", PyvtkWarpLens_SetImageWidth, METH_VARARGS, "V.SetImageWidth(int)\nC++: virtual void SetImageWidth(int _arg)\n\nSpecify the image width / height in pixels\n"}, {"GetImageWidth", PyvtkWarpLens_GetImageWidth, METH_VARARGS, "V.GetImageWidth() -> int\nC++: virtual int GetImageWidth()\n\nSpecify the image width / height in pixels\n"}, {"SetImageHeight", PyvtkWarpLens_SetImageHeight, METH_VARARGS, "V.SetImageHeight(int)\nC++: virtual void SetImageHeight(int _arg)\n\nSpecify the image width / height in pixels\n"}, {"GetImageHeight", PyvtkWarpLens_GetImageHeight, METH_VARARGS, "V.GetImageHeight() -> int\nC++: virtual int GetImageHeight()\n\nSpecify the image width / height in pixels\n"}, {"FillInputPortInformation", PyvtkWarpLens_FillInputPortInformation, METH_VARARGS, "V.FillInputPortInformation(int, vtkInformation) -> int\nC++: int FillInputPortInformation(int port, vtkInformation *info)\n override;\n\nFill the input port information objects for this algorithm. This\nis invoked by the first call to GetInputPortInformation for each\nport so subclasses can specify what they can handle.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkWarpLens_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersGeneralPython.vtkWarpLens", // 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 PyvtkWarpLens_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 *PyvtkWarpLens_StaticNew() { return vtkWarpLens::New(); } PyObject *PyvtkWarpLens_ClassNew() { PyVTKClass_Add( &PyvtkWarpLens_Type, PyvtkWarpLens_Methods, "vtkWarpLens", &PyvtkWarpLens_StaticNew); PyTypeObject *pytype = &PyvtkWarpLens_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 *)PyvtkPointSetAlgorithm_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkWarpLens( PyObject *dict) { PyObject *o; o = PyvtkWarpLens_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkWarpLens", o) != 0) { Py_DECREF(o); } }