// python wrapper for vtkGenericEdgeTable // #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 "vtkGenericEdgeTable.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkGenericEdgeTable(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkGenericEdgeTable_ClassNew(); } #ifndef DECLARED_PyvtkObject_ClassNew extern "C" { PyObject *PyvtkObject_ClassNew(); } #define DECLARED_PyvtkObject_ClassNew #endif static const char *PyvtkGenericEdgeTable_Doc = "vtkGenericEdgeTable - keep track of edges (defined by pair of integer\nid's)\n\n" "Superclass: vtkObject\n\n" "vtkGenericEdgeTable is used to indicate the existence of and hold\n" "information about edges. Similar to vtkEdgeTable, this class is more\n" "sophisticated in that it uses reference counting to keep track of\n" "when information about an edge should be deleted.\n\n" "vtkGenericEdgeTable is a helper class used in the adaptor framework. \n" "It is used during the tessellation process to hold information about\n" "the error metric on each edge. This avoids recomputing the error\n" "metric each time the same edge is visited.\n\n"; static PyObject * PyvtkGenericEdgeTable_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkGenericEdgeTable::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *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->vtkGenericEdgeTable::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkGenericEdgeTable *tempr = vtkGenericEdgeTable::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkGenericEdgeTable *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkGenericEdgeTable::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 * PyvtkGenericEdgeTable_InsertEdge_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; vtkIdType temp2; int temp3; vtkIdType temp4; PyObject *result = nullptr; if (op && ap.CheckArgCount(5) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4)) { if (ap.IsBound()) { op->InsertEdge(temp0, temp1, temp2, temp3, temp4); } else { op->vtkGenericEdgeTable::InsertEdge(temp0, temp1, temp2, temp3, temp4); } if (!ap.ErrorOccurred()) { ap.SetArgValue(4, temp4); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_InsertEdge_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; vtkIdType temp2; int temp3 = 1; PyObject *result = nullptr; if (op && ap.CheckArgCount(3, 4) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && (ap.NoArgsLeft() || ap.GetValue(temp3))) { if (ap.IsBound()) { op->InsertEdge(temp0, temp1, temp2, temp3); } else { op->vtkGenericEdgeTable::InsertEdge(temp0, temp1, temp2, temp3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_InsertEdge(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 5: return PyvtkGenericEdgeTable_InsertEdge_s1(self, args); case 3: case 4: return PyvtkGenericEdgeTable_InsertEdge_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "InsertEdge"); return nullptr; } static PyObject * PyvtkGenericEdgeTable_RemoveEdge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { int tempr = (ap.IsBound() ? op->RemoveEdge(temp0, temp1) : op->vtkGenericEdgeTable::RemoveEdge(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_CheckEdge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CheckEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; vtkIdType temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { int tempr = (ap.IsBound() ? op->CheckEdge(temp0, temp1, temp2) : op->vtkGenericEdgeTable::CheckEdge(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { ap.SetArgValue(2, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_IncrementEdgeReferenceCount(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IncrementEdgeReferenceCount"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; vtkIdType temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { int tempr = (ap.IsBound() ? op->IncrementEdgeReferenceCount(temp0, temp1, temp2) : op->vtkGenericEdgeTable::IncrementEdgeReferenceCount(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_CheckEdgeReferenceCount(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CheckEdgeReferenceCount"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { int tempr = (ap.IsBound() ? op->CheckEdgeReferenceCount(temp0, temp1) : op->vtkGenericEdgeTable::CheckEdgeReferenceCount(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->Initialize(temp0); } else { op->vtkGenericEdgeTable::Initialize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_GetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfComponents() : op->vtkGenericEdgeTable::GetNumberOfComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_SetNumberOfComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetNumberOfComponents(temp0); } else { op->vtkGenericEdgeTable::SetNumberOfComponents(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_CheckPoint_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CheckPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->CheckPoint(temp0) : op->vtkGenericEdgeTable::CheckPoint(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_CheckPoint_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CheckPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; const int size1 = 3; double temp1[3]; double save1[3]; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); double *temp2 = store2.Data(); double *save2 = (size2 == 0 ? nullptr : temp2 + size2); PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2)) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); int tempr = (ap.IsBound() ? op->CheckPoint(temp0, temp1, temp2) : op->vtkGenericEdgeTable::CheckPoint(temp0, temp1, temp2)); if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkGenericEdgeTable_CheckPoint(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkGenericEdgeTable_CheckPoint_s1(self, args); case 3: return PyvtkGenericEdgeTable_CheckPoint_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "CheckPoint"); return nullptr; } static PyObject * PyvtkGenericEdgeTable_InsertPoint(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; const int size1 = 3; double temp1[3]; double save1[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->InsertPoint(temp0, temp1); } else { op->vtkGenericEdgeTable::InsertPoint(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 * PyvtkGenericEdgeTable_InsertPointAndScalar(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertPointAndScalar"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; const int size1 = 3; double temp1[3]; double save1[3]; int size2 = ap.GetArgSize(2); vtkPythonArgs::Array store2(2*size2); double *temp2 = store2.Data(); double *save2 = (size2 == 0 ? nullptr : temp2 + size2); PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2)) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); if (ap.IsBound()) { op->InsertPointAndScalar(temp0, temp1, temp2); } else { op->vtkGenericEdgeTable::InsertPointAndScalar(temp0, temp1, temp2); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_RemovePoint(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemovePoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RemovePoint(temp0); } else { op->vtkGenericEdgeTable::RemovePoint(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_IncrementPointReferenceCount(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IncrementPointReferenceCount"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->IncrementPointReferenceCount(temp0); } else { op->vtkGenericEdgeTable::IncrementPointReferenceCount(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_DumpTable(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DumpTable"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->DumpTable(); } else { op->vtkGenericEdgeTable::DumpTable(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkGenericEdgeTable_LoadFactor(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LoadFactor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkGenericEdgeTable *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->LoadFactor(); } else { op->vtkGenericEdgeTable::LoadFactor(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkGenericEdgeTable_Methods[] = { {"IsTypeOf", PyvtkGenericEdgeTable_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nStandard VTK type and print macros.\n"}, {"IsA", PyvtkGenericEdgeTable_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nStandard VTK type and print macros.\n"}, {"SafeDownCast", PyvtkGenericEdgeTable_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkGenericEdgeTable\nC++: static vtkGenericEdgeTable *SafeDownCast(vtkObjectBase *o)\n\nStandard VTK type and print macros.\n"}, {"NewInstance", PyvtkGenericEdgeTable_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkGenericEdgeTable\nC++: vtkGenericEdgeTable *NewInstance()\n\nStandard VTK type and print macros.\n"}, {"InsertEdge", PyvtkGenericEdgeTable_InsertEdge, METH_VARARGS, "V.InsertEdge(int, int, int, int, int)\nC++: void InsertEdge(vtkIdType e1, vtkIdType e2, vtkIdType cellId,\n int ref, vtkIdType &ptId)\nV.InsertEdge(int, int, int, int)\nC++: void InsertEdge(vtkIdType e1, vtkIdType e2, vtkIdType cellId,\n int ref=1)\n\nSplit the edge with the indicated point id.\n"}, {"RemoveEdge", PyvtkGenericEdgeTable_RemoveEdge, METH_VARARGS, "V.RemoveEdge(int, int) -> int\nC++: int RemoveEdge(vtkIdType e1, vtkIdType e2)\n\nMethod to remove an edge from the table. The method returns the\ncurrent reference count.\n"}, {"CheckEdge", PyvtkGenericEdgeTable_CheckEdge, METH_VARARGS, "V.CheckEdge(int, int, int) -> int\nC++: int CheckEdge(vtkIdType e1, vtkIdType e2, vtkIdType &ptId)\n\nMethod to determine whether an edge is in the table (0 or 1), or\nnot (-1). It returns whether the edge was split (1) or not (0),\nand the point id exists.\n"}, {"IncrementEdgeReferenceCount", PyvtkGenericEdgeTable_IncrementEdgeReferenceCount, METH_VARARGS, "V.IncrementEdgeReferenceCount(int, int, int) -> int\nC++: int IncrementEdgeReferenceCount(vtkIdType e1, vtkIdType e2,\n vtkIdType cellId)\n\nMethod that increments the referencecount and returns it.\n"}, {"CheckEdgeReferenceCount", PyvtkGenericEdgeTable_CheckEdgeReferenceCount, METH_VARARGS, "V.CheckEdgeReferenceCount(int, int) -> int\nC++: int CheckEdgeReferenceCount(vtkIdType e1, vtkIdType e2)\n\nReturn the edge reference count.\n"}, {"Initialize", PyvtkGenericEdgeTable_Initialize, METH_VARARGS, "V.Initialize(int)\nC++: void Initialize(vtkIdType start)\n\nTo specify the starting point id. It will initialize LastPointId\nThis is very sensitive the start point should be cautiously\nchosen\n"}, {"GetNumberOfComponents", PyvtkGenericEdgeTable_GetNumberOfComponents, METH_VARARGS, "V.GetNumberOfComponents() -> int\nC++: int GetNumberOfComponents()\n\nReturn the total number of components for the point-centered\nattributes.\n\\post positive_result: result>0\n"}, {"SetNumberOfComponents", PyvtkGenericEdgeTable_SetNumberOfComponents, METH_VARARGS, "V.SetNumberOfComponents(int)\nC++: void SetNumberOfComponents(int count)\n\nSet the total number of components for the point-centered\nattributes.\n\\pre positive_count: count>0\n"}, {"CheckPoint", PyvtkGenericEdgeTable_CheckPoint, METH_VARARGS, "V.CheckPoint(int) -> int\nC++: int CheckPoint(vtkIdType ptId)\nV.CheckPoint(int, [float, float, float], [float, ...]) -> int\nC++: int CheckPoint(vtkIdType ptId, double point[3],\n double *scalar)\n\nCheck if a point is already in the point table.\n"}, {"InsertPoint", PyvtkGenericEdgeTable_InsertPoint, METH_VARARGS, "V.InsertPoint(int, [float, float, float])\nC++: void InsertPoint(vtkIdType ptId, double point[3])\n\nInsert point associated with an edge.\n"}, {"InsertPointAndScalar", PyvtkGenericEdgeTable_InsertPointAndScalar, METH_VARARGS, "V.InsertPointAndScalar(int, [float, float, float], [float, ...])\nC++: void InsertPointAndScalar(vtkIdType ptId, double pt[3],\n double *s)\n\n"}, {"RemovePoint", PyvtkGenericEdgeTable_RemovePoint, METH_VARARGS, "V.RemovePoint(int)\nC++: void RemovePoint(vtkIdType ptId)\n\nRemove a point from the point table.\n"}, {"IncrementPointReferenceCount", PyvtkGenericEdgeTable_IncrementPointReferenceCount, METH_VARARGS, "V.IncrementPointReferenceCount(int)\nC++: void IncrementPointReferenceCount(vtkIdType ptId)\n\nIncrement the reference count for the indicated point.\n"}, {"DumpTable", PyvtkGenericEdgeTable_DumpTable, METH_VARARGS, "V.DumpTable()\nC++: void DumpTable()\n\nFor debugging purposes. It is particularly useful to dump the\ntable and check that nothing is left after a complete iteration.\nLoadFactor should ideally be very low to be able to have a\nconstant time access\n"}, {"LoadFactor", PyvtkGenericEdgeTable_LoadFactor, METH_VARARGS, "V.LoadFactor()\nC++: void LoadFactor()\n\nFor debugging purposes. It is particularly useful to dump the\ntable and check that nothing is left after a complete iteration.\nLoadFactor should ideally be very low to be able to have a\nconstant time access\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkGenericEdgeTable_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkGenericEdgeTable", // 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 PyvtkGenericEdgeTable_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 *PyvtkGenericEdgeTable_StaticNew() { return vtkGenericEdgeTable::New(); } PyObject *PyvtkGenericEdgeTable_ClassNew() { PyVTKClass_Add( &PyvtkGenericEdgeTable_Type, PyvtkGenericEdgeTable_Methods, "vtkGenericEdgeTable", &PyvtkGenericEdgeTable_StaticNew); PyTypeObject *pytype = &PyvtkGenericEdgeTable_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 *)PyvtkObject_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkGenericEdgeTable( PyObject *dict) { PyObject *o; o = PyvtkGenericEdgeTable_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkGenericEdgeTable", o) != 0) { Py_DECREF(o); } }