// python wrapper for vtkArrayIteratorTemplate // #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include "vtkPythonArgs.h" #include "vtkPythonOverload.h" #include "vtkConfigure.h" #include #include #include "vtkVariant.h" #include "vtkIndent.h" #include "vtkArrayIteratorTemplate.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkArrayIteratorTemplate(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IcE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IcE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IcE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); char *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildBytes(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { char *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; char temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IcE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IcE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IcE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IcE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IcE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IcE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IcE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IcE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IcE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IcE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IcE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (char, ...)\nC++: char *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IcE_GetValue, METH_VARARGS, "V.GetValue(int) -> char\nC++: char &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IcE_SetValue, METH_VARARGS, "V.SetValue(int, char)\nC++: void SetValue(vtkIdType id, char value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IcE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IcE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IcE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IcE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IcE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IcE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IcE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IcE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IcE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IcE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IcE_Type, PyvtkArrayIteratorTemplate_IcE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IcE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IcE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IaE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IaE_Doc = "vtkArrayIteratorTemplate - Implementation template for a\narray iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IaE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); signed char *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { signed char *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; signed char temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IaE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IaE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IaE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IaE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IaE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IaE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IaE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IaE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IaE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IaE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IaE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: signed char *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IaE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: signed char &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IaE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, signed char value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IaE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IaE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IaE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IaE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IaE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IaE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IaE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IaE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IaE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IaE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IaE_Type, PyvtkArrayIteratorTemplate_IaE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IaE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IaE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IhE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IhE_Doc = "vtkArrayIteratorTemplate - Implementation template for\na array iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IhE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); unsigned char *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned char *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; unsigned char temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IhE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IhE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IhE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IhE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IhE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IhE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IhE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IhE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IhE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IhE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IhE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: unsigned char *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IhE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: unsigned char &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IhE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, unsigned char value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IhE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IhE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IhE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IhE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IhE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IhE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IhE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IhE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IhE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IhE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IhE_Type, PyvtkArrayIteratorTemplate_IhE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IhE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IhE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IsE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IsE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IsE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); short *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { short *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; short temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IsE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IsE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IsE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IsE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IsE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IsE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IsE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IsE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IsE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IsE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IsE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: short *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IsE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: short &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IsE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, short value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IsE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IsE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IsE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IsE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IsE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IsE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IsE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IsE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IsE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IsE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IsE_Type, PyvtkArrayIteratorTemplate_IsE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IsE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IsE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_ItE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_ItE_Doc = "vtkArrayIteratorTemplate - Implementation template\nfor a array iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_ItE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); unsigned short *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned short *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; unsigned short temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ItE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_ItE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_ItE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_ItE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_ItE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_ItE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_ItE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_ItE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_ItE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_ItE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_ItE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: unsigned short *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_ItE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: unsigned short &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_ItE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, unsigned short value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_ItE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_ItE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_ItE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_ItE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_ItE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_ItE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_ItE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_ItE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_ItE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_ItE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_ItE_Type, PyvtkArrayIteratorTemplate_ItE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_ItE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_ItE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IiE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IiE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IiE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); int *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IiE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IiE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IiE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IiE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IiE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IiE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IiE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IiE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IiE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IiE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IiE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: int *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IiE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: int &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IiE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, int value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IiE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IiE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IiE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IiE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IiE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IiE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IiE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IiE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IiE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IiE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IiE_Type, PyvtkArrayIteratorTemplate_IiE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IiE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IiE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IjE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IjE_Doc = "vtkArrayIteratorTemplate - Implementation template for\na array iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IjE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); unsigned int *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned int *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; unsigned int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IjE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IjE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IjE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IjE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IjE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IjE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IjE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IjE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IjE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IjE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IjE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: unsigned int *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IjE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: unsigned int &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IjE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, unsigned int value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IjE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IjE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IjE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IjE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IjE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IjE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IjE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IjE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IjE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IjE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IjE_Type, PyvtkArrayIteratorTemplate_IjE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IjE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IjE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IlE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IlE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IlE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); long *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { long *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; long temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IlE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IlE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IlE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IlE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IlE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IlE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IlE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IlE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IlE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IlE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IlE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: long *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IlE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: long &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IlE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, long value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IlE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IlE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IlE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IlE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IlE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IlE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IlE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IlE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IlE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IlE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IlE_Type, PyvtkArrayIteratorTemplate_IlE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IlE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IlE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_ImE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_ImE_Doc = "vtkArrayIteratorTemplate - Implementation template for\na array iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_ImE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); unsigned long *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned long *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; unsigned long temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_ImE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_ImE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_ImE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_ImE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_ImE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_ImE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_ImE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_ImE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_ImE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_ImE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_ImE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: unsigned long *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_ImE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: unsigned long &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_ImE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, unsigned long value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_ImE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_ImE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_ImE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_ImE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_ImE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_ImE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_ImE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_ImE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_ImE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_ImE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_ImE_Type, PyvtkArrayIteratorTemplate_ImE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_ImE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_ImE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IxE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IxE_Doc = "vtkArrayIteratorTemplate - Implementation template for a\narray iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IxE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); long long *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { long long *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; long long temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IxE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IxE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IxE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IxE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IxE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IxE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IxE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IxE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IxE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IxE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IxE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: long long *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IxE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: long long &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IxE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, long long value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IxE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IxE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IxE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IxE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IxE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IxE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IxE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IxE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IxE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IxE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IxE_Type, PyvtkArrayIteratorTemplate_IxE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IxE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IxE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IyE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IyE_Doc = "vtkArrayIteratorTemplate - Implementation\ntemplate for a array iterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IyE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); unsigned long long *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned long long *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; unsigned long long temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IyE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IyE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IyE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IyE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IyE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IyE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IyE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IyE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IyE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IyE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IyE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (int, ...)\nC++: unsigned long long *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IyE_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: unsigned long long &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IyE_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, unsigned long long value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IyE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IyE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IyE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IyE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IyE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IyE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IyE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IyE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IyE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IyE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IyE_Type, PyvtkArrayIteratorTemplate_IyE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IyE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IyE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IfE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IfE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IfE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); float *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { float *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; float temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IfE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IfE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IfE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IfE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IfE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IfE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IfE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IfE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IfE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IfE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IfE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (float, ...)\nC++: float *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IfE_GetValue, METH_VARARGS, "V.GetValue(int) -> float\nC++: float &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IfE_SetValue, METH_VARARGS, "V.SetValue(int, float)\nC++: void SetValue(vtkIdType id, float value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IfE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IfE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IfE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IfE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IfE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IfE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IfE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IfE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IfE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IfE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IfE_Type, PyvtkArrayIteratorTemplate_IfE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IfE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IfE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_IdE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_IdE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_IdE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int sizer = op->GetNumberOfComponents(); double *tempr = (ap.IsBound() ? op->GetTuple(temp0) : op->vtkArrayIteratorTemplate::GetTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_IdE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_IdE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_IdE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_IdE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_IdE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkArrayIteratorTemplate_IdE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_IdE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_IdE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_IdE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_IdE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetTuple", PyvtkArrayIteratorTemplate_IdE_GetTuple, METH_VARARGS, "V.GetTuple(int) -> (float, ...)\nC++: double *GetTuple(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_IdE_GetValue, METH_VARARGS, "V.GetValue(int) -> float\nC++: double &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_IdE_SetValue, METH_VARARGS, "V.SetValue(int, float)\nC++: void SetValue(vtkIdType id, double value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_IdE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_IdE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_IdE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_IdE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_IdE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_IdE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_IdE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_IdE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_IdE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_IdE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_IdE_Type, PyvtkArrayIteratorTemplate_IdE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_IdE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_IdE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_I12vtkStdStringE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_I12vtkStdStringE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkStdString *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; vtkStdString temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_I12vtkStdStringE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_I12vtkStdStringE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_I12vtkStdStringE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_I12vtkStdStringE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase)\n -> vtkArrayIteratorTemplate_I12vtkStdStringE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_I12vtkStdStringE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_I12vtkStdStringE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_I12vtkStdStringE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetValue, METH_VARARGS, "V.GetValue(int) -> string\nC++: vtkStdString &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_I12vtkStdStringE_SetValue, METH_VARARGS, "V.SetValue(int, string)\nC++: void SetValue(vtkIdType id, vtkStdString value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_I12vtkStdStringE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_I12vtkStdStringE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_I12vtkStdStringE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_I12vtkStdStringE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_I12vtkStdStringE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_I12vtkStdStringE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_I12vtkStdStringE_Type, PyvtkArrayIteratorTemplate_I12vtkStdStringE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_I12vtkStdStringE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_I12vtkStdStringE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkUnicodeString *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(*tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; vtkUnicodeString temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase)\n -> vtkArrayIteratorTemplate_I16vtkUnicodeStringE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_I16vtkUnicodeStringE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetValue, METH_VARARGS, "V.GetValue(int) -> unicode\nC++: vtkUnicodeString &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_SetValue, METH_VARARGS, "V.SetValue(int, unicode)\nC++: void SetValue(vtkIdType id, vtkUnicodeString value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_I16vtkUnicodeStringE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Type, PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkArrayIteratorTemplate_I10vtkVariantE_ClassNew(); } #ifndef DECLARED_PyvtkArrayIterator_ClassNew extern "C" { PyObject *PyvtkArrayIterator_ClassNew(); } #define DECLARED_PyvtkArrayIterator_ClassNew #endif static const char *PyvtkArrayIteratorTemplate_I10vtkVariantE_Doc = "vtkArrayIteratorTemplate- Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n"; static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkArrayIteratorTemplate::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkArrayIteratorTemplate::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkArrayIteratorTemplate *tempr = vtkArrayIteratorTemplate::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkArrayIteratorTemplate *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkArrayIteratorTemplate::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkArrayIteratorTemplate::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAbstractArray *tempr = (ap.IsBound() ? op->GetArray() : op->vtkArrayIteratorTemplate::GetArray()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVariant *tempr = (ap.IsBound() ? &op->GetValue(temp0) : &op->vtkArrayIteratorTemplate::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(tempr, "vtkVariant"); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); vtkIdType temp0; vtkVariant *temp1 = nullptr; PyObject *pobj1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetSpecialObject(temp1, pobj1, "vtkVariant")) { if (ap.IsBound()) { op->SetValue(temp0, *temp1); } else { op->vtkArrayIteratorTemplate::SetValue(temp0, *temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj1); return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetNumberOfTuples(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfTuples"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfTuples() : op->vtkArrayIteratorTemplate::GetNumberOfTuples()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfValues() : op->vtkArrayIteratorTemplate::GetNumberOfValues()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkArrayIteratorTemplate::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkArrayIteratorTemplate::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkArrayIteratorTemplate_I10vtkVariantE_GetDataTypeSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataTypeSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkArrayIteratorTemplate *op = static_cast *>(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataTypeSize() : op->vtkArrayIteratorTemplate::GetDataTypeSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkArrayIteratorTemplate_I10vtkVariantE_Methods[] = { {"IsTypeOf", PyvtkArrayIteratorTemplate_I10vtkVariantE_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkArrayIteratorTemplate_I10vtkVariantE_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkArrayIteratorTemplate_I10vtkVariantE_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase)\n -> vtkArrayIteratorTemplate_I10vtkVariantE\nC++: static vtkArrayIteratorTemplate *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkArrayIteratorTemplate_I10vtkVariantE_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkArrayIteratorTemplate_I10vtkVariantE\nC++: vtkArrayIteratorTemplate *NewInstance()\n\n"}, {"Initialize", PyvtkArrayIteratorTemplate_I10vtkVariantE_Initialize, METH_VARARGS, "V.Initialize(vtkAbstractArray)\nC++: void Initialize(vtkAbstractArray *array) override;\n\nSet the array this iterator will iterate over. After Initialize()\nhas been called, the iterator is valid so long as the Array has\nnot been modified (except using the iterator itself). If the\narray is modified, the iterator must be re-initialized.\n"}, {"GetArray", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetArray, METH_VARARGS, "V.GetArray() -> vtkAbstractArray\nC++: vtkAbstractArray *GetArray()\n\nGet the array.\n"}, {"GetValue", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetValue, METH_VARARGS, "V.GetValue(int) -> vtkVariant\nC++: vtkVariant &GetValue(vtkIdType id)\n\nMust be called only after Initialize.\n"}, {"SetValue", PyvtkArrayIteratorTemplate_I10vtkVariantE_SetValue, METH_VARARGS, "V.SetValue(int, vtkVariant)\nC++: void SetValue(vtkIdType id, vtkVariant value)\n\nSets the value at the index. This does not verify if the index is\nvalid. The caller must ensure that id is less than the maximum\nnumber of values.\n"}, {"GetNumberOfTuples", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetNumberOfTuples, METH_VARARGS, "V.GetNumberOfTuples() -> int\nC++: vtkIdType GetNumberOfTuples()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfValues", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetNumberOfValues, METH_VARARGS, "V.GetNumberOfValues() -> int\nC++: vtkIdType GetNumberOfValues()\n\nMust be called only after Initialize.\n"}, {"GetNumberOfComponents", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nMust be called only after Initialize.\n"}, {"GetDataType", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType() override;\n\nGet the data type from the underlying array.\n"}, {"GetDataTypeSize", PyvtkArrayIteratorTemplate_I10vtkVariantE_GetDataTypeSize, METH_VARARGS, "V.GetDataTypeSize() -> int\nC++: int GetDataTypeSize()\n\nGet the data type size from the underlying array.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkArrayIteratorTemplate_I10vtkVariantE_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkArrayIteratorTemplate_I10vtkVariantE", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkArrayIteratorTemplate_I10vtkVariantE_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkArrayIteratorTemplate_I10vtkVariantE_StaticNew() { return vtkArrayIteratorTemplate::New(); } PyObject *PyvtkArrayIteratorTemplate_I10vtkVariantE_ClassNew() { PyVTKClass_Add( &PyvtkArrayIteratorTemplate_I10vtkVariantE_Type, PyvtkArrayIteratorTemplate_I10vtkVariantE_Methods, typeid(vtkArrayIteratorTemplate).name(), &PyvtkArrayIteratorTemplate_I10vtkVariantE_StaticNew); PyTypeObject *pytype = &PyvtkArrayIteratorTemplate_I10vtkVariantE_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkArrayIterator_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } static const char *PyvtkArrayIteratorTemplate_Doc = "vtkArrayIteratorTemplate - Implementation template for a array\niterator.\n\n" "Superclass: vtkArrayIterator\n\n" "This is implementation template for a array iterator. It only works\n" "with arrays that have a contiguous internal storage of values (as in\n" "vtkDataArray, vtkStringArray).\n\n" "\nProvided Types:\n\n" " vtkArrayIteratorTemplate[char] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[int8] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[uint8] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[int16] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[uint16] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[int32] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[uint32] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[int] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[uint] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[int64] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[uint64] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[float32] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[float64] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[str] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[unicode] => vtkArrayIteratorTemplate\n" " vtkArrayIteratorTemplate[vtkVariant] => vtkArrayIteratorTemplate\n" ; PyObject *PyvtkArrayIteratorTemplate_TemplateNew() { PyObject *o; PyObject *temp = PyVTKTemplate_New("vtkCommonCorePython.vtkArrayIteratorTemplate", PyvtkArrayIteratorTemplate_Doc); o = PyvtkArrayIteratorTemplate_IcE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IaE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IhE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IsE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_ItE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IiE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IjE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IlE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_ImE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IxE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IyE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IfE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_IdE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_I12vtkStdStringE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_I16vtkUnicodeStringE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } o = PyvtkArrayIteratorTemplate_I10vtkVariantE_ClassNew(); if (o && PyVTKTemplate_AddItem(temp, o) != 0) { Py_DECREF(o); } return temp; } void PyVTKAddFile_vtkArrayIteratorTemplate( PyObject *dict) { PyObject *o; o = PyvtkArrayIteratorTemplate_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, "vtkArrayIteratorTemplate", o) != 0) { Py_DECREF(o); } }