// python wrapper for vtkUnsignedShortArray // #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 "vtkUnsignedShortArray.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkUnsignedShortArray(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkUnsignedShortArray_ClassNew(); } #ifndef DECLARED_PyvtkDataArray_ClassNew extern "C" { PyObject *PyvtkDataArray_ClassNew(); } #define DECLARED_PyvtkDataArray_ClassNew #endif static const char *PyvtkUnsignedShortArray_Doc = "vtkUnsignedShortArray - dynamic, self-adjusting array of unsigned\nshort\n\n" "Superclass: vtkDataArray\n\n" "vtkUnsignedShortArray is an array of values of type unsigned short.\n" "It provides methods for insertion and retrieval of values and will\n" "automatically resize itself to hold new data.\n\n" "The C++ standard does not define the exact size of the unsigned short\n" "type, so use of this type directly is discouraged. If an array of 16\n" "bit unsigned integers is needed, prefer vtkTypeUInt16Array to this\n" "class.\n\n"; static PyObject * PyvtkUnsignedShortArray_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkUnsignedShortArray::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *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->vtkUnsignedShortArray::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkUnsignedShortArray *tempr = vtkUnsignedShortArray::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkUnsignedShortArray *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkUnsignedShortArray::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 * PyvtkUnsignedShortArray_GetDataType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataType() : op->vtkUnsignedShortArray::GetDataType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetTypedTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTypedTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; int size1 = ap.GetArgSize(1); vtkPythonArgs::Array store1(2*size1); unsigned short *temp1 = store1.Data(); unsigned short *save1 = (size1 == 0 ? nullptr : temp1 + size1); PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.CheckSizeHint(1, size1, op->GetNumberOfComponents()) && ap.CheckPrecond((0 <= temp0 && temp0 < op->GetNumberOfTuples()), "0 <= i && i < GetNumberOfTuples()")) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->GetTypedTuple(temp0, temp1); } else { op->vtkUnsignedShortArray::GetTypedTuple(temp0, temp1); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkUnsignedShortArray_SetTypedTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTypedTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; int size1 = ap.GetArgSize(1); vtkPythonArgs::Array store1(size1); unsigned short *temp1 = store1.Data(); PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.CheckSizeHint(1, size1, op->GetNumberOfComponents()) && ap.CheckPrecond((0 <= temp0 && temp0 < op->GetNumberOfTuples()), "0 <= i && i < GetNumberOfTuples()")) { if (ap.IsBound()) { op->SetTypedTuple(temp0, temp1); } else { op->vtkUnsignedShortArray::SetTypedTuple(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkUnsignedShortArray_InsertTypedTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertTypedTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; int size1 = ap.GetArgSize(1); vtkPythonArgs::Array store1(size1); unsigned short *temp1 = store1.Data(); PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.CheckSizeHint(1, size1, op->GetNumberOfComponents()) && ap.CheckPrecond((0 <= temp0), "0 <= i")) { if (ap.IsBound()) { op->InsertTypedTuple(temp0, temp1); } else { op->vtkUnsignedShortArray::InsertTypedTuple(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkUnsignedShortArray_InsertNextTypedTuple(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertNextTypedTuple"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(size0); unsigned short *temp0 = store0.Data(); PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0) && ap.CheckSizeHint(0, size0, op->GetNumberOfComponents())) { vtkIdType tempr = (ap.IsBound() ? op->InsertNextTypedTuple(temp0) : op->vtkUnsignedShortArray::InsertNextTypedTuple(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0) && ap.CheckPrecond((0 <= temp0 && temp0 < op->GetNumberOfValues()), "0 <= id && id < GetNumberOfValues()")) { unsigned short tempr = (ap.IsBound() ? op->GetValue(temp0) : op->vtkUnsignedShortArray::GetValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; unsigned short temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.CheckPrecond((0 <= temp0 && temp0 < op->GetNumberOfValues()), "0 <= id && id < GetNumberOfValues()")) { if (ap.IsBound()) { op->SetValue(temp0, temp1); } else { op->vtkUnsignedShortArray::SetValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkUnsignedShortArray_SetNumberOfValues(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfValues"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetNumberOfValues(temp0); } else { op->vtkUnsignedShortArray::SetNumberOfValues(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkUnsignedShortArray_InsertValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; unsigned short temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.CheckPrecond((0 <= temp0), "0 <= id")) { if (ap.IsBound()) { op->InsertValue(temp0, temp1); } else { op->vtkUnsignedShortArray::InsertValue(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkUnsignedShortArray_InsertNextValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertNextValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); unsigned short temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkIdType tempr = (ap.IsBound() ? op->InsertNextValue(temp0) : op->vtkUnsignedShortArray::InsertNextValue(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetValueRange_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValueRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); int temp0; int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned short *tempr = (ap.IsBound() ? op->GetValueRange(temp0) : op->vtkUnsignedShortArray::GetValueRange(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetValueRange_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValueRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned short *tempr = (ap.IsBound() ? op->GetValueRange() : op->vtkUnsignedShortArray::GetValueRange()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetValueRange(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkUnsignedShortArray_GetValueRange_s1(self, args); case 0: return PyvtkUnsignedShortArray_GetValueRange_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetValueRange"); return nullptr; } static PyObject * PyvtkUnsignedShortArray_WritePointer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "WritePointer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { unsigned short *tempr = (ap.IsBound() ? op->WritePointer(temp0, temp1) : op->vtkUnsignedShortArray::WritePointer(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetPointer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPointer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { unsigned short *tempr = (ap.IsBound() ? op->GetPointer(temp0) : op->vtkUnsignedShortArray::GetPointer(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_SetArray_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); unsigned short *temp0; Py_buffer pbuf0 = VTK_PYBUFFER_INITIALIZER; vtkIdType temp1; int temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetBuffer(temp0, &pbuf0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { if (ap.IsBound()) { op->SetArray(temp0, temp1, temp2); } else { op->vtkUnsignedShortArray::SetArray(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } #if PY_VERSION_HEX >= 0x02060000 if (pbuf0.obj != 0) { PyBuffer_Release(&pbuf0); } #endif return result; } static PyObject * PyvtkUnsignedShortArray_SetArray_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnsignedShortArray *op = static_cast(vp); unsigned short *temp0; Py_buffer pbuf0 = VTK_PYBUFFER_INITIALIZER; vtkIdType temp1; int temp2; int temp3; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetBuffer(temp0, &pbuf0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3)) { if (ap.IsBound()) { op->SetArray(temp0, temp1, temp2, temp3); } else { op->vtkUnsignedShortArray::SetArray(temp0, temp1, temp2, temp3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } #if PY_VERSION_HEX >= 0x02060000 if (pbuf0.obj != 0) { PyBuffer_Release(&pbuf0); } #endif return result; } static PyObject * PyvtkUnsignedShortArray_SetArray(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkUnsignedShortArray_SetArray_s1(self, args); case 4: return PyvtkUnsignedShortArray_SetArray_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetArray"); return nullptr; } static PyObject * PyvtkUnsignedShortArray_FastDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "FastDownCast"); vtkAbstractArray *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAbstractArray")) { vtkUnsignedShortArray *tempr = vtkUnsignedShortArray::FastDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetDataTypeValueMin(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetDataTypeValueMin"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { unsigned short tempr = vtkUnsignedShortArray::GetDataTypeValueMin(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkUnsignedShortArray_GetDataTypeValueMax(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetDataTypeValueMax"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { unsigned short tempr = vtkUnsignedShortArray::GetDataTypeValueMax(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkUnsignedShortArray_Methods[] = { {"IsTypeOf", PyvtkUnsignedShortArray_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", PyvtkUnsignedShortArray_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", PyvtkUnsignedShortArray_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkUnsignedShortArray\nC++: static vtkUnsignedShortArray *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkUnsignedShortArray_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkUnsignedShortArray\nC++: vtkUnsignedShortArray *NewInstance()\n\n"}, {"GetDataType", PyvtkUnsignedShortArray_GetDataType, METH_VARARGS, "V.GetDataType() -> int\nC++: int GetDataType()\n\nReturn the underlying data type. An integer indicating data type\nis returned as specified in vtkType.h.\n"}, {"GetTypedTuple", PyvtkUnsignedShortArray_GetTypedTuple, METH_VARARGS, "V.GetTypedTuple(int, [int, ...])\nC++: void GetTypedTuple(vtkIdType i, unsigned short *tuple)\n\n"}, {"SetTypedTuple", PyvtkUnsignedShortArray_SetTypedTuple, METH_VARARGS, "V.SetTypedTuple(int, (int, ...))\nC++: void SetTypedTuple(vtkIdType i, const unsigned short *tuple)\n\n"}, {"InsertTypedTuple", PyvtkUnsignedShortArray_InsertTypedTuple, METH_VARARGS, "V.InsertTypedTuple(int, (int, ...))\nC++: void InsertTypedTuple(vtkIdType i,\n const unsigned short *tuple)\n\n"}, {"InsertNextTypedTuple", PyvtkUnsignedShortArray_InsertNextTypedTuple, METH_VARARGS, "V.InsertNextTypedTuple((int, ...)) -> int\nC++: vtkIdType InsertNextTypedTuple(const unsigned short *tuple)\n\n"}, {"GetValue", PyvtkUnsignedShortArray_GetValue, METH_VARARGS, "V.GetValue(int) -> int\nC++: unsigned short GetValue(vtkIdType id)\n\n"}, {"SetValue", PyvtkUnsignedShortArray_SetValue, METH_VARARGS, "V.SetValue(int, int)\nC++: void SetValue(vtkIdType id, unsigned short value)\n\n"}, {"SetNumberOfValues", PyvtkUnsignedShortArray_SetNumberOfValues, METH_VARARGS, "V.SetNumberOfValues(int)\nC++: void SetNumberOfValues(vtkIdType number)\n\nSpecify the number of values (tuples * components) for this\nobject to hold. Does an allocation as well as setting the MaxId\nivar. Used in conjunction with SetValue() method for fast\ninsertion.\n"}, {"InsertValue", PyvtkUnsignedShortArray_InsertValue, METH_VARARGS, "V.InsertValue(int, int)\nC++: void InsertValue(vtkIdType id, unsigned short f)\n\n"}, {"InsertNextValue", PyvtkUnsignedShortArray_InsertNextValue, METH_VARARGS, "V.InsertNextValue(int) -> int\nC++: vtkIdType InsertNextValue(unsigned short f)\n\n"}, {"GetValueRange", PyvtkUnsignedShortArray_GetValueRange, METH_VARARGS, "V.GetValueRange(int) -> (int, int)\nC++: unsigned short *GetValueRange(int comp)\nV.GetValueRange() -> (int, int)\nC++: unsigned short *GetValueRange()\n\n"}, {"WritePointer", PyvtkUnsignedShortArray_WritePointer, METH_VARARGS, "V.WritePointer(int, int) -> (int, ...)\nC++: unsigned short *WritePointer(vtkIdType id, vtkIdType number)\n\n"}, {"GetPointer", PyvtkUnsignedShortArray_GetPointer, METH_VARARGS, "V.GetPointer(int) -> (int, ...)\nC++: unsigned short *GetPointer(vtkIdType id)\n\n"}, {"SetArray", PyvtkUnsignedShortArray_SetArray, METH_VARARGS, "V.SetArray(int, int, int)\nC++: void SetArray(unsigned short *array, vtkIdType size,\n int save)\nV.SetArray(int, int, int, int)\nC++: void SetArray(unsigned short *array, vtkIdType size,\n int save, int deleteMethod)\n\n"}, {"FastDownCast", PyvtkUnsignedShortArray_FastDownCast, METH_VARARGS, "V.FastDownCast(vtkAbstractArray) -> vtkUnsignedShortArray\nC++: static vtkUnsignedShortArray *FastDownCast(\n vtkAbstractArray *source)\n\nA faster alternative to SafeDownCast for downcasting\nvtkAbstractArrays.\n"}, {"GetDataTypeValueMin", PyvtkUnsignedShortArray_GetDataTypeValueMin, METH_VARARGS, "V.GetDataTypeValueMin() -> int\nC++: static unsigned short GetDataTypeValueMin()\n\nGet the minimum data value in its native type.\n"}, {"GetDataTypeValueMax", PyvtkUnsignedShortArray_GetDataTypeValueMax, METH_VARARGS, "V.GetDataTypeValueMax() -> int\nC++: static unsigned short GetDataTypeValueMax()\n\nGet the maximum data value in its native type.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkUnsignedShortArray_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonCorePython.vtkUnsignedShortArray", // 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 PyvtkUnsignedShortArray_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 *PyvtkUnsignedShortArray_StaticNew() { return vtkUnsignedShortArray::New(); } PyObject *PyvtkUnsignedShortArray_ClassNew() { PyVTKClass_Add( &PyvtkUnsignedShortArray_Type, PyvtkUnsignedShortArray_Methods, "vtkUnsignedShortArray", &PyvtkUnsignedShortArray_StaticNew); PyTypeObject *pytype = &PyvtkUnsignedShortArray_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 *)PyvtkDataArray_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkUnsignedShortArray( PyObject *dict) { PyObject *o; o = PyvtkUnsignedShortArray_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkUnsignedShortArray", o) != 0) { Py_DECREF(o); } }