// python wrapper for vtkRandomLayoutStrategy // #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 "vtkRandomLayoutStrategy.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkRandomLayoutStrategy(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkRandomLayoutStrategy_ClassNew(); } #ifndef DECLARED_PyvtkGraphLayoutStrategy_ClassNew extern "C" { PyObject *PyvtkGraphLayoutStrategy_ClassNew(); } #define DECLARED_PyvtkGraphLayoutStrategy_ClassNew #endif static const char *PyvtkRandomLayoutStrategy_Doc = "vtkRandomLayoutStrategy - randomly places vertices in 2 or 3\ndimensions\n\n" "Superclass: vtkGraphLayoutStrategy\n\n" "Assigns points to the vertices of a graph randomly within a bounded\n" "range.\n\n" ".SECION Thanks Thanks to Brian Wylie from Sandia National\n" "Laboratories for adding incremental layout capabilities.\n\n"; static PyObject * PyvtkRandomLayoutStrategy_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkRandomLayoutStrategy::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *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->vtkRandomLayoutStrategy::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkRandomLayoutStrategy *tempr = vtkRandomLayoutStrategy::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkRandomLayoutStrategy *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkRandomLayoutStrategy::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 * PyvtkRandomLayoutStrategy_SetRandomSeed(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRandomSeed"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetRandomSeed(temp0); } else { op->vtkRandomLayoutStrategy::SetRandomSeed(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_GetRandomSeedMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRandomSeedMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetRandomSeedMinValue() : op->vtkRandomLayoutStrategy::GetRandomSeedMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_GetRandomSeedMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRandomSeedMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetRandomSeedMaxValue() : op->vtkRandomLayoutStrategy::GetRandomSeedMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_GetRandomSeed(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRandomSeed"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetRandomSeed() : op->vtkRandomLayoutStrategy::GetRandomSeed()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SetGraphBounds_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGraphBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); double temp0; double temp1; double temp2; double temp3; double temp4; double temp5; PyObject *result = nullptr; if (op && ap.CheckArgCount(6) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetValue(temp5)) { if (ap.IsBound()) { op->SetGraphBounds(temp0, temp1, temp2, temp3, temp4, temp5); } else { op->vtkRandomLayoutStrategy::SetGraphBounds(temp0, temp1, temp2, temp3, temp4, temp5); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SetGraphBounds_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGraphBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); const int size0 = 6; double temp0[6]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetGraphBounds(temp0); } else { op->vtkRandomLayoutStrategy::SetGraphBounds(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SetGraphBounds(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 6: return PyvtkRandomLayoutStrategy_SetGraphBounds_s1(self, args); case 1: return PyvtkRandomLayoutStrategy_SetGraphBounds_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetGraphBounds"); return nullptr; } static PyObject * PyvtkRandomLayoutStrategy_GetGraphBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGraphBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); int sizer = 6; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetGraphBounds() : op->vtkRandomLayoutStrategy::GetGraphBounds()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SetAutomaticBoundsComputation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetAutomaticBoundsComputation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetAutomaticBoundsComputation(temp0); } else { op->vtkRandomLayoutStrategy::SetAutomaticBoundsComputation(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_GetAutomaticBoundsComputation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetAutomaticBoundsComputation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetAutomaticBoundsComputation() : op->vtkRandomLayoutStrategy::GetAutomaticBoundsComputation()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_AutomaticBoundsComputationOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AutomaticBoundsComputationOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->AutomaticBoundsComputationOn(); } else { op->vtkRandomLayoutStrategy::AutomaticBoundsComputationOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_AutomaticBoundsComputationOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AutomaticBoundsComputationOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->AutomaticBoundsComputationOff(); } else { op->vtkRandomLayoutStrategy::AutomaticBoundsComputationOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SetThreeDimensionalLayout(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetThreeDimensionalLayout"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetThreeDimensionalLayout(temp0); } else { op->vtkRandomLayoutStrategy::SetThreeDimensionalLayout(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_GetThreeDimensionalLayout(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetThreeDimensionalLayout"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetThreeDimensionalLayout() : op->vtkRandomLayoutStrategy::GetThreeDimensionalLayout()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_ThreeDimensionalLayoutOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ThreeDimensionalLayoutOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ThreeDimensionalLayoutOn(); } else { op->vtkRandomLayoutStrategy::ThreeDimensionalLayoutOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_ThreeDimensionalLayoutOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ThreeDimensionalLayoutOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ThreeDimensionalLayoutOff(); } else { op->vtkRandomLayoutStrategy::ThreeDimensionalLayoutOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_SetGraph(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGraph"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); vtkGraph *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkGraph")) { if (ap.IsBound()) { op->SetGraph(temp0); } else { op->vtkRandomLayoutStrategy::SetGraph(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRandomLayoutStrategy_Layout(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Layout"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRandomLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Layout(); } else { op->vtkRandomLayoutStrategy::Layout(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkRandomLayoutStrategy_Methods[] = { {"IsTypeOf", PyvtkRandomLayoutStrategy_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", PyvtkRandomLayoutStrategy_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", PyvtkRandomLayoutStrategy_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkRandomLayoutStrategy\nC++: static vtkRandomLayoutStrategy *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkRandomLayoutStrategy_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkRandomLayoutStrategy\nC++: vtkRandomLayoutStrategy *NewInstance()\n\n"}, {"SetRandomSeed", PyvtkRandomLayoutStrategy_SetRandomSeed, METH_VARARGS, "V.SetRandomSeed(int)\nC++: virtual void SetRandomSeed(int _arg)\n\nSeed the random number generator used to compute point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"GetRandomSeedMinValue", PyvtkRandomLayoutStrategy_GetRandomSeedMinValue, METH_VARARGS, "V.GetRandomSeedMinValue() -> int\nC++: virtual int GetRandomSeedMinValue()\n\nSeed the random number generator used to compute point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"GetRandomSeedMaxValue", PyvtkRandomLayoutStrategy_GetRandomSeedMaxValue, METH_VARARGS, "V.GetRandomSeedMaxValue() -> int\nC++: virtual int GetRandomSeedMaxValue()\n\nSeed the random number generator used to compute point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"GetRandomSeed", PyvtkRandomLayoutStrategy_GetRandomSeed, METH_VARARGS, "V.GetRandomSeed() -> int\nC++: virtual int GetRandomSeed()\n\nSeed the random number generator used to compute point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"SetGraphBounds", PyvtkRandomLayoutStrategy_SetGraphBounds, METH_VARARGS, "V.SetGraphBounds(float, float, float, float, float, float)\nC++: void SetGraphBounds(double, double, double, double, double,\n double)\nV.SetGraphBounds((float, float, float, float, float, float))\nC++: void SetGraphBounds(double a[6])\n\n"}, {"GetGraphBounds", PyvtkRandomLayoutStrategy_GetGraphBounds, METH_VARARGS, "V.GetGraphBounds() -> (float, float, float, float, float, float)\nC++: double *GetGraphBounds()\n\nSet / get the region in space in which to place the final graph.\nThe GraphBounds only affects the results if\nAutomaticBoundsComputation is off.\n"}, {"SetAutomaticBoundsComputation", PyvtkRandomLayoutStrategy_SetAutomaticBoundsComputation, METH_VARARGS, "V.SetAutomaticBoundsComputation(int)\nC++: virtual void SetAutomaticBoundsComputation(int _arg)\n\nTurn on/off automatic graph bounds calculation. If this boolean\nis off, then the manually specified GraphBounds is used. If on,\nthen the input's bounds us used as the graph bounds.\n"}, {"GetAutomaticBoundsComputation", PyvtkRandomLayoutStrategy_GetAutomaticBoundsComputation, METH_VARARGS, "V.GetAutomaticBoundsComputation() -> int\nC++: virtual int GetAutomaticBoundsComputation()\n\nTurn on/off automatic graph bounds calculation. If this boolean\nis off, then the manually specified GraphBounds is used. If on,\nthen the input's bounds us used as the graph bounds.\n"}, {"AutomaticBoundsComputationOn", PyvtkRandomLayoutStrategy_AutomaticBoundsComputationOn, METH_VARARGS, "V.AutomaticBoundsComputationOn()\nC++: virtual void AutomaticBoundsComputationOn()\n\nTurn on/off automatic graph bounds calculation. If this boolean\nis off, then the manually specified GraphBounds is used. If on,\nthen the input's bounds us used as the graph bounds.\n"}, {"AutomaticBoundsComputationOff", PyvtkRandomLayoutStrategy_AutomaticBoundsComputationOff, METH_VARARGS, "V.AutomaticBoundsComputationOff()\nC++: virtual void AutomaticBoundsComputationOff()\n\nTurn on/off automatic graph bounds calculation. If this boolean\nis off, then the manually specified GraphBounds is used. If on,\nthen the input's bounds us used as the graph bounds.\n"}, {"SetThreeDimensionalLayout", PyvtkRandomLayoutStrategy_SetThreeDimensionalLayout, METH_VARARGS, "V.SetThreeDimensionalLayout(int)\nC++: virtual void SetThreeDimensionalLayout(int _arg)\n\nTurn on/off layout of graph in three dimensions. If off, graph\nlayout occurs in two dimensions. By default, three dimensional\nlayout is on.\n"}, {"GetThreeDimensionalLayout", PyvtkRandomLayoutStrategy_GetThreeDimensionalLayout, METH_VARARGS, "V.GetThreeDimensionalLayout() -> int\nC++: virtual int GetThreeDimensionalLayout()\n\nTurn on/off layout of graph in three dimensions. If off, graph\nlayout occurs in two dimensions. By default, three dimensional\nlayout is on.\n"}, {"ThreeDimensionalLayoutOn", PyvtkRandomLayoutStrategy_ThreeDimensionalLayoutOn, METH_VARARGS, "V.ThreeDimensionalLayoutOn()\nC++: virtual void ThreeDimensionalLayoutOn()\n\nTurn on/off layout of graph in three dimensions. If off, graph\nlayout occurs in two dimensions. By default, three dimensional\nlayout is on.\n"}, {"ThreeDimensionalLayoutOff", PyvtkRandomLayoutStrategy_ThreeDimensionalLayoutOff, METH_VARARGS, "V.ThreeDimensionalLayoutOff()\nC++: virtual void ThreeDimensionalLayoutOff()\n\nTurn on/off layout of graph in three dimensions. If off, graph\nlayout occurs in two dimensions. By default, three dimensional\nlayout is on.\n"}, {"SetGraph", PyvtkRandomLayoutStrategy_SetGraph, METH_VARARGS, "V.SetGraph(vtkGraph)\nC++: void SetGraph(vtkGraph *graph) override;\n\nSet the graph to layout.\n"}, {"Layout", PyvtkRandomLayoutStrategy_Layout, METH_VARARGS, "V.Layout()\nC++: void Layout() override;\n\nPerform the random layout.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkRandomLayoutStrategy_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkInfovisLayoutPython.vtkRandomLayoutStrategy", // 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 PyvtkRandomLayoutStrategy_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 *PyvtkRandomLayoutStrategy_StaticNew() { return vtkRandomLayoutStrategy::New(); } PyObject *PyvtkRandomLayoutStrategy_ClassNew() { PyVTKClass_Add( &PyvtkRandomLayoutStrategy_Type, PyvtkRandomLayoutStrategy_Methods, "vtkRandomLayoutStrategy", &PyvtkRandomLayoutStrategy_StaticNew); PyTypeObject *pytype = &PyvtkRandomLayoutStrategy_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 *)PyvtkGraphLayoutStrategy_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkRandomLayoutStrategy( PyObject *dict) { PyObject *o; o = PyvtkRandomLayoutStrategy_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkRandomLayoutStrategy", o) != 0) { Py_DECREF(o); } }