// python wrapper for vtkVector // #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include "vtkPythonArgs.h" #include "vtkPythonOverload.h" #include "vtkConfigure.h" #include #include #include "vtkVariant.h" #include "vtkTuple.h" #include "vtkTuple.h" #include "vtkTuple.h" #include "vtkTuple.h" #include "vtkTuple.h" #include "vtkTuple.h" #include "vtkVector.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkVector(PyObject *); } static const char *PyvtkVector_IdLi4EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[float64,4]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const double &scalar)\n" "explicit vtkVector(const double *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IdLi4EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi4EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi4EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi4EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IdLi4EE"); } } return result; } static PyObject * PyvtkVector_IdLi4EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi4EE")) { double tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IdLi4EE_Methods[] = { {"SquaredNorm", PyvtkVector_IdLi4EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> float\nC++: double SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IdLi4EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IdLi4EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IdLi4EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IdLi4EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IdLi4EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IdLi4EE) -> float\nC++: double Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IdLi4EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; (*op)[3] = 0; result = PyVTKSpecialObject_New("vtkVector_IdLi4EE", op); } return result; } static PyObject * PyvtkVector_IdLi4EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi4EE", op); } return result; } static PyObject * PyvtkVector_IdLi4EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 4; double temp0[4]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi4EE", op); } return result; } static PyObject * PyvtkVector_IdLi4EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi4EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi4EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IdLi4EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IdLi4EE_vtkVector_s2, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector_IdLi4EE_vtkVector_s3, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector_IdLi4EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IdLi4EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IdLi4EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IdLi4EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IdLi4EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IdLi4EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IdLi4EE_vtkVector(nullptr, args); } static void PyvtkVector_IdLi4EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IdLi4EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IdLi4EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IdLi4EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IdLi4EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IdLi4EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IdLi4EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IdLi4EE_New, // tp_new PyObject_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 void *PyvtkVector_IdLi4EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IdLi4EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IdLi4EE_TypeNew extern "C" { PyObject *PyvtkTuple_IdLi4EE_TypeNew(); } #define DECLARED_PyvtkTuple_IdLi4EE_TypeNew #endif PyObject *PyvtkVector_IdLi4EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IdLi4EE_Type, PyvtkVector_IdLi4EE_Methods, PyvtkVector_IdLi4EE_vtkVector_Methods, &PyvtkVector_IdLi4EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IdLi4EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IdLi4EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IfLi4EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[float32,4]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const float &scalar)\n" "explicit vtkVector(const float *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IfLi4EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi4EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi4EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi4EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IfLi4EE"); } } return result; } static PyObject * PyvtkVector_IfLi4EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi4EE")) { float tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IfLi4EE_Methods[] = { {"SquaredNorm", PyvtkVector_IfLi4EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> float\nC++: float SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IfLi4EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IfLi4EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IfLi4EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IfLi4EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IfLi4EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IfLi4EE) -> float\nC++: float Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IfLi4EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; (*op)[3] = 0; result = PyVTKSpecialObject_New("vtkVector_IfLi4EE", op); } return result; } static PyObject * PyvtkVector_IfLi4EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi4EE", op); } return result; } static PyObject * PyvtkVector_IfLi4EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 4; float temp0[4]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi4EE", op); } return result; } static PyObject * PyvtkVector_IfLi4EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi4EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi4EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IfLi4EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IfLi4EE_vtkVector_s2, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector_IfLi4EE_vtkVector_s3, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector_IfLi4EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IfLi4EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IfLi4EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IfLi4EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IfLi4EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IfLi4EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IfLi4EE_vtkVector(nullptr, args); } static void PyvtkVector_IfLi4EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IfLi4EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IfLi4EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IfLi4EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IfLi4EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IfLi4EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IfLi4EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IfLi4EE_New, // tp_new PyObject_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 void *PyvtkVector_IfLi4EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IfLi4EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IfLi4EE_TypeNew extern "C" { PyObject *PyvtkTuple_IfLi4EE_TypeNew(); } #define DECLARED_PyvtkTuple_IfLi4EE_TypeNew #endif PyObject *PyvtkVector_IfLi4EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IfLi4EE_Type, PyvtkVector_IfLi4EE_Methods, PyvtkVector_IfLi4EE_vtkVector_Methods, &PyvtkVector_IfLi4EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IfLi4EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IfLi4EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IiLi4EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[int32,4]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const int &scalar)\n" "explicit vtkVector(const int *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IiLi4EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi4EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi4EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi4EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IiLi4EE"); } } return result; } static PyObject * PyvtkVector_IiLi4EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi4EE")) { int tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IiLi4EE_Methods[] = { {"SquaredNorm", PyvtkVector_IiLi4EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> int\nC++: int SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IiLi4EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IiLi4EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IiLi4EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IiLi4EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IiLi4EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IiLi4EE) -> int\nC++: int Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IiLi4EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; (*op)[3] = 0; result = PyVTKSpecialObject_New("vtkVector_IiLi4EE", op); } return result; } static PyObject * PyvtkVector_IiLi4EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi4EE", op); } return result; } static PyObject * PyvtkVector_IiLi4EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 4; int temp0[4]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi4EE", op); } return result; } static PyObject * PyvtkVector_IiLi4EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi4EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi4EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IiLi4EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IiLi4EE_vtkVector_s2, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector_IiLi4EE_vtkVector_s3, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector_IiLi4EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IiLi4EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IiLi4EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IiLi4EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IiLi4EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IiLi4EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IiLi4EE_vtkVector(nullptr, args); } static void PyvtkVector_IiLi4EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IiLi4EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IiLi4EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IiLi4EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IiLi4EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IiLi4EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IiLi4EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IiLi4EE_New, // tp_new PyObject_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 void *PyvtkVector_IiLi4EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IiLi4EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IiLi4EE_TypeNew extern "C" { PyObject *PyvtkTuple_IiLi4EE_TypeNew(); } #define DECLARED_PyvtkTuple_IiLi4EE_TypeNew #endif PyObject *PyvtkVector_IiLi4EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IiLi4EE_Type, PyvtkVector_IiLi4EE_Methods, PyvtkVector_IiLi4EE_vtkVector_Methods, &PyvtkVector_IiLi4EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IiLi4EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IiLi4EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IdLi2EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[float64,2]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const double &scalar)\n" "explicit vtkVector(const double *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IdLi2EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi2EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi2EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi2EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IdLi2EE"); } } return result; } static PyObject * PyvtkVector_IdLi2EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi2EE")) { double tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IdLi2EE_Methods[] = { {"SquaredNorm", PyvtkVector_IdLi2EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> float\nC++: double SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IdLi2EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IdLi2EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IdLi2EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IdLi2EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IdLi2EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IdLi2EE) -> float\nC++: double Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IdLi2EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector_IdLi2EE", op); } return result; } static PyObject * PyvtkVector_IdLi2EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi2EE", op); } return result; } static PyObject * PyvtkVector_IdLi2EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 2; double temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi2EE", op); } return result; } static PyObject * PyvtkVector_IdLi2EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi2EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi2EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IdLi2EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IdLi2EE_vtkVector_s2, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector_IdLi2EE_vtkVector_s3, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector_IdLi2EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IdLi2EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IdLi2EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IdLi2EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IdLi2EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IdLi2EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IdLi2EE_vtkVector(nullptr, args); } static void PyvtkVector_IdLi2EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IdLi2EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IdLi2EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IdLi2EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IdLi2EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IdLi2EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IdLi2EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IdLi2EE_New, // tp_new PyObject_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 void *PyvtkVector_IdLi2EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IdLi2EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IdLi2EE_TypeNew extern "C" { PyObject *PyvtkTuple_IdLi2EE_TypeNew(); } #define DECLARED_PyvtkTuple_IdLi2EE_TypeNew #endif PyObject *PyvtkVector_IdLi2EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IdLi2EE_Type, PyvtkVector_IdLi2EE_Methods, PyvtkVector_IdLi2EE_vtkVector_Methods, &PyvtkVector_IdLi2EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IdLi2EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IdLi2EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IfLi2EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[float32,2]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const float &scalar)\n" "explicit vtkVector(const float *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IfLi2EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi2EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi2EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi2EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IfLi2EE"); } } return result; } static PyObject * PyvtkVector_IfLi2EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi2EE")) { float tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IfLi2EE_Methods[] = { {"SquaredNorm", PyvtkVector_IfLi2EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> float\nC++: float SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IfLi2EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IfLi2EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IfLi2EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IfLi2EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IfLi2EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IfLi2EE) -> float\nC++: float Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IfLi2EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector_IfLi2EE", op); } return result; } static PyObject * PyvtkVector_IfLi2EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi2EE", op); } return result; } static PyObject * PyvtkVector_IfLi2EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 2; float temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi2EE", op); } return result; } static PyObject * PyvtkVector_IfLi2EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi2EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi2EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IfLi2EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IfLi2EE_vtkVector_s2, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector_IfLi2EE_vtkVector_s3, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector_IfLi2EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IfLi2EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IfLi2EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IfLi2EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IfLi2EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IfLi2EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IfLi2EE_vtkVector(nullptr, args); } static void PyvtkVector_IfLi2EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IfLi2EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IfLi2EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IfLi2EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IfLi2EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IfLi2EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IfLi2EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IfLi2EE_New, // tp_new PyObject_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 void *PyvtkVector_IfLi2EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IfLi2EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IfLi2EE_TypeNew extern "C" { PyObject *PyvtkTuple_IfLi2EE_TypeNew(); } #define DECLARED_PyvtkTuple_IfLi2EE_TypeNew #endif PyObject *PyvtkVector_IfLi2EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IfLi2EE_Type, PyvtkVector_IfLi2EE_Methods, PyvtkVector_IfLi2EE_vtkVector_Methods, &PyvtkVector_IfLi2EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IfLi2EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IfLi2EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IiLi2EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[int32,2]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const int &scalar)\n" "explicit vtkVector(const int *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IiLi2EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi2EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi2EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi2EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IiLi2EE"); } } return result; } static PyObject * PyvtkVector_IiLi2EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi2EE")) { int tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IiLi2EE_Methods[] = { {"SquaredNorm", PyvtkVector_IiLi2EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> int\nC++: int SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IiLi2EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IiLi2EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IiLi2EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IiLi2EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IiLi2EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IiLi2EE) -> int\nC++: int Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IiLi2EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector_IiLi2EE", op); } return result; } static PyObject * PyvtkVector_IiLi2EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi2EE", op); } return result; } static PyObject * PyvtkVector_IiLi2EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 2; int temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi2EE", op); } return result; } static PyObject * PyvtkVector_IiLi2EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi2EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi2EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IiLi2EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IiLi2EE_vtkVector_s2, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector_IiLi2EE_vtkVector_s3, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector_IiLi2EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IiLi2EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IiLi2EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IiLi2EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IiLi2EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IiLi2EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IiLi2EE_vtkVector(nullptr, args); } static void PyvtkVector_IiLi2EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IiLi2EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IiLi2EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IiLi2EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IiLi2EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IiLi2EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IiLi2EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IiLi2EE_New, // tp_new PyObject_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 void *PyvtkVector_IiLi2EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IiLi2EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IiLi2EE_TypeNew extern "C" { PyObject *PyvtkTuple_IiLi2EE_TypeNew(); } #define DECLARED_PyvtkTuple_IiLi2EE_TypeNew #endif PyObject *PyvtkVector_IiLi2EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IiLi2EE_Type, PyvtkVector_IiLi2EE_Methods, PyvtkVector_IiLi2EE_vtkVector_Methods, &PyvtkVector_IiLi2EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IiLi2EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IiLi2EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IdLi3EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[float64,3]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const double &scalar)\n" "explicit vtkVector(const double *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IdLi3EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi3EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi3EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IdLi3EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IdLi3EE"); } } return result; } static PyObject * PyvtkVector_IdLi3EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi3EE")) { double tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IdLi3EE_Methods[] = { {"SquaredNorm", PyvtkVector_IdLi3EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> float\nC++: double SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IdLi3EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IdLi3EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IdLi3EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IdLi3EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IdLi3EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IdLi3EE) -> float\nC++: double Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IdLi3EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector_IdLi3EE", op); } return result; } static PyObject * PyvtkVector_IdLi3EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi3EE", op); } return result; } static PyObject * PyvtkVector_IdLi3EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi3EE", op); } return result; } static PyObject * PyvtkVector_IdLi3EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi3EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IdLi3EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IdLi3EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IdLi3EE_vtkVector_s2, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector_IdLi3EE_vtkVector_s3, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector_IdLi3EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IdLi3EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IdLi3EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IdLi3EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IdLi3EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IdLi3EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IdLi3EE_vtkVector(nullptr, args); } static void PyvtkVector_IdLi3EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IdLi3EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IdLi3EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IdLi3EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IdLi3EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IdLi3EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IdLi3EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IdLi3EE_New, // tp_new PyObject_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 void *PyvtkVector_IdLi3EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IdLi3EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IdLi3EE_TypeNew extern "C" { PyObject *PyvtkTuple_IdLi3EE_TypeNew(); } #define DECLARED_PyvtkTuple_IdLi3EE_TypeNew #endif PyObject *PyvtkVector_IdLi3EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IdLi3EE_Type, PyvtkVector_IdLi3EE_Methods, PyvtkVector_IdLi3EE_vtkVector_Methods, &PyvtkVector_IdLi3EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IdLi3EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IdLi3EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IfLi3EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[float32,3]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const float &scalar)\n" "explicit vtkVector(const float *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IfLi3EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi3EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi3EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IfLi3EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IfLi3EE"); } } return result; } static PyObject * PyvtkVector_IfLi3EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi3EE")) { float tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IfLi3EE_Methods[] = { {"SquaredNorm", PyvtkVector_IfLi3EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> float\nC++: float SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IfLi3EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IfLi3EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IfLi3EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IfLi3EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IfLi3EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IfLi3EE) -> float\nC++: float Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IfLi3EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector_IfLi3EE", op); } return result; } static PyObject * PyvtkVector_IfLi3EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi3EE", op); } return result; } static PyObject * PyvtkVector_IfLi3EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 3; float temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi3EE", op); } return result; } static PyObject * PyvtkVector_IfLi3EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi3EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IfLi3EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IfLi3EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IfLi3EE_vtkVector_s2, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector_IfLi3EE_vtkVector_s3, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector_IfLi3EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IfLi3EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IfLi3EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IfLi3EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IfLi3EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IfLi3EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IfLi3EE_vtkVector(nullptr, args); } static void PyvtkVector_IfLi3EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IfLi3EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IfLi3EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IfLi3EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IfLi3EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IfLi3EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IfLi3EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IfLi3EE_New, // tp_new PyObject_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 void *PyvtkVector_IfLi3EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IfLi3EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IfLi3EE_TypeNew extern "C" { PyObject *PyvtkTuple_IfLi3EE_TypeNew(); } #define DECLARED_PyvtkTuple_IfLi3EE_TypeNew #endif PyObject *PyvtkVector_IfLi3EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IfLi3EE_Type, PyvtkVector_IfLi3EE_Methods, PyvtkVector_IfLi3EE_vtkVector_Methods, &PyvtkVector_IfLi3EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IfLi3EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IfLi3EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_IiLi3EE_Doc = "vtkVector - templated base type for storage of vectors.\n\n" "Superclass: vtkTuple[int32,3]\n\n" "This class is a templated data type for storing and manipulating\n" "fixed size vectors, which can be used to represent two and three\n" "dimensional points. The memory layout is a contiguous array of the\n" "specified type, such that a float[2] can be cast to a vtkVector2f and\n" "manipulated. Also a float[6] could be cast and used as a\n" "vtkVector2f[3].\n\n" "vtkVector()\n" "explicit vtkVector(const int &scalar)\n" "explicit vtkVector(const int *init)\n" "vtkVector(const &vtkVector)\n"; static PyObject * PyvtkVector_IiLi3EE_SquaredNorm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SquaredNorm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = op->SquaredNorm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi3EE_Norm(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Norm"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Norm(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi3EE_Normalize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalize"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = op->Normalize(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVector_IiLi3EE_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector_IiLi3EE"); } } return result; } static PyObject * PyvtkVector_IiLi3EE_Dot(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Dot"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector *op = static_cast *>(vp); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi3EE")) { int tempr = op->Dot(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IiLi3EE_Methods[] = { {"SquaredNorm", PyvtkVector_IiLi3EE_SquaredNorm, METH_VARARGS, "V.SquaredNorm() -> int\nC++: int SquaredNorm()\n\nGet the squared norm of the vector.\n"}, {"Norm", PyvtkVector_IiLi3EE_Norm, METH_VARARGS, "V.Norm() -> float\nC++: double Norm()\n\nGet the norm of the vector, i.e. its length.\n"}, {"Normalize", PyvtkVector_IiLi3EE_Normalize, METH_VARARGS, "V.Normalize() -> float\nC++: double Normalize()\n\nNormalize the vector in place.\n\\return The length of the vector.\n"}, {"Normalized", PyvtkVector_IiLi3EE_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector_IiLi3EE\nC++: vtkVector Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Dot", PyvtkVector_IiLi3EE_Dot, METH_VARARGS, "V.Dot(vtkVector_IiLi3EE) -> int\nC++: int Dot(const vtkVector &other)\n\nThe dot product of this and the supplied vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IiLi3EE_vtkVector_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector *op = new vtkVector(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector_IiLi3EE", op); } return result; } static PyObject * PyvtkVector_IiLi3EE_vtkVector_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi3EE", op); } return result; } static PyObject * PyvtkVector_IiLi3EE_vtkVector_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); const int size0 = 3; int temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector *op = new vtkVector(temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi3EE", op); } return result; } static PyObject * PyvtkVector_IiLi3EE_vtkVector_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi3EE")) { vtkVector *op = new vtkVector(*temp0); result = PyVTKSpecialObject_New("vtkVector_IiLi3EE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector_IiLi3EE_vtkVector_Methods[] = { {nullptr, PyvtkVector_IiLi3EE_vtkVector_s2, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector_IiLi3EE_vtkVector_s3, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector_IiLi3EE_vtkVector_s4, METH_VARARGS, "@W vtkVector_IiLi3EE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector_IiLi3EE_vtkVector(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector_IiLi3EE_vtkVector_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector_IiLi3EE_vtkVector_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector"); return nullptr; } static PyObject * PyvtkVector_IiLi3EE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector_IiLi3EE_vtkVector(nullptr, args); } static void PyvtkVector_IiLi3EE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector_IiLi3EE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector_IiLi3EE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector_IiLi3EE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector_IiLi3EE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector_IiLi3EE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector_IiLi3EE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector_IiLi3EE_New, // tp_new PyObject_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 void *PyvtkVector_IiLi3EE_CCopy(const void *obj) { if (obj) { return new vtkVector(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector_IiLi3EE_TypeNew(); } #ifndef DECLARED_PyvtkTuple_IiLi3EE_TypeNew extern "C" { PyObject *PyvtkTuple_IiLi3EE_TypeNew(); } #define DECLARED_PyvtkTuple_IiLi3EE_TypeNew #endif PyObject *PyvtkVector_IiLi3EE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector_IiLi3EE_Type, PyvtkVector_IiLi3EE_Methods, PyvtkVector_IiLi3EE_vtkVector_Methods, &PyvtkVector_IiLi3EE_CCopy); PyTypeObject *pytype = &PyvtkVector_IiLi3EE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkTuple_IiLi3EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector_Doc = "vtkVector3 - templated base type for storage of 3D vectors.\n\n" "Superclass: vtkTuple[T,Size]\n\n" "\nProvided Types:\n\n" " vtkVector[float64,4] => vtkVector\n" " vtkVector[float32,4] => vtkVector\n" " vtkVector[int32,4] => vtkVector\n" " vtkVector[float64,2] => vtkVector\n" " vtkVector[float32,2] => vtkVector\n" " vtkVector[int32,2] => vtkVector\n" " vtkVector[float64,3] => vtkVector\n" " vtkVector[float32,3] => vtkVector\n" " vtkVector[int32,3] => vtkVector\n" ; PyObject *PyvtkVector_TemplateNew() { PyObject *o; PyObject *temp = PyVTKTemplate_New("vtkCommonDataModelPython.vtkVector", PyvtkVector_Doc); o = PyvtkVector_IdLi4EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IfLi4EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IiLi4EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IdLi2EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IfLi2EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IiLi2EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IdLi3EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IfLi3EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector_IiLi3EE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } return temp; } static const char *PyvtkVector2_IdE_Doc = "vtkVector2 - no description provided.\n\n" "Superclass: vtkVector[float64,2]\n\n" "vtkVector2()\n" "explicit vtkVector2(const double &scalar)\n" "explicit vtkVector2(const double *init)\n" "vtkVector2(const double &x, const double &y)\n" "vtkVector2(const &vtkVector2)\n"; static PyObject * PyvtkVector2_IdE_Set(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Set"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); double temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { op->Set(temp0, temp1); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IdE_SetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetX(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IdE_GetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const double *tempr = &op->GetX(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector2_IdE_SetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetY(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IdE_GetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const double *tempr = &op->GetY(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyMethodDef PyvtkVector2_IdE_Methods[] = { {"Set", PyvtkVector2_IdE_Set, METH_VARARGS, "V.Set(float, float)\nC++: void Set(const double &x, const double &y)\n\nSet the x and y components of the vector.\n"}, {"SetX", PyvtkVector2_IdE_SetX, METH_VARARGS, "V.SetX(float)\nC++: void SetX(const double &x)\n\nSet the x component of the vector, i.e. element 0.\n"}, {"GetX", PyvtkVector2_IdE_GetX, METH_VARARGS, "V.GetX() -> float\nC++: const double &GetX()\n\nGet the x component of the vector, i.e. element 0.\n"}, {"SetY", PyvtkVector2_IdE_SetY, METH_VARARGS, "V.SetY(float)\nC++: void SetY(const double &y)\n\nSet the y component of the vector, i.e. element 1.\n"}, {"GetY", PyvtkVector2_IdE_GetY, METH_VARARGS, "V.GetY() -> float\nC++: const double &GetY()\n\nGet the y component of the vector, i.e. element 1.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2_IdE_vtkVector2_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector2 *op = new vtkVector2(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector2_IdE", op); } return result; } static PyObject * PyvtkVector2_IdE_vtkVector2_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector2 *op = new vtkVector2(temp0); result = PyVTKSpecialObject_New("vtkVector2_IdE", op); } return result; } static PyObject * PyvtkVector2_IdE_vtkVector2_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); const int size0 = 2; double temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector2 *op = new vtkVector2(temp0); result = PyVTKSpecialObject_New("vtkVector2_IdE", op); } return result; } static PyObject * PyvtkVector2_IdE_vtkVector2_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); double temp0; double temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkVector2 *op = new vtkVector2(temp0, temp1); result = PyVTKSpecialObject_New("vtkVector2_IdE", op); } return result; } static PyObject * PyvtkVector2_IdE_vtkVector2_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); vtkVector2 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2_IdE")) { vtkVector2 *op = new vtkVector2(*temp0); result = PyVTKSpecialObject_New("vtkVector2_IdE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector2_IdE_vtkVector2_Methods[] = { {nullptr, PyvtkVector2_IdE_vtkVector2_s2, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector2_IdE_vtkVector2_s3, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector2_IdE_vtkVector2_s5, METH_VARARGS, "@W vtkVector2_IdE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2_IdE_vtkVector2(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector2_IdE_vtkVector2_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector2_IdE_vtkVector2_s1(self, args); case 2: return PyvtkVector2_IdE_vtkVector2_s4(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector2"); return nullptr; } static PyObject * PyvtkVector2_IdE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector2_IdE_vtkVector2(nullptr, args); } static void PyvtkVector2_IdE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static int PyvtkVector2_IdE_CheckExact(PyObject *ob); static PyObject *PyvtkVector2_IdE_RichCompare( PyObject *o1, PyObject *o2, int opid) { PyObject *n1 = nullptr; PyObject *n2 = nullptr; const vtkVector2 *so1 = nullptr; const vtkVector2 *so2 = nullptr; int result = -1; if (PyvtkVector2_IdE_CheckExact(o1)) { PyVTKSpecialObject *s1 = (PyVTKSpecialObject *)o1; so1 = static_cast *>(s1->vtk_ptr); } else { so1 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o1, "vtkVector2_IdE", &n1)); if (so1 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } if (PyvtkVector2_IdE_CheckExact(o2)) { PyVTKSpecialObject *s2 = (PyVTKSpecialObject *)o2; so2 = static_cast *>(s2->vtk_ptr); } else { so2 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o2, "vtkVector2_IdE", &n2)); if (so2 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } switch (opid) { case Py_LT: result = ((*so1) < (*so2)); break; case Py_LE: break; case Py_EQ: break; case Py_NE: break; case Py_GT: break; case Py_GE: break; } if (n1) { Py_DECREF(n1); } else if (n2) { Py_DECREF(n2); } if (result == -1) { PyErr_SetString(PyExc_TypeError, "operation not available"); return nullptr; } // avoids aliasing issues with Py_INCREF(Py_False) return PyBool_FromLong((long)result); } static Py_hash_t PyvtkVector2_IdE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector2_IdE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector2_IdE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector2_IdE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector2_IdE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector2_IdE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear PyvtkVector2_IdE_RichCompare, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector2_IdE_New, // tp_new PyObject_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 int PyvtkVector2_IdE_CheckExact(PyObject *ob) { return (Py_TYPE(ob) == &PyvtkVector2_IdE_Type); } static void *PyvtkVector2_IdE_CCopy(const void *obj) { if (obj) { return new vtkVector2(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector2_IdE_TypeNew(); } #ifndef DECLARED_PyvtkVector_IdLi2EE_TypeNew extern "C" { PyObject *PyvtkVector_IdLi2EE_TypeNew(); } #define DECLARED_PyvtkVector_IdLi2EE_TypeNew #endif PyObject *PyvtkVector2_IdE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector2_IdE_Type, PyvtkVector2_IdE_Methods, PyvtkVector2_IdE_vtkVector2_Methods, &PyvtkVector2_IdE_CCopy); PyTypeObject *pytype = &PyvtkVector2_IdE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector_IdLi2EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector2_IfE_Doc = "vtkVector2 - no description provided.\n\n" "Superclass: vtkVector[float32,2]\n\n" "vtkVector2()\n" "explicit vtkVector2(const float &scalar)\n" "explicit vtkVector2(const float *init)\n" "vtkVector2(const float &x, const float &y)\n" "vtkVector2(const &vtkVector2)\n"; static PyObject * PyvtkVector2_IfE_Set(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Set"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); float temp0; float temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { op->Set(temp0, temp1); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IfE_SetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetX(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IfE_GetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const float *tempr = &op->GetX(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector2_IfE_SetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetY(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IfE_GetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const float *tempr = &op->GetY(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyMethodDef PyvtkVector2_IfE_Methods[] = { {"Set", PyvtkVector2_IfE_Set, METH_VARARGS, "V.Set(float, float)\nC++: void Set(const float &x, const float &y)\n\nSet the x and y components of the vector.\n"}, {"SetX", PyvtkVector2_IfE_SetX, METH_VARARGS, "V.SetX(float)\nC++: void SetX(const float &x)\n\nSet the x component of the vector, i.e. element 0.\n"}, {"GetX", PyvtkVector2_IfE_GetX, METH_VARARGS, "V.GetX() -> float\nC++: const float &GetX()\n\nGet the x component of the vector, i.e. element 0.\n"}, {"SetY", PyvtkVector2_IfE_SetY, METH_VARARGS, "V.SetY(float)\nC++: void SetY(const float &y)\n\nSet the y component of the vector, i.e. element 1.\n"}, {"GetY", PyvtkVector2_IfE_GetY, METH_VARARGS, "V.GetY() -> float\nC++: const float &GetY()\n\nGet the y component of the vector, i.e. element 1.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2_IfE_vtkVector2_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector2 *op = new vtkVector2(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector2_IfE", op); } return result; } static PyObject * PyvtkVector2_IfE_vtkVector2_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector2 *op = new vtkVector2(temp0); result = PyVTKSpecialObject_New("vtkVector2_IfE", op); } return result; } static PyObject * PyvtkVector2_IfE_vtkVector2_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); const int size0 = 2; float temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector2 *op = new vtkVector2(temp0); result = PyVTKSpecialObject_New("vtkVector2_IfE", op); } return result; } static PyObject * PyvtkVector2_IfE_vtkVector2_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); float temp0; float temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkVector2 *op = new vtkVector2(temp0, temp1); result = PyVTKSpecialObject_New("vtkVector2_IfE", op); } return result; } static PyObject * PyvtkVector2_IfE_vtkVector2_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); vtkVector2 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2_IfE")) { vtkVector2 *op = new vtkVector2(*temp0); result = PyVTKSpecialObject_New("vtkVector2_IfE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector2_IfE_vtkVector2_Methods[] = { {nullptr, PyvtkVector2_IfE_vtkVector2_s2, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector2_IfE_vtkVector2_s3, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector2_IfE_vtkVector2_s5, METH_VARARGS, "@W vtkVector2_IfE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2_IfE_vtkVector2(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector2_IfE_vtkVector2_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector2_IfE_vtkVector2_s1(self, args); case 2: return PyvtkVector2_IfE_vtkVector2_s4(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector2"); return nullptr; } static PyObject * PyvtkVector2_IfE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector2_IfE_vtkVector2(nullptr, args); } static void PyvtkVector2_IfE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static int PyvtkVector2_IfE_CheckExact(PyObject *ob); static PyObject *PyvtkVector2_IfE_RichCompare( PyObject *o1, PyObject *o2, int opid) { PyObject *n1 = nullptr; PyObject *n2 = nullptr; const vtkVector2 *so1 = nullptr; const vtkVector2 *so2 = nullptr; int result = -1; if (PyvtkVector2_IfE_CheckExact(o1)) { PyVTKSpecialObject *s1 = (PyVTKSpecialObject *)o1; so1 = static_cast *>(s1->vtk_ptr); } else { so1 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o1, "vtkVector2_IfE", &n1)); if (so1 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } if (PyvtkVector2_IfE_CheckExact(o2)) { PyVTKSpecialObject *s2 = (PyVTKSpecialObject *)o2; so2 = static_cast *>(s2->vtk_ptr); } else { so2 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o2, "vtkVector2_IfE", &n2)); if (so2 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } switch (opid) { case Py_LT: result = ((*so1) < (*so2)); break; case Py_LE: break; case Py_EQ: break; case Py_NE: break; case Py_GT: break; case Py_GE: break; } if (n1) { Py_DECREF(n1); } else if (n2) { Py_DECREF(n2); } if (result == -1) { PyErr_SetString(PyExc_TypeError, "operation not available"); return nullptr; } // avoids aliasing issues with Py_INCREF(Py_False) return PyBool_FromLong((long)result); } static Py_hash_t PyvtkVector2_IfE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector2_IfE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector2_IfE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector2_IfE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector2_IfE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector2_IfE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear PyvtkVector2_IfE_RichCompare, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector2_IfE_New, // tp_new PyObject_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 int PyvtkVector2_IfE_CheckExact(PyObject *ob) { return (Py_TYPE(ob) == &PyvtkVector2_IfE_Type); } static void *PyvtkVector2_IfE_CCopy(const void *obj) { if (obj) { return new vtkVector2(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector2_IfE_TypeNew(); } #ifndef DECLARED_PyvtkVector_IfLi2EE_TypeNew extern "C" { PyObject *PyvtkVector_IfLi2EE_TypeNew(); } #define DECLARED_PyvtkVector_IfLi2EE_TypeNew #endif PyObject *PyvtkVector2_IfE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector2_IfE_Type, PyvtkVector2_IfE_Methods, PyvtkVector2_IfE_vtkVector2_Methods, &PyvtkVector2_IfE_CCopy); PyTypeObject *pytype = &PyvtkVector2_IfE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector_IfLi2EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector2_IiE_Doc = "vtkVector2 - no description provided.\n\n" "Superclass: vtkVector[int32,2]\n\n" "vtkVector2()\n" "explicit vtkVector2(const int &scalar)\n" "explicit vtkVector2(const int *init)\n" "vtkVector2(const int &x, const int &y)\n" "vtkVector2(const &vtkVector2)\n"; static PyObject * PyvtkVector2_IiE_Set(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Set"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { op->Set(temp0, temp1); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IiE_SetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetX(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IiE_GetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const int *tempr = &op->GetX(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector2_IiE_SetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetY(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector2_IiE_GetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const int *tempr = &op->GetY(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyMethodDef PyvtkVector2_IiE_Methods[] = { {"Set", PyvtkVector2_IiE_Set, METH_VARARGS, "V.Set(int, int)\nC++: void Set(const int &x, const int &y)\n\nSet the x and y components of the vector.\n"}, {"SetX", PyvtkVector2_IiE_SetX, METH_VARARGS, "V.SetX(int)\nC++: void SetX(const int &x)\n\nSet the x component of the vector, i.e. element 0.\n"}, {"GetX", PyvtkVector2_IiE_GetX, METH_VARARGS, "V.GetX() -> int\nC++: const int &GetX()\n\nGet the x component of the vector, i.e. element 0.\n"}, {"SetY", PyvtkVector2_IiE_SetY, METH_VARARGS, "V.SetY(int)\nC++: void SetY(const int &y)\n\nSet the y component of the vector, i.e. element 1.\n"}, {"GetY", PyvtkVector2_IiE_GetY, METH_VARARGS, "V.GetY() -> int\nC++: const int &GetY()\n\nGet the y component of the vector, i.e. element 1.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2_IiE_vtkVector2_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector2 *op = new vtkVector2(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector2_IiE", op); } return result; } static PyObject * PyvtkVector2_IiE_vtkVector2_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector2 *op = new vtkVector2(temp0); result = PyVTKSpecialObject_New("vtkVector2_IiE", op); } return result; } static PyObject * PyvtkVector2_IiE_vtkVector2_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); const int size0 = 2; int temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector2 *op = new vtkVector2(temp0); result = PyVTKSpecialObject_New("vtkVector2_IiE", op); } return result; } static PyObject * PyvtkVector2_IiE_vtkVector2_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); int temp0; int temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkVector2 *op = new vtkVector2(temp0, temp1); result = PyVTKSpecialObject_New("vtkVector2_IiE", op); } return result; } static PyObject * PyvtkVector2_IiE_vtkVector2_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2"); vtkVector2 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2_IiE")) { vtkVector2 *op = new vtkVector2(*temp0); result = PyVTKSpecialObject_New("vtkVector2_IiE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector2_IiE_vtkVector2_Methods[] = { {nullptr, PyvtkVector2_IiE_vtkVector2_s2, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector2_IiE_vtkVector2_s3, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector2_IiE_vtkVector2_s5, METH_VARARGS, "@W vtkVector2_IiE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2_IiE_vtkVector2(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector2_IiE_vtkVector2_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector2_IiE_vtkVector2_s1(self, args); case 2: return PyvtkVector2_IiE_vtkVector2_s4(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector2"); return nullptr; } static PyObject * PyvtkVector2_IiE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector2_IiE_vtkVector2(nullptr, args); } static void PyvtkVector2_IiE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static int PyvtkVector2_IiE_CheckExact(PyObject *ob); static PyObject *PyvtkVector2_IiE_RichCompare( PyObject *o1, PyObject *o2, int opid) { PyObject *n1 = nullptr; PyObject *n2 = nullptr; const vtkVector2 *so1 = nullptr; const vtkVector2 *so2 = nullptr; int result = -1; if (PyvtkVector2_IiE_CheckExact(o1)) { PyVTKSpecialObject *s1 = (PyVTKSpecialObject *)o1; so1 = static_cast *>(s1->vtk_ptr); } else { so1 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o1, "vtkVector2_IiE", &n1)); if (so1 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } if (PyvtkVector2_IiE_CheckExact(o2)) { PyVTKSpecialObject *s2 = (PyVTKSpecialObject *)o2; so2 = static_cast *>(s2->vtk_ptr); } else { so2 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o2, "vtkVector2_IiE", &n2)); if (so2 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } switch (opid) { case Py_LT: result = ((*so1) < (*so2)); break; case Py_LE: break; case Py_EQ: break; case Py_NE: break; case Py_GT: break; case Py_GE: break; } if (n1) { Py_DECREF(n1); } else if (n2) { Py_DECREF(n2); } if (result == -1) { PyErr_SetString(PyExc_TypeError, "operation not available"); return nullptr; } // avoids aliasing issues with Py_INCREF(Py_False) return PyBool_FromLong((long)result); } static Py_hash_t PyvtkVector2_IiE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector2_IiE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector2_IiE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector2_IiE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector2_IiE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector2_IiE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear PyvtkVector2_IiE_RichCompare, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector2_IiE_New, // tp_new PyObject_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 int PyvtkVector2_IiE_CheckExact(PyObject *ob) { return (Py_TYPE(ob) == &PyvtkVector2_IiE_Type); } static void *PyvtkVector2_IiE_CCopy(const void *obj) { if (obj) { return new vtkVector2(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector2_IiE_TypeNew(); } #ifndef DECLARED_PyvtkVector_IiLi2EE_TypeNew extern "C" { PyObject *PyvtkVector_IiLi2EE_TypeNew(); } #define DECLARED_PyvtkVector_IiLi2EE_TypeNew #endif PyObject *PyvtkVector2_IiE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector2_IiE_Type, PyvtkVector2_IiE_Methods, PyvtkVector2_IiE_vtkVector2_Methods, &PyvtkVector2_IiE_CCopy); PyTypeObject *pytype = &PyvtkVector2_IiE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector_IiLi2EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector2_Doc = "vtkVector2 - no description provided.\n\n" "Superclass: vtkVector[T,2]\n\n" "\nProvided Types:\n\n" " vtkVector2[float64] => vtkVector2\n" " vtkVector2[float32] => vtkVector2\n" " vtkVector2[int32] => vtkVector2\n" ; PyObject *PyvtkVector2_TemplateNew() { PyObject *o; PyObject *temp = PyVTKTemplate_New("vtkCommonDataModelPython.vtkVector2", PyvtkVector2_Doc); o = PyvtkVector2_IdE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector2_IfE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector2_IiE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } return temp; } static const char *PyvtkVector3_IdE_Doc = "vtkVector3 - no description provided.\n\n" "Superclass: vtkVector[float64,3]\n\n" "vtkVector3()\n" "explicit vtkVector3(const double &scalar)\n" "explicit vtkVector3(const double *init)\n" "vtkVector3(const double &x, const double &y, const double &z)\n" "vtkVector3(const &vtkVector3)\n"; static PyObject * PyvtkVector3_IdE_Set(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Set"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); double temp0; double temp1; double temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { op->Set(temp0, temp1, temp2); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IdE_SetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetX(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IdE_GetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const double *tempr = &op->GetX(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IdE_SetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetY(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IdE_GetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const double *tempr = &op->GetY(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IdE_SetZ(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetZ"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetZ(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IdE_GetZ(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetZ"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const double *tempr = &op->GetZ(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IdE_Cross(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Cross"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); vtkVector3 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3_IdE")) { vtkVector3 tempr = op->Cross(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3_IdE"); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3_IdE_Methods[] = { {"Set", PyvtkVector3_IdE_Set, METH_VARARGS, "V.Set(float, float, float)\nC++: void Set(const double &x, const double &y, const double &z)\n\nSet the x, y and z components of the vector.\n"}, {"SetX", PyvtkVector3_IdE_SetX, METH_VARARGS, "V.SetX(float)\nC++: void SetX(const double &x)\n\nSet the x component of the vector, i.e. element 0.\n"}, {"GetX", PyvtkVector3_IdE_GetX, METH_VARARGS, "V.GetX() -> float\nC++: const double &GetX()\n\nGet the x component of the vector, i.e. element 0.\n"}, {"SetY", PyvtkVector3_IdE_SetY, METH_VARARGS, "V.SetY(float)\nC++: void SetY(const double &y)\n\nSet the y component of the vector, i.e. element 1.\n"}, {"GetY", PyvtkVector3_IdE_GetY, METH_VARARGS, "V.GetY() -> float\nC++: const double &GetY()\n\nGet the y component of the vector, i.e. element 1.\n"}, {"SetZ", PyvtkVector3_IdE_SetZ, METH_VARARGS, "V.SetZ(float)\nC++: void SetZ(const double &z)\n\nSet the z component of the vector, i.e. element 2.\n"}, {"GetZ", PyvtkVector3_IdE_GetZ, METH_VARARGS, "V.GetZ() -> float\nC++: const double &GetZ()\n\nGet the z component of the vector, i.e. element 2.\n"}, {"Cross", PyvtkVector3_IdE_Cross, METH_VARARGS, "V.Cross(vtkVector3_IdE) -> vtkVector3_IdE\nC++: vtkVector3 Cross(const vtkVector3 &other)\n\nReturn the cross product of this X other.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3_IdE_vtkVector3_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector3 *op = new vtkVector3(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector3_IdE", op); } return result; } static PyObject * PyvtkVector3_IdE_vtkVector3_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector3 *op = new vtkVector3(temp0); result = PyVTKSpecialObject_New("vtkVector3_IdE", op); } return result; } static PyObject * PyvtkVector3_IdE_vtkVector3_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector3 *op = new vtkVector3(temp0); result = PyVTKSpecialObject_New("vtkVector3_IdE", op); } return result; } static PyObject * PyvtkVector3_IdE_vtkVector3_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); double temp0; double temp1; double temp2; PyObject *result = nullptr; if (ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkVector3 *op = new vtkVector3(temp0, temp1, temp2); result = PyVTKSpecialObject_New("vtkVector3_IdE", op); } return result; } static PyObject * PyvtkVector3_IdE_vtkVector3_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); vtkVector3 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3_IdE")) { vtkVector3 *op = new vtkVector3(*temp0); result = PyVTKSpecialObject_New("vtkVector3_IdE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3_IdE_vtkVector3_Methods[] = { {nullptr, PyvtkVector3_IdE_vtkVector3_s2, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector3_IdE_vtkVector3_s3, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector3_IdE_vtkVector3_s5, METH_VARARGS, "@W vtkVector3_IdE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3_IdE_vtkVector3(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector3_IdE_vtkVector3_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector3_IdE_vtkVector3_s1(self, args); case 3: return PyvtkVector3_IdE_vtkVector3_s4(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector3"); return nullptr; } static PyObject * PyvtkVector3_IdE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector3_IdE_vtkVector3(nullptr, args); } static void PyvtkVector3_IdE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static int PyvtkVector3_IdE_CheckExact(PyObject *ob); static PyObject *PyvtkVector3_IdE_RichCompare( PyObject *o1, PyObject *o2, int opid) { PyObject *n1 = nullptr; PyObject *n2 = nullptr; const vtkVector3 *so1 = nullptr; const vtkVector3 *so2 = nullptr; int result = -1; if (PyvtkVector3_IdE_CheckExact(o1)) { PyVTKSpecialObject *s1 = (PyVTKSpecialObject *)o1; so1 = static_cast *>(s1->vtk_ptr); } else { so1 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o1, "vtkVector3_IdE", &n1)); if (so1 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } if (PyvtkVector3_IdE_CheckExact(o2)) { PyVTKSpecialObject *s2 = (PyVTKSpecialObject *)o2; so2 = static_cast *>(s2->vtk_ptr); } else { so2 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o2, "vtkVector3_IdE", &n2)); if (so2 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } switch (opid) { case Py_LT: result = ((*so1) < (*so2)); break; case Py_LE: break; case Py_EQ: break; case Py_NE: break; case Py_GT: break; case Py_GE: break; } if (n1) { Py_DECREF(n1); } else if (n2) { Py_DECREF(n2); } if (result == -1) { PyErr_SetString(PyExc_TypeError, "operation not available"); return nullptr; } // avoids aliasing issues with Py_INCREF(Py_False) return PyBool_FromLong((long)result); } static Py_hash_t PyvtkVector3_IdE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector3_IdE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector3_IdE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector3_IdE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector3_IdE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector3_IdE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear PyvtkVector3_IdE_RichCompare, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector3_IdE_New, // tp_new PyObject_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 int PyvtkVector3_IdE_CheckExact(PyObject *ob) { return (Py_TYPE(ob) == &PyvtkVector3_IdE_Type); } static void *PyvtkVector3_IdE_CCopy(const void *obj) { if (obj) { return new vtkVector3(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector3_IdE_TypeNew(); } #ifndef DECLARED_PyvtkVector_IdLi3EE_TypeNew extern "C" { PyObject *PyvtkVector_IdLi3EE_TypeNew(); } #define DECLARED_PyvtkVector_IdLi3EE_TypeNew #endif PyObject *PyvtkVector3_IdE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector3_IdE_Type, PyvtkVector3_IdE_Methods, PyvtkVector3_IdE_vtkVector3_Methods, &PyvtkVector3_IdE_CCopy); PyTypeObject *pytype = &PyvtkVector3_IdE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector_IdLi3EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector3_IfE_Doc = "vtkVector3 - no description provided.\n\n" "Superclass: vtkVector[float32,3]\n\n" "vtkVector3()\n" "explicit vtkVector3(const float &scalar)\n" "explicit vtkVector3(const float *init)\n" "vtkVector3(const float &x, const float &y, const float &z)\n" "vtkVector3(const &vtkVector3)\n"; static PyObject * PyvtkVector3_IfE_Set(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Set"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); float temp0; float temp1; float temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { op->Set(temp0, temp1, temp2); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IfE_SetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetX(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IfE_GetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const float *tempr = &op->GetX(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IfE_SetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetY(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IfE_GetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const float *tempr = &op->GetY(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IfE_SetZ(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetZ"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetZ(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IfE_GetZ(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetZ"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const float *tempr = &op->GetZ(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IfE_Cross(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Cross"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); vtkVector3 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3_IfE")) { vtkVector3 tempr = op->Cross(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3_IfE"); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3_IfE_Methods[] = { {"Set", PyvtkVector3_IfE_Set, METH_VARARGS, "V.Set(float, float, float)\nC++: void Set(const float &x, const float &y, const float &z)\n\nSet the x, y and z components of the vector.\n"}, {"SetX", PyvtkVector3_IfE_SetX, METH_VARARGS, "V.SetX(float)\nC++: void SetX(const float &x)\n\nSet the x component of the vector, i.e. element 0.\n"}, {"GetX", PyvtkVector3_IfE_GetX, METH_VARARGS, "V.GetX() -> float\nC++: const float &GetX()\n\nGet the x component of the vector, i.e. element 0.\n"}, {"SetY", PyvtkVector3_IfE_SetY, METH_VARARGS, "V.SetY(float)\nC++: void SetY(const float &y)\n\nSet the y component of the vector, i.e. element 1.\n"}, {"GetY", PyvtkVector3_IfE_GetY, METH_VARARGS, "V.GetY() -> float\nC++: const float &GetY()\n\nGet the y component of the vector, i.e. element 1.\n"}, {"SetZ", PyvtkVector3_IfE_SetZ, METH_VARARGS, "V.SetZ(float)\nC++: void SetZ(const float &z)\n\nSet the z component of the vector, i.e. element 2.\n"}, {"GetZ", PyvtkVector3_IfE_GetZ, METH_VARARGS, "V.GetZ() -> float\nC++: const float &GetZ()\n\nGet the z component of the vector, i.e. element 2.\n"}, {"Cross", PyvtkVector3_IfE_Cross, METH_VARARGS, "V.Cross(vtkVector3_IfE) -> vtkVector3_IfE\nC++: vtkVector3 Cross(const vtkVector3 &other)\n\nReturn the cross product of this X other.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3_IfE_vtkVector3_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector3 *op = new vtkVector3(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector3_IfE", op); } return result; } static PyObject * PyvtkVector3_IfE_vtkVector3_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector3 *op = new vtkVector3(temp0); result = PyVTKSpecialObject_New("vtkVector3_IfE", op); } return result; } static PyObject * PyvtkVector3_IfE_vtkVector3_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); const int size0 = 3; float temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector3 *op = new vtkVector3(temp0); result = PyVTKSpecialObject_New("vtkVector3_IfE", op); } return result; } static PyObject * PyvtkVector3_IfE_vtkVector3_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); float temp0; float temp1; float temp2; PyObject *result = nullptr; if (ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkVector3 *op = new vtkVector3(temp0, temp1, temp2); result = PyVTKSpecialObject_New("vtkVector3_IfE", op); } return result; } static PyObject * PyvtkVector3_IfE_vtkVector3_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); vtkVector3 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3_IfE")) { vtkVector3 *op = new vtkVector3(*temp0); result = PyVTKSpecialObject_New("vtkVector3_IfE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3_IfE_vtkVector3_Methods[] = { {nullptr, PyvtkVector3_IfE_vtkVector3_s2, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector3_IfE_vtkVector3_s3, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector3_IfE_vtkVector3_s5, METH_VARARGS, "@W vtkVector3_IfE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3_IfE_vtkVector3(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector3_IfE_vtkVector3_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector3_IfE_vtkVector3_s1(self, args); case 3: return PyvtkVector3_IfE_vtkVector3_s4(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector3"); return nullptr; } static PyObject * PyvtkVector3_IfE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector3_IfE_vtkVector3(nullptr, args); } static void PyvtkVector3_IfE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static int PyvtkVector3_IfE_CheckExact(PyObject *ob); static PyObject *PyvtkVector3_IfE_RichCompare( PyObject *o1, PyObject *o2, int opid) { PyObject *n1 = nullptr; PyObject *n2 = nullptr; const vtkVector3 *so1 = nullptr; const vtkVector3 *so2 = nullptr; int result = -1; if (PyvtkVector3_IfE_CheckExact(o1)) { PyVTKSpecialObject *s1 = (PyVTKSpecialObject *)o1; so1 = static_cast *>(s1->vtk_ptr); } else { so1 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o1, "vtkVector3_IfE", &n1)); if (so1 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } if (PyvtkVector3_IfE_CheckExact(o2)) { PyVTKSpecialObject *s2 = (PyVTKSpecialObject *)o2; so2 = static_cast *>(s2->vtk_ptr); } else { so2 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o2, "vtkVector3_IfE", &n2)); if (so2 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } switch (opid) { case Py_LT: result = ((*so1) < (*so2)); break; case Py_LE: break; case Py_EQ: break; case Py_NE: break; case Py_GT: break; case Py_GE: break; } if (n1) { Py_DECREF(n1); } else if (n2) { Py_DECREF(n2); } if (result == -1) { PyErr_SetString(PyExc_TypeError, "operation not available"); return nullptr; } // avoids aliasing issues with Py_INCREF(Py_False) return PyBool_FromLong((long)result); } static Py_hash_t PyvtkVector3_IfE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector3_IfE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector3_IfE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector3_IfE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector3_IfE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector3_IfE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear PyvtkVector3_IfE_RichCompare, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector3_IfE_New, // tp_new PyObject_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 int PyvtkVector3_IfE_CheckExact(PyObject *ob) { return (Py_TYPE(ob) == &PyvtkVector3_IfE_Type); } static void *PyvtkVector3_IfE_CCopy(const void *obj) { if (obj) { return new vtkVector3(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector3_IfE_TypeNew(); } #ifndef DECLARED_PyvtkVector_IfLi3EE_TypeNew extern "C" { PyObject *PyvtkVector_IfLi3EE_TypeNew(); } #define DECLARED_PyvtkVector_IfLi3EE_TypeNew #endif PyObject *PyvtkVector3_IfE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector3_IfE_Type, PyvtkVector3_IfE_Methods, PyvtkVector3_IfE_vtkVector3_Methods, &PyvtkVector3_IfE_CCopy); PyTypeObject *pytype = &PyvtkVector3_IfE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector_IfLi3EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector3_IiE_Doc = "vtkVector3 - no description provided.\n\n" "Superclass: vtkVector[int32,3]\n\n" "vtkVector3()\n" "explicit vtkVector3(const int &scalar)\n" "explicit vtkVector3(const int *init)\n" "vtkVector3(const int &x, const int &y, const int &z)\n" "vtkVector3(const &vtkVector3)\n"; static PyObject * PyvtkVector3_IiE_Set(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Set"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); int temp0; int temp1; int temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { op->Set(temp0, temp1, temp2); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IiE_SetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetX(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IiE_GetX(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetX"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const int *tempr = &op->GetX(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IiE_SetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetY(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IiE_GetY(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetY"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const int *tempr = &op->GetY(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IiE_SetZ(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetZ"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { op->SetZ(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVector3_IiE_GetZ(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetZ"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const int *tempr = &op->GetZ(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkVector3_IiE_Cross(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Cross"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3 *op = static_cast *>(vp); vtkVector3 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3_IiE")) { vtkVector3 tempr = op->Cross(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3_IiE"); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3_IiE_Methods[] = { {"Set", PyvtkVector3_IiE_Set, METH_VARARGS, "V.Set(int, int, int)\nC++: void Set(const int &x, const int &y, const int &z)\n\nSet the x, y and z components of the vector.\n"}, {"SetX", PyvtkVector3_IiE_SetX, METH_VARARGS, "V.SetX(int)\nC++: void SetX(const int &x)\n\nSet the x component of the vector, i.e. element 0.\n"}, {"GetX", PyvtkVector3_IiE_GetX, METH_VARARGS, "V.GetX() -> int\nC++: const int &GetX()\n\nGet the x component of the vector, i.e. element 0.\n"}, {"SetY", PyvtkVector3_IiE_SetY, METH_VARARGS, "V.SetY(int)\nC++: void SetY(const int &y)\n\nSet the y component of the vector, i.e. element 1.\n"}, {"GetY", PyvtkVector3_IiE_GetY, METH_VARARGS, "V.GetY() -> int\nC++: const int &GetY()\n\nGet the y component of the vector, i.e. element 1.\n"}, {"SetZ", PyvtkVector3_IiE_SetZ, METH_VARARGS, "V.SetZ(int)\nC++: void SetZ(const int &z)\n\nSet the z component of the vector, i.e. element 2.\n"}, {"GetZ", PyvtkVector3_IiE_GetZ, METH_VARARGS, "V.GetZ() -> int\nC++: const int &GetZ()\n\nGet the z component of the vector, i.e. element 2.\n"}, {"Cross", PyvtkVector3_IiE_Cross, METH_VARARGS, "V.Cross(vtkVector3_IiE) -> vtkVector3_IiE\nC++: vtkVector3 Cross(const vtkVector3 &other)\n\nReturn the cross product of this X other.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3_IiE_vtkVector3_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector3 *op = new vtkVector3(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector3_IiE", op); } return result; } static PyObject * PyvtkVector3_IiE_vtkVector3_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector3 *op = new vtkVector3(temp0); result = PyVTKSpecialObject_New("vtkVector3_IiE", op); } return result; } static PyObject * PyvtkVector3_IiE_vtkVector3_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); const int size0 = 3; int temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector3 *op = new vtkVector3(temp0); result = PyVTKSpecialObject_New("vtkVector3_IiE", op); } return result; } static PyObject * PyvtkVector3_IiE_vtkVector3_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); int temp0; int temp1; int temp2; PyObject *result = nullptr; if (ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkVector3 *op = new vtkVector3(temp0, temp1, temp2); result = PyVTKSpecialObject_New("vtkVector3_IiE", op); } return result; } static PyObject * PyvtkVector3_IiE_vtkVector3_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3"); vtkVector3 *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3_IiE")) { vtkVector3 *op = new vtkVector3(*temp0); result = PyVTKSpecialObject_New("vtkVector3_IiE", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3_IiE_vtkVector3_Methods[] = { {nullptr, PyvtkVector3_IiE_vtkVector3_s2, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector3_IiE_vtkVector3_s3, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector3_IiE_vtkVector3_s5, METH_VARARGS, "@W vtkVector3_IiE"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3_IiE_vtkVector3(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector3_IiE_vtkVector3_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector3_IiE_vtkVector3_s1(self, args); case 3: return PyvtkVector3_IiE_vtkVector3_s4(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector3"); return nullptr; } static PyObject * PyvtkVector3_IiE_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector3_IiE_vtkVector3(nullptr, args); } static void PyvtkVector3_IiE_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast *>(obj->vtk_ptr); PyObject_Del(self); } static int PyvtkVector3_IiE_CheckExact(PyObject *ob); static PyObject *PyvtkVector3_IiE_RichCompare( PyObject *o1, PyObject *o2, int opid) { PyObject *n1 = nullptr; PyObject *n2 = nullptr; const vtkVector3 *so1 = nullptr; const vtkVector3 *so2 = nullptr; int result = -1; if (PyvtkVector3_IiE_CheckExact(o1)) { PyVTKSpecialObject *s1 = (PyVTKSpecialObject *)o1; so1 = static_cast *>(s1->vtk_ptr); } else { so1 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o1, "vtkVector3_IiE", &n1)); if (so1 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } if (PyvtkVector3_IiE_CheckExact(o2)) { PyVTKSpecialObject *s2 = (PyVTKSpecialObject *)o2; so2 = static_cast *>(s2->vtk_ptr); } else { so2 = static_cast *>( vtkPythonUtil::GetPointerFromSpecialObject( o2, "vtkVector3_IiE", &n2)); if (so2 == nullptr) { PyErr_Clear(); Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } } switch (opid) { case Py_LT: result = ((*so1) < (*so2)); break; case Py_LE: break; case Py_EQ: break; case Py_NE: break; case Py_GT: break; case Py_GE: break; } if (n1) { Py_DECREF(n1); } else if (n2) { Py_DECREF(n2); } if (result == -1) { PyErr_SetString(PyExc_TypeError, "operation not available"); return nullptr; } // avoids aliasing issues with Py_INCREF(Py_False) return PyBool_FromLong((long)result); } static Py_hash_t PyvtkVector3_IiE_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector3_IiE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector3_IiE", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector3_IiE_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector3_IiE_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector3_IiE_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear PyvtkVector3_IiE_RichCompare, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector3_IiE_New, // tp_new PyObject_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 int PyvtkVector3_IiE_CheckExact(PyObject *ob) { return (Py_TYPE(ob) == &PyvtkVector3_IiE_Type); } static void *PyvtkVector3_IiE_CCopy(const void *obj) { if (obj) { return new vtkVector3(*static_cast*>(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector3_IiE_TypeNew(); } #ifndef DECLARED_PyvtkVector_IiLi3EE_TypeNew extern "C" { PyObject *PyvtkVector_IiLi3EE_TypeNew(); } #define DECLARED_PyvtkVector_IiLi3EE_TypeNew #endif PyObject *PyvtkVector3_IiE_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector3_IiE_Type, PyvtkVector3_IiE_Methods, PyvtkVector3_IiE_vtkVector3_Methods, &PyvtkVector3_IiE_CCopy); PyTypeObject *pytype = &PyvtkVector3_IiE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector_IiLi3EE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector3_Doc = "vtkVector3 - no description provided.\n\n" "Superclass: vtkVector[T,3]\n\n" "\nProvided Types:\n\n" " vtkVector3[float64] => vtkVector3\n" " vtkVector3[float32] => vtkVector3\n" " vtkVector3[int32] => vtkVector3\n" ; PyObject *PyvtkVector3_TemplateNew() { PyObject *o; PyObject *temp = PyVTKTemplate_New("vtkCommonDataModelPython.vtkVector3", PyvtkVector3_Doc); o = PyvtkVector3_IdE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector3_IfE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkVector3_IiE_TypeNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } return temp; } static const char *PyvtkVector2i_Doc = "vtkVector2i - Some derived classes for the different vectors commonly\nused.\n\n" "Superclass: vtkVector2[int32]\n\n" "vtkVector2i()\n" "vtkVector2i(int x, int y)\n" "explicit vtkVector2i(int s)\n" "explicit vtkVector2i(const int *i)\n" "explicit vtkVector2i(const vtkTuple &o)\n" "vtkVector2i(const vtkVector &o)\n" "vtkVector2i(const &vtkVector2i)\n"; static PyObject * PyvtkVector2i_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2i *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector2i tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector2i"); } } return result; } static PyMethodDef PyvtkVector2i_Methods[] = { {"Normalized", PyvtkVector2i_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector2i\nC++: vtkVector2i Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2i_vtkVector2i_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector2i *op = new vtkVector2i(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector2i", op); } return result; } static PyObject * PyvtkVector2i_vtkVector2i_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); int temp0; int temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkVector2i *op = new vtkVector2i(temp0, temp1); result = PyVTKSpecialObject_New("vtkVector2i", op); } return result; } static PyObject * PyvtkVector2i_vtkVector2i_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector2i *op = new vtkVector2i(temp0); result = PyVTKSpecialObject_New("vtkVector2i", op); } return result; } static PyObject * PyvtkVector2i_vtkVector2i_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); const int size0 = 2; int temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector2i *op = new vtkVector2i(temp0); result = PyVTKSpecialObject_New("vtkVector2i", op); } return result; } static PyObject * PyvtkVector2i_vtkVector2i_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); vtkTuple *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkTuple_IiLi2EE")) { vtkVector2i *op = new vtkVector2i(*temp0); result = PyVTKSpecialObject_New("vtkVector2i", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector2i_vtkVector2i_s6(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi2EE")) { vtkVector2i *op = new vtkVector2i(*temp0); result = PyVTKSpecialObject_New("vtkVector2i", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector2i_vtkVector2i_s7(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2i"); vtkVector2i *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2i")) { vtkVector2i *op = new vtkVector2i(*temp0); result = PyVTKSpecialObject_New("vtkVector2i", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector2i_vtkVector2i_Methods[] = { {nullptr, PyvtkVector2i_vtkVector2i_s3, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector2i_vtkVector2i_s4, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector2i_vtkVector2i_s5, METH_VARARGS, "-@W vtkTuple_IiLi2EE"}, {nullptr, PyvtkVector2i_vtkVector2i_s6, METH_VARARGS, "@W vtkVector_IiLi2EE"}, {nullptr, PyvtkVector2i_vtkVector2i_s7, METH_VARARGS, "@W vtkVector2i"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2i_vtkVector2i(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector2i_vtkVector2i_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector2i_vtkVector2i_s1(self, args); case 2: return PyvtkVector2i_vtkVector2i_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector2i"); return nullptr; } static PyObject * PyvtkVector2i_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector2i_vtkVector2i(nullptr, args); } static void PyvtkVector2i_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector2i_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector2i_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector2i", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector2i_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector2i_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector2i_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector2i_New, // tp_new PyObject_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 void *PyvtkVector2i_CCopy(const void *obj) { if (obj) { return new vtkVector2i(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector2i_TypeNew(); } #ifndef DECLARED_PyvtkVector2_IiE_TypeNew extern "C" { PyObject *PyvtkVector2_IiE_TypeNew(); } #define DECLARED_PyvtkVector2_IiE_TypeNew #endif PyObject *PyvtkVector2i_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector2i_Type, PyvtkVector2i_Methods, PyvtkVector2i_vtkVector2i_Methods, &PyvtkVector2i_CCopy); PyTypeObject *pytype = &PyvtkVector2i_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector2_IiE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector2f_Doc = "vtkVector2f - no description provided.\n\n" "Superclass: vtkVector2[float32]\n\n" "vtkVector2f()\n" "vtkVector2f(float x, float y)\n" "explicit vtkVector2f(float s)\n" "explicit vtkVector2f(const float *i)\n" "explicit vtkVector2f(const vtkTuple &o)\n" "vtkVector2f(const vtkVector &o)\n" "vtkVector2f(const &vtkVector2f)\n"; static PyObject * PyvtkVector2f_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2f *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector2f tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector2f"); } } return result; } static PyMethodDef PyvtkVector2f_Methods[] = { {"Normalized", PyvtkVector2f_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector2f\nC++: vtkVector2f Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2f_vtkVector2f_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector2f *op = new vtkVector2f(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector2f", op); } return result; } static PyObject * PyvtkVector2f_vtkVector2f_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); float temp0; float temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkVector2f *op = new vtkVector2f(temp0, temp1); result = PyVTKSpecialObject_New("vtkVector2f", op); } return result; } static PyObject * PyvtkVector2f_vtkVector2f_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector2f *op = new vtkVector2f(temp0); result = PyVTKSpecialObject_New("vtkVector2f", op); } return result; } static PyObject * PyvtkVector2f_vtkVector2f_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); const int size0 = 2; float temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector2f *op = new vtkVector2f(temp0); result = PyVTKSpecialObject_New("vtkVector2f", op); } return result; } static PyObject * PyvtkVector2f_vtkVector2f_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); vtkTuple *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkTuple_IfLi2EE")) { vtkVector2f *op = new vtkVector2f(*temp0); result = PyVTKSpecialObject_New("vtkVector2f", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector2f_vtkVector2f_s6(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi2EE")) { vtkVector2f *op = new vtkVector2f(*temp0); result = PyVTKSpecialObject_New("vtkVector2f", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector2f_vtkVector2f_s7(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2f"); vtkVector2f *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2f")) { vtkVector2f *op = new vtkVector2f(*temp0); result = PyVTKSpecialObject_New("vtkVector2f", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector2f_vtkVector2f_Methods[] = { {nullptr, PyvtkVector2f_vtkVector2f_s3, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector2f_vtkVector2f_s4, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector2f_vtkVector2f_s5, METH_VARARGS, "-@W vtkTuple_IfLi2EE"}, {nullptr, PyvtkVector2f_vtkVector2f_s6, METH_VARARGS, "@W vtkVector_IfLi2EE"}, {nullptr, PyvtkVector2f_vtkVector2f_s7, METH_VARARGS, "@W vtkVector2f"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2f_vtkVector2f(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector2f_vtkVector2f_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector2f_vtkVector2f_s1(self, args); case 2: return PyvtkVector2f_vtkVector2f_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector2f"); return nullptr; } static PyObject * PyvtkVector2f_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector2f_vtkVector2f(nullptr, args); } static void PyvtkVector2f_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector2f_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector2f_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector2f", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector2f_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector2f_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector2f_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector2f_New, // tp_new PyObject_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 void *PyvtkVector2f_CCopy(const void *obj) { if (obj) { return new vtkVector2f(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector2f_TypeNew(); } #ifndef DECLARED_PyvtkVector2_IfE_TypeNew extern "C" { PyObject *PyvtkVector2_IfE_TypeNew(); } #define DECLARED_PyvtkVector2_IfE_TypeNew #endif PyObject *PyvtkVector2f_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector2f_Type, PyvtkVector2f_Methods, PyvtkVector2f_vtkVector2f_Methods, &PyvtkVector2f_CCopy); PyTypeObject *pytype = &PyvtkVector2f_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector2_IfE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector2d_Doc = "vtkVector2d - no description provided.\n\n" "Superclass: vtkVector2[float64]\n\n" "vtkVector2d()\n" "vtkVector2d(double x, double y)\n" "explicit vtkVector2d(double s)\n" "explicit vtkVector2d(const double *i)\n" "explicit vtkVector2d(const vtkTuple &o)\n" "vtkVector2d(const vtkVector &o)\n" "vtkVector2d(const &vtkVector2d)\n"; static PyObject * PyvtkVector2d_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector2d *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector2d tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector2d"); } } return result; } static PyMethodDef PyvtkVector2d_Methods[] = { {"Normalized", PyvtkVector2d_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector2d\nC++: vtkVector2d Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2d_vtkVector2d_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector2d *op = new vtkVector2d(); (*op)[0] = 0; (*op)[1] = 0; result = PyVTKSpecialObject_New("vtkVector2d", op); } return result; } static PyObject * PyvtkVector2d_vtkVector2d_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); double temp0; double temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkVector2d *op = new vtkVector2d(temp0, temp1); result = PyVTKSpecialObject_New("vtkVector2d", op); } return result; } static PyObject * PyvtkVector2d_vtkVector2d_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector2d *op = new vtkVector2d(temp0); result = PyVTKSpecialObject_New("vtkVector2d", op); } return result; } static PyObject * PyvtkVector2d_vtkVector2d_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); const int size0 = 2; double temp0[2]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector2d *op = new vtkVector2d(temp0); result = PyVTKSpecialObject_New("vtkVector2d", op); } return result; } static PyObject * PyvtkVector2d_vtkVector2d_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); vtkTuple *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkTuple_IdLi2EE")) { vtkVector2d *op = new vtkVector2d(*temp0); result = PyVTKSpecialObject_New("vtkVector2d", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector2d_vtkVector2d_s6(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi2EE")) { vtkVector2d *op = new vtkVector2d(*temp0); result = PyVTKSpecialObject_New("vtkVector2d", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector2d_vtkVector2d_s7(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector2d"); vtkVector2d *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2d")) { vtkVector2d *op = new vtkVector2d(*temp0); result = PyVTKSpecialObject_New("vtkVector2d", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector2d_vtkVector2d_Methods[] = { {nullptr, PyvtkVector2d_vtkVector2d_s3, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector2d_vtkVector2d_s4, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector2d_vtkVector2d_s5, METH_VARARGS, "-@W vtkTuple_IdLi2EE"}, {nullptr, PyvtkVector2d_vtkVector2d_s6, METH_VARARGS, "@W vtkVector_IdLi2EE"}, {nullptr, PyvtkVector2d_vtkVector2d_s7, METH_VARARGS, "@W vtkVector2d"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector2d_vtkVector2d(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector2d_vtkVector2d_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector2d_vtkVector2d_s1(self, args); case 2: return PyvtkVector2d_vtkVector2d_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector2d"); return nullptr; } static PyObject * PyvtkVector2d_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector2d_vtkVector2d(nullptr, args); } static void PyvtkVector2d_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector2d_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector2d_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector2d", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector2d_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector2d_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector2d_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector2d_New, // tp_new PyObject_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 void *PyvtkVector2d_CCopy(const void *obj) { if (obj) { return new vtkVector2d(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector2d_TypeNew(); } #ifndef DECLARED_PyvtkVector2_IdE_TypeNew extern "C" { PyObject *PyvtkVector2_IdE_TypeNew(); } #define DECLARED_PyvtkVector2_IdE_TypeNew #endif PyObject *PyvtkVector2d_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector2d_Type, PyvtkVector2d_Methods, PyvtkVector2d_vtkVector2d_Methods, &PyvtkVector2d_CCopy); PyTypeObject *pytype = &PyvtkVector2d_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector2_IdE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector3i_Doc = "vtkVector3i - no description provided.\n\n" "Superclass: vtkVector3[int32]\n\n" "vtkVector3i()\n" "vtkVector3i(int x, int y, int z)\n" "explicit vtkVector3i(int s)\n" "explicit vtkVector3i(const int *i)\n" "explicit vtkVector3i(const vtkTuple &o)\n" "vtkVector3i(const vtkVector &o)\n" "vtkVector3i(const &vtkVector3i)\n"; static PyObject * PyvtkVector3i_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3i *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector3i tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3i"); } } return result; } static PyObject * PyvtkVector3i_Cross(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Cross"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3i *op = static_cast(vp); vtkVector3i *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3i")) { vtkVector3i tempr = op->Cross(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3i"); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3i_Methods[] = { {"Normalized", PyvtkVector3i_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector3i\nC++: vtkVector3i Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Cross", PyvtkVector3i_Cross, METH_VARARGS, "V.Cross(vtkVector3i) -> vtkVector3i\nC++: vtkVector3i Cross(const vtkVector3i &other)\n\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3i_vtkVector3i_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector3i *op = new vtkVector3i(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector3i", op); } return result; } static PyObject * PyvtkVector3i_vtkVector3i_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); int temp0; int temp1; int temp2; PyObject *result = nullptr; if (ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkVector3i *op = new vtkVector3i(temp0, temp1, temp2); result = PyVTKSpecialObject_New("vtkVector3i", op); } return result; } static PyObject * PyvtkVector3i_vtkVector3i_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); int temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector3i *op = new vtkVector3i(temp0); result = PyVTKSpecialObject_New("vtkVector3i", op); } return result; } static PyObject * PyvtkVector3i_vtkVector3i_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); const int size0 = 3; int temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector3i *op = new vtkVector3i(temp0); result = PyVTKSpecialObject_New("vtkVector3i", op); } return result; } static PyObject * PyvtkVector3i_vtkVector3i_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); vtkTuple *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkTuple_IiLi3EE")) { vtkVector3i *op = new vtkVector3i(*temp0); result = PyVTKSpecialObject_New("vtkVector3i", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector3i_vtkVector3i_s6(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IiLi3EE")) { vtkVector3i *op = new vtkVector3i(*temp0); result = PyVTKSpecialObject_New("vtkVector3i", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector3i_vtkVector3i_s7(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3i"); vtkVector3i *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3i")) { vtkVector3i *op = new vtkVector3i(*temp0); result = PyVTKSpecialObject_New("vtkVector3i", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3i_vtkVector3i_Methods[] = { {nullptr, PyvtkVector3i_vtkVector3i_s3, METH_VARARGS, "-@i"}, {nullptr, PyvtkVector3i_vtkVector3i_s4, METH_VARARGS, "-@P *i"}, {nullptr, PyvtkVector3i_vtkVector3i_s5, METH_VARARGS, "-@W vtkTuple_IiLi3EE"}, {nullptr, PyvtkVector3i_vtkVector3i_s6, METH_VARARGS, "@W vtkVector_IiLi3EE"}, {nullptr, PyvtkVector3i_vtkVector3i_s7, METH_VARARGS, "@W vtkVector3i"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3i_vtkVector3i(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector3i_vtkVector3i_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector3i_vtkVector3i_s1(self, args); case 3: return PyvtkVector3i_vtkVector3i_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector3i"); return nullptr; } static PyObject * PyvtkVector3i_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector3i_vtkVector3i(nullptr, args); } static void PyvtkVector3i_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector3i_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector3i_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector3i", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector3i_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector3i_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector3i_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector3i_New, // tp_new PyObject_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 void *PyvtkVector3i_CCopy(const void *obj) { if (obj) { return new vtkVector3i(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector3i_TypeNew(); } #ifndef DECLARED_PyvtkVector3_IiE_TypeNew extern "C" { PyObject *PyvtkVector3_IiE_TypeNew(); } #define DECLARED_PyvtkVector3_IiE_TypeNew #endif PyObject *PyvtkVector3i_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector3i_Type, PyvtkVector3i_Methods, PyvtkVector3i_vtkVector3i_Methods, &PyvtkVector3i_CCopy); PyTypeObject *pytype = &PyvtkVector3i_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector3_IiE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector3f_Doc = "vtkVector3f - no description provided.\n\n" "Superclass: vtkVector3[float32]\n\n" "vtkVector3f()\n" "vtkVector3f(float x, float y, float z)\n" "explicit vtkVector3f(float s)\n" "explicit vtkVector3f(const float *i)\n" "explicit vtkVector3f(const vtkTuple &o)\n" "vtkVector3f(const vtkVector &o)\n" "vtkVector3f(const &vtkVector3f)\n"; static PyObject * PyvtkVector3f_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3f *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector3f tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3f"); } } return result; } static PyObject * PyvtkVector3f_Cross(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Cross"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3f *op = static_cast(vp); vtkVector3f *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3f")) { vtkVector3f tempr = op->Cross(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3f"); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3f_Methods[] = { {"Normalized", PyvtkVector3f_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector3f\nC++: vtkVector3f Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Cross", PyvtkVector3f_Cross, METH_VARARGS, "V.Cross(vtkVector3f) -> vtkVector3f\nC++: vtkVector3f Cross(const vtkVector3f &other)\n\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3f_vtkVector3f_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector3f *op = new vtkVector3f(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector3f", op); } return result; } static PyObject * PyvtkVector3f_vtkVector3f_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); float temp0; float temp1; float temp2; PyObject *result = nullptr; if (ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkVector3f *op = new vtkVector3f(temp0, temp1, temp2); result = PyVTKSpecialObject_New("vtkVector3f", op); } return result; } static PyObject * PyvtkVector3f_vtkVector3f_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); float temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector3f *op = new vtkVector3f(temp0); result = PyVTKSpecialObject_New("vtkVector3f", op); } return result; } static PyObject * PyvtkVector3f_vtkVector3f_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); const int size0 = 3; float temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector3f *op = new vtkVector3f(temp0); result = PyVTKSpecialObject_New("vtkVector3f", op); } return result; } static PyObject * PyvtkVector3f_vtkVector3f_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); vtkTuple *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkTuple_IfLi3EE")) { vtkVector3f *op = new vtkVector3f(*temp0); result = PyVTKSpecialObject_New("vtkVector3f", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector3f_vtkVector3f_s6(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IfLi3EE")) { vtkVector3f *op = new vtkVector3f(*temp0); result = PyVTKSpecialObject_New("vtkVector3f", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector3f_vtkVector3f_s7(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3f"); vtkVector3f *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3f")) { vtkVector3f *op = new vtkVector3f(*temp0); result = PyVTKSpecialObject_New("vtkVector3f", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3f_vtkVector3f_Methods[] = { {nullptr, PyvtkVector3f_vtkVector3f_s3, METH_VARARGS, "-@f"}, {nullptr, PyvtkVector3f_vtkVector3f_s4, METH_VARARGS, "-@P *f"}, {nullptr, PyvtkVector3f_vtkVector3f_s5, METH_VARARGS, "-@W vtkTuple_IfLi3EE"}, {nullptr, PyvtkVector3f_vtkVector3f_s6, METH_VARARGS, "@W vtkVector_IfLi3EE"}, {nullptr, PyvtkVector3f_vtkVector3f_s7, METH_VARARGS, "@W vtkVector3f"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3f_vtkVector3f(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector3f_vtkVector3f_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector3f_vtkVector3f_s1(self, args); case 3: return PyvtkVector3f_vtkVector3f_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector3f"); return nullptr; } static PyObject * PyvtkVector3f_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector3f_vtkVector3f(nullptr, args); } static void PyvtkVector3f_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector3f_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector3f_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector3f", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector3f_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector3f_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector3f_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector3f_New, // tp_new PyObject_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 void *PyvtkVector3f_CCopy(const void *obj) { if (obj) { return new vtkVector3f(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector3f_TypeNew(); } #ifndef DECLARED_PyvtkVector3_IfE_TypeNew extern "C" { PyObject *PyvtkVector3_IfE_TypeNew(); } #define DECLARED_PyvtkVector3_IfE_TypeNew #endif PyObject *PyvtkVector3f_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector3f_Type, PyvtkVector3f_Methods, PyvtkVector3f_vtkVector3f_Methods, &PyvtkVector3f_CCopy); PyTypeObject *pytype = &PyvtkVector3f_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector3_IfE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkVector3d_Doc = "vtkVector3d - no description provided.\n\n" "Superclass: vtkVector3[float64]\n\n" "vtkVector3d()\n" "vtkVector3d(double x, double y, double z)\n" "explicit vtkVector3d(double s)\n" "explicit vtkVector3d(const double *i)\n" "explicit vtkVector3d(const vtkTuple &o)\n" "vtkVector3d(const vtkVector &o)\n" "vtkVector3d(const &vtkVector3d)\n"; static PyObject * PyvtkVector3d_Normalized(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Normalized"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3d *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVector3d tempr = op->Normalized(); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3d"); } } return result; } static PyObject * PyvtkVector3d_Cross(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Cross"); void *vp = ap.GetSelfSpecialPointer(self, args); vtkVector3d *op = static_cast(vp); vtkVector3d *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3d")) { vtkVector3d tempr = op->Cross(*temp0); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVector3d"); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3d_Methods[] = { {"Normalized", PyvtkVector3d_Normalized, METH_VARARGS, "V.Normalized() -> vtkVector3d\nC++: vtkVector3d Normalized()\n\nReturn the normalized form of this vector.\n\\return The normalized form of this vector.\n"}, {"Cross", PyvtkVector3d_Cross, METH_VARARGS, "V.Cross(vtkVector3d) -> vtkVector3d\nC++: vtkVector3d Cross(const vtkVector3d &other)\n\n"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3d_vtkVector3d_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkVector3d *op = new vtkVector3d(); (*op)[0] = 0; (*op)[1] = 0; (*op)[2] = 0; result = PyVTKSpecialObject_New("vtkVector3d", op); } return result; } static PyObject * PyvtkVector3d_vtkVector3d_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); double temp0; double temp1; double temp2; PyObject *result = nullptr; if (ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkVector3d *op = new vtkVector3d(temp0, temp1, temp2); result = PyVTKSpecialObject_New("vtkVector3d", op); } return result; } static PyObject * PyvtkVector3d_vtkVector3d_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); double temp0; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVector3d *op = new vtkVector3d(temp0); result = PyVTKSpecialObject_New("vtkVector3d", op); } return result; } static PyObject * PyvtkVector3d_vtkVector3d_s4(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { vtkVector3d *op = new vtkVector3d(temp0); result = PyVTKSpecialObject_New("vtkVector3d", op); } return result; } static PyObject * PyvtkVector3d_vtkVector3d_s5(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); vtkTuple *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkTuple_IdLi3EE")) { vtkVector3d *op = new vtkVector3d(*temp0); result = PyVTKSpecialObject_New("vtkVector3d", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector3d_vtkVector3d_s6(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); vtkVector *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector_IdLi3EE")) { vtkVector3d *op = new vtkVector3d(*temp0); result = PyVTKSpecialObject_New("vtkVector3d", op); } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkVector3d_vtkVector3d_s7(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkVector3d"); vtkVector3d *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVector3d")) { vtkVector3d *op = new vtkVector3d(*temp0); result = PyVTKSpecialObject_New("vtkVector3d", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkVector3d_vtkVector3d_Methods[] = { {nullptr, PyvtkVector3d_vtkVector3d_s3, METH_VARARGS, "-@d"}, {nullptr, PyvtkVector3d_vtkVector3d_s4, METH_VARARGS, "-@P *d"}, {nullptr, PyvtkVector3d_vtkVector3d_s5, METH_VARARGS, "-@W vtkTuple_IdLi3EE"}, {nullptr, PyvtkVector3d_vtkVector3d_s6, METH_VARARGS, "@W vtkVector_IdLi3EE"}, {nullptr, PyvtkVector3d_vtkVector3d_s7, METH_VARARGS, "@W vtkVector3d"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVector3d_vtkVector3d(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVector3d_vtkVector3d_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkVector3d_vtkVector3d_s1(self, args); case 3: return PyvtkVector3d_vtkVector3d_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkVector3d"); return nullptr; } static PyObject * PyvtkVector3d_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkVector3d_vtkVector3d(nullptr, args); } static void PyvtkVector3d_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkVector3d_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkVector3d_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkVector3d", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkVector3d_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkVector3d_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkVector3d_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkVector3d_New, // tp_new PyObject_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 void *PyvtkVector3d_CCopy(const void *obj) { if (obj) { return new vtkVector3d(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVector3d_TypeNew(); } #ifndef DECLARED_PyvtkVector3_IdE_TypeNew extern "C" { PyObject *PyvtkVector3_IdE_TypeNew(); } #define DECLARED_PyvtkVector3_IdE_TypeNew #endif PyObject *PyvtkVector3d_TypeNew() { PyVTKSpecialType_Add( &PyvtkVector3d_Type, PyvtkVector3d_Methods, PyvtkVector3d_vtkVector3d_Methods, &PyvtkVector3d_CCopy); PyTypeObject *pytype = &PyvtkVector3d_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } pytype->tp_base = (PyTypeObject *)PyvtkVector3_IdE_TypeNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkVector( PyObject *dict) { PyObject *o; o = PyvtkVector_TemplateNew(); if (o) { #if PY_VERSION_HEX >= 0x03040000 const char *methodname = "values"; #else char methodname[] = "values"; #endif PyObject *l = PyObject_CallMethod(o, methodname, nullptr); Py_ssize_t n = PyList_GET_SIZE(l); for (Py_ssize_t i = 0; i < n; i++) { PyObject *ot = PyList_GET_ITEM(l, i); const char *nt = nullptr; if (PyType_Check(ot)) { nt = ((PyTypeObject *)ot)->tp_name; } else if (PyCFunction_Check(ot)) { nt = ((PyCFunctionObject *)ot)->m_ml->ml_name; } if (nt) { PyDict_SetItemString(dict, nt, ot); } } Py_DECREF(l); } if (o && PyDict_SetItemString(dict, "vtkVector", o) != 0) { Py_DECREF(o); } o = PyvtkVector2_TemplateNew(); if (o) { #if PY_VERSION_HEX >= 0x03040000 const char *methodname = "values"; #else char methodname[] = "values"; #endif PyObject *l = PyObject_CallMethod(o, methodname, nullptr); Py_ssize_t n = PyList_GET_SIZE(l); for (Py_ssize_t i = 0; i < n; i++) { PyObject *ot = PyList_GET_ITEM(l, i); const char *nt = nullptr; if (PyType_Check(ot)) { nt = ((PyTypeObject *)ot)->tp_name; } else if (PyCFunction_Check(ot)) { nt = ((PyCFunctionObject *)ot)->m_ml->ml_name; } if (nt) { PyDict_SetItemString(dict, nt, ot); } } Py_DECREF(l); } if (o && PyDict_SetItemString(dict, "vtkVector2", o) != 0) { Py_DECREF(o); } o = PyvtkVector3_TemplateNew(); if (o) { #if PY_VERSION_HEX >= 0x03040000 const char *methodname = "values"; #else char methodname[] = "values"; #endif PyObject *l = PyObject_CallMethod(o, methodname, nullptr); Py_ssize_t n = PyList_GET_SIZE(l); for (Py_ssize_t i = 0; i < n; i++) { PyObject *ot = PyList_GET_ITEM(l, i); const char *nt = nullptr; if (PyType_Check(ot)) { nt = ((PyTypeObject *)ot)->tp_name; } else if (PyCFunction_Check(ot)) { nt = ((PyCFunctionObject *)ot)->m_ml->ml_name; } if (nt) { PyDict_SetItemString(dict, nt, ot); } } Py_DECREF(l); } if (o && PyDict_SetItemString(dict, "vtkVector3", o) != 0) { Py_DECREF(o); } o = PyvtkVector2i_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkVector2i", o) != 0) { Py_DECREF(o); } o = PyvtkVector2f_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkVector2f", o) != 0) { Py_DECREF(o); } o = PyvtkVector2d_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkVector2d", o) != 0) { Py_DECREF(o); } o = PyvtkVector3i_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkVector3i", o) != 0) { Py_DECREF(o); } o = PyvtkVector3f_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkVector3f", o) != 0) { Py_DECREF(o); } o = PyvtkVector3d_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkVector3d", o) != 0) { Py_DECREF(o); } }