// python wrapper for vtkMutableDirectedGraph // #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 "vtkGraph.h" #include "vtkMutableDirectedGraph.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkMutableDirectedGraph(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkMutableDirectedGraph_ClassNew(); } #ifndef DECLARED_PyvtkDirectedGraph_ClassNew extern "C" { PyObject *PyvtkDirectedGraph_ClassNew(); } #define DECLARED_PyvtkDirectedGraph_ClassNew #endif static const char *PyvtkMutableDirectedGraph_Doc = "vtkMutableDirectedGraph - An editable directed graph.\n\n" "Superclass: vtkDirectedGraph\n\n" "vtkMutableDirectedGraph is a directed graph which has additional\n" "methods for adding edges and vertices. AddChild() is a convenience\n" "method for constructing trees. ShallowCopy(), DeepCopy(),\n" "CheckedShallowCopy() and CheckedDeepCopy() will succeed for instances\n" "of vtkDirectedGraph, vtkMutableDirectedGraph and vtkTree.\n\n" "@sa\n" "vtkDirectedGraph vtkGraph vtkTree\n\n"; static PyObject * PyvtkMutableDirectedGraph_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkMutableDirectedGraph::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *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->vtkMutableDirectedGraph::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkMutableDirectedGraph *tempr = vtkMutableDirectedGraph::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkMutableDirectedGraph *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkMutableDirectedGraph::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 * PyvtkMutableDirectedGraph_SetNumberOfVertices(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfVertices"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkIdType tempr = (ap.IsBound() ? op->SetNumberOfVertices(temp0) : op->vtkMutableDirectedGraph::SetNumberOfVertices(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddVertex_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->AddVertex() : op->vtkMutableDirectedGraph::AddVertex()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddVertex_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariantArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkVariantArray")) { vtkIdType tempr = (ap.IsBound() ? op->AddVertex(temp0) : op->vtkMutableDirectedGraph::AddVertex(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddVertex_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariant *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVariant")) { vtkIdType tempr = (ap.IsBound() ? op->AddVertex(*temp0) : op->vtkMutableDirectedGraph::AddVertex(*temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkMutableDirectedGraph_AddVertex_Methods[] = { {nullptr, PyvtkMutableDirectedGraph_AddVertex_s2, METH_VARARGS, "@V *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_AddVertex_s3, METH_VARARGS, "@W vtkVariant"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkMutableDirectedGraph_AddVertex(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkMutableDirectedGraph_AddVertex_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkMutableDirectedGraph_AddVertex_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "AddVertex"); return nullptr; } static PyObject * PyvtkMutableDirectedGraph_AddEdge_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkEdgeType tempr = (ap.IsBound() ? op->AddEdge(temp0, temp1) : op->vtkMutableDirectedGraph::AddEdge(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkEdgeType"); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddEdge_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetVTKObject(temp2, "vtkVariantArray")) { vtkEdgeType tempr = (ap.IsBound() ? op->AddEdge(temp0, temp1, temp2) : op->vtkMutableDirectedGraph::AddEdge(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkEdgeType"); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddEdge_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariant *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkIdType temp1; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetSpecialObject(temp0, pobj0, "vtkVariant") && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { vtkEdgeType tempr = (ap.IsBound() ? op->AddEdge(*temp0, temp1, temp2) : op->vtkMutableDirectedGraph::AddEdge(*temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkEdgeType"); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkMutableDirectedGraph_AddEdge_s4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkVariant *temp1 = nullptr; PyObject *pobj1 = nullptr; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetValue(temp0) && ap.GetSpecialObject(temp1, pobj1, "vtkVariant") && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { vtkEdgeType tempr = (ap.IsBound() ? op->AddEdge(temp0, *temp1, temp2) : op->vtkMutableDirectedGraph::AddEdge(temp0, *temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkEdgeType"); } } Py_XDECREF(pobj1); return result; } static PyObject * PyvtkMutableDirectedGraph_AddEdge_s5(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariant *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkVariant *temp1 = nullptr; PyObject *pobj1 = nullptr; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetSpecialObject(temp0, pobj0, "vtkVariant") && ap.GetSpecialObject(temp1, pobj1, "vtkVariant") && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { vtkEdgeType tempr = (ap.IsBound() ? op->AddEdge(*temp0, *temp1, temp2) : op->vtkMutableDirectedGraph::AddEdge(*temp0, *temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkEdgeType"); } } Py_XDECREF(pobj0); Py_XDECREF(pobj1); return result; } static PyMethodDef PyvtkMutableDirectedGraph_AddEdge_Methods[] = { {nullptr, PyvtkMutableDirectedGraph_AddEdge_s1, METH_VARARGS, "@kk"}, {nullptr, PyvtkMutableDirectedGraph_AddEdge_s2, METH_VARARGS, "@kkV *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_AddEdge_s3, METH_VARARGS, "@Wk|V vtkVariant *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_AddEdge_s4, METH_VARARGS, "@kW|V vtkVariant *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_AddEdge_s5, METH_VARARGS, "@WW|V vtkVariant vtkVariant *vtkVariantArray"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkMutableDirectedGraph_AddEdge(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkMutableDirectedGraph_AddEdge_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: case 3: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "AddEdge"); return nullptr; } static PyObject * PyvtkMutableDirectedGraph_LazyAddVertex_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->LazyAddVertex(); } else { op->vtkMutableDirectedGraph::LazyAddVertex(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkMutableDirectedGraph_LazyAddVertex_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariantArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkVariantArray")) { if (ap.IsBound()) { op->LazyAddVertex(temp0); } else { op->vtkMutableDirectedGraph::LazyAddVertex(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkMutableDirectedGraph_LazyAddVertex_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariant *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkVariant")) { if (ap.IsBound()) { op->LazyAddVertex(*temp0); } else { op->vtkMutableDirectedGraph::LazyAddVertex(*temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkMutableDirectedGraph_LazyAddVertex_Methods[] = { {nullptr, PyvtkMutableDirectedGraph_LazyAddVertex_s2, METH_VARARGS, "@V *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_LazyAddVertex_s3, METH_VARARGS, "@W vtkVariant"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkMutableDirectedGraph_LazyAddVertex(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkMutableDirectedGraph_LazyAddVertex_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkMutableDirectedGraph_LazyAddVertex_s1(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "LazyAddVertex"); return nullptr; } static PyObject * PyvtkMutableDirectedGraph_LazyAddEdge_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetValue(temp0) && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { if (ap.IsBound()) { op->LazyAddEdge(temp0, temp1, temp2); } else { op->vtkMutableDirectedGraph::LazyAddEdge(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkMutableDirectedGraph_LazyAddEdge_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariant *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkIdType temp1; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetSpecialObject(temp0, pobj0, "vtkVariant") && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { if (ap.IsBound()) { op->LazyAddEdge(*temp0, temp1, temp2); } else { op->vtkMutableDirectedGraph::LazyAddEdge(*temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkMutableDirectedGraph_LazyAddEdge_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkVariant *temp1 = nullptr; PyObject *pobj1 = nullptr; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetValue(temp0) && ap.GetSpecialObject(temp1, pobj1, "vtkVariant") && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { if (ap.IsBound()) { op->LazyAddEdge(temp0, *temp1, temp2); } else { op->vtkMutableDirectedGraph::LazyAddEdge(temp0, *temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj1); return result; } static PyObject * PyvtkMutableDirectedGraph_LazyAddEdge_s4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LazyAddEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkVariant *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkVariant *temp1 = nullptr; PyObject *pobj1 = nullptr; vtkVariantArray *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetSpecialObject(temp0, pobj0, "vtkVariant") && ap.GetSpecialObject(temp1, pobj1, "vtkVariant") && (ap.NoArgsLeft() || ap.GetVTKObject(temp2, "vtkVariantArray"))) { if (ap.IsBound()) { op->LazyAddEdge(*temp0, *temp1, temp2); } else { op->vtkMutableDirectedGraph::LazyAddEdge(*temp0, *temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj0); Py_XDECREF(pobj1); return result; } static PyMethodDef PyvtkMutableDirectedGraph_LazyAddEdge_Methods[] = { {nullptr, PyvtkMutableDirectedGraph_LazyAddEdge_s1, METH_VARARGS, "@kk|V *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_LazyAddEdge_s2, METH_VARARGS, "@Wk|V vtkVariant *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_LazyAddEdge_s3, METH_VARARGS, "@kW|V vtkVariant *vtkVariantArray"}, {nullptr, PyvtkMutableDirectedGraph_LazyAddEdge_s4, METH_VARARGS, "@WW|V vtkVariant vtkVariant *vtkVariantArray"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkMutableDirectedGraph_LazyAddEdge(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkMutableDirectedGraph_LazyAddEdge_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: case 3: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "LazyAddEdge"); return nullptr; } static PyObject * PyvtkMutableDirectedGraph_AddGraphEdge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddGraphEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkGraphEdge *tempr = (ap.IsBound() ? op->AddGraphEdge(temp0, temp1) : op->vtkMutableDirectedGraph::AddGraphEdge(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddChild_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddChild"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; vtkVariantArray *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkVariantArray")) { vtkIdType tempr = (ap.IsBound() ? op->AddChild(temp0, temp1) : op->vtkMutableDirectedGraph::AddChild(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddChild_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddChild"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkIdType tempr = (ap.IsBound() ? op->AddChild(temp0) : op->vtkMutableDirectedGraph::AddChild(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkMutableDirectedGraph_AddChild(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkMutableDirectedGraph_AddChild_s1(self, args); case 1: return PyvtkMutableDirectedGraph_AddChild_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "AddChild"); return nullptr; } static PyObject * PyvtkMutableDirectedGraph_RemoveVertex(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveVertex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RemoveVertex(temp0); } else { op->vtkMutableDirectedGraph::RemoveVertex(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkMutableDirectedGraph_RemoveEdge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveEdge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RemoveEdge(temp0); } else { op->vtkMutableDirectedGraph::RemoveEdge(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkMutableDirectedGraph_RemoveVertices(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveVertices"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdTypeArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkIdTypeArray")) { if (ap.IsBound()) { op->RemoveVertices(temp0); } else { op->vtkMutableDirectedGraph::RemoveVertices(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkMutableDirectedGraph_RemoveEdges(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveEdges"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkMutableDirectedGraph *op = static_cast(vp); vtkIdTypeArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkIdTypeArray")) { if (ap.IsBound()) { op->RemoveEdges(temp0); } else { op->vtkMutableDirectedGraph::RemoveEdges(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkMutableDirectedGraph_Methods[] = { {"IsTypeOf", PyvtkMutableDirectedGraph_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", PyvtkMutableDirectedGraph_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", PyvtkMutableDirectedGraph_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkMutableDirectedGraph\nC++: static vtkMutableDirectedGraph *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkMutableDirectedGraph_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkMutableDirectedGraph\nC++: vtkMutableDirectedGraph *NewInstance()\n\n"}, {"SetNumberOfVertices", PyvtkMutableDirectedGraph_SetNumberOfVertices, METH_VARARGS, "V.SetNumberOfVertices(int) -> int\nC++: virtual vtkIdType SetNumberOfVertices(vtkIdType numVerts)\n\nAllocates space for the specified number of vertices in the\ngraph's internal data structures.\n\n* This has no effect on the number of vertex coordinate tuples or\n* vertex attribute tuples allocated; you are responsible for\n* guaranteeing these match.\n* Also, this call is not implemented for distributed-memory\n graphs since\n* the semantics are unclear; calling this function on a graph\n with a\n* non-nullptr DistributedGraphHelper will generate an error\n message and\n* no allocation will be performed.\n"}, {"AddVertex", PyvtkMutableDirectedGraph_AddVertex, METH_VARARGS, "V.AddVertex() -> int\nC++: vtkIdType AddVertex()\nV.AddVertex(vtkVariantArray) -> int\nC++: vtkIdType AddVertex(vtkVariantArray *propertyArr)\nV.AddVertex(vtkVariant) -> int\nC++: vtkIdType AddVertex(const vtkVariant &pedigreeId)\n\nAdds a vertex to the graph and returns the index of the new\nvertex.\n\n*\n\note In a distributed graph (i.e. a graph whose DistributedHelper\n* is non-null), this routine cannot be used to add a vertex\n* if the vertices in the graph have pedigree IDs, because this\n routine\n* will always add the vertex locally, which may conflict with the\n* proper location of the vertex based on the distribution of the\n* pedigree IDs.\n"}, {"AddEdge", PyvtkMutableDirectedGraph_AddEdge, METH_VARARGS, "V.AddEdge(int, int) -> vtkEdgeType\nC++: vtkEdgeType AddEdge(vtkIdType u, vtkIdType v)\nV.AddEdge(int, int, vtkVariantArray) -> vtkEdgeType\nC++: vtkEdgeType AddEdge(vtkIdType u, vtkIdType v,\n vtkVariantArray *propertyArr)\nV.AddEdge(vtkVariant, int, vtkVariantArray) -> vtkEdgeType\nC++: vtkEdgeType AddEdge(const vtkVariant &u, vtkIdType v,\n vtkVariantArray *propertyArr=nullptr)\nV.AddEdge(int, vtkVariant, vtkVariantArray) -> vtkEdgeType\nC++: vtkEdgeType AddEdge(vtkIdType u, const vtkVariant &v,\n vtkVariantArray *propertyArr=nullptr)\nV.AddEdge(vtkVariant, vtkVariant, vtkVariantArray) -> vtkEdgeType\nC++: vtkEdgeType AddEdge(const vtkVariant &u, const vtkVariant &v,\n vtkVariantArray *propertyArr=nullptr)\n\nAdds a directed edge from u to v, where u and v are vertex\nindices, and returns a vtkEdgeType structure describing that\nedge.\n\n* vtkEdgeType contains fields for Source vertex index,\n* Target vertex index, and edge index Id.\n"}, {"LazyAddVertex", PyvtkMutableDirectedGraph_LazyAddVertex, METH_VARARGS, "V.LazyAddVertex()\nC++: void LazyAddVertex()\nV.LazyAddVertex(vtkVariantArray)\nC++: void LazyAddVertex(vtkVariantArray *propertyArr)\nV.LazyAddVertex(vtkVariant)\nC++: void LazyAddVertex(const vtkVariant &pedigreeId)\n\nAdds a vertex to the graph.\n\n* This method is lazily evaluated for distributed graphs (i.e.\n graphs\n* whose DistributedHelper is non-null) the next time Synchronize\n is\n* called on the helper.\n"}, {"LazyAddEdge", PyvtkMutableDirectedGraph_LazyAddEdge, METH_VARARGS, "V.LazyAddEdge(int, int, vtkVariantArray)\nC++: void LazyAddEdge(vtkIdType u, vtkIdType v,\n vtkVariantArray *propertyArr=nullptr)\nV.LazyAddEdge(vtkVariant, int, vtkVariantArray)\nC++: void LazyAddEdge(const vtkVariant &u, vtkIdType v,\n vtkVariantArray *propertyArr=nullptr)\nV.LazyAddEdge(int, vtkVariant, vtkVariantArray)\nC++: void LazyAddEdge(vtkIdType u, const vtkVariant &v,\n vtkVariantArray *propertyArr=nullptr)\nV.LazyAddEdge(vtkVariant, vtkVariant, vtkVariantArray)\nC++: void LazyAddEdge(const vtkVariant &u, const vtkVariant &v,\n vtkVariantArray *propertyArr=nullptr)\n\nAdds a directed edge from u to v, where u and v are vertex\nindices.\n\n* The number and order of values in the optional parameter\n* propertyArr must match up with the arrays in the edge data\n* retrieved by GetEdgeData().\n\n* This method is lazily evaluated for distributed graphs (i.e.\n graphs\n* whose DistributedHelper is non-null) the next time Synchronize\n is\n* called on the helper.\n"}, {"AddGraphEdge", PyvtkMutableDirectedGraph_AddGraphEdge, METH_VARARGS, "V.AddGraphEdge(int, int) -> vtkGraphEdge\nC++: vtkGraphEdge *AddGraphEdge(vtkIdType u, vtkIdType v)\n\nVariant of AddEdge() that returns a heavyweight vtkGraphEdge\nobject. The graph owns the reference of the edge and will replace\nits contents on the next call to AddGraphEdge().\n\n*\n\note This is a less efficient method for use with wrappers.\n* In C++ you should use the faster AddEdge().\n"}, {"AddChild", PyvtkMutableDirectedGraph_AddChild, METH_VARARGS, "V.AddChild(int, vtkVariantArray) -> int\nC++: vtkIdType AddChild(vtkIdType parent,\n vtkVariantArray *propertyArr)\nV.AddChild(int) -> int\nC++: vtkIdType AddChild(vtkIdType parent)\n\nConvenience method for creating trees. Returns the newly created\nvertex id. Shortcut forvtkIdType v = g->AddVertex();\ng->AddEdge(parent, v);\nIf non-null, propertyArr provides edge properties for the\nnewly-created edge. The values in propertyArr must match up with\nthe arrays in the edge data returned by GetEdgeData().\n"}, {"RemoveVertex", PyvtkMutableDirectedGraph_RemoveVertex, METH_VARARGS, "V.RemoveVertex(int)\nC++: void RemoveVertex(vtkIdType v)\n\nRemoves the vertex from the graph along with any connected edges.\nNote: This invalidates the last vertex index, which is reassigned\nto v.\n"}, {"RemoveEdge", PyvtkMutableDirectedGraph_RemoveEdge, METH_VARARGS, "V.RemoveEdge(int)\nC++: void RemoveEdge(vtkIdType e)\n\nRemoves the edge from the graph. Note: This invalidates the last\nedge index, which is reassigned to e.\n"}, {"RemoveVertices", PyvtkMutableDirectedGraph_RemoveVertices, METH_VARARGS, "V.RemoveVertices(vtkIdTypeArray)\nC++: void RemoveVertices(vtkIdTypeArray *arr)\n\nRemoves a collection of vertices from the graph along with any\nconnected edges.\n"}, {"RemoveEdges", PyvtkMutableDirectedGraph_RemoveEdges, METH_VARARGS, "V.RemoveEdges(vtkIdTypeArray)\nC++: void RemoveEdges(vtkIdTypeArray *arr)\n\nRemoves a collection of edges from the graph.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkMutableDirectedGraph_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkMutableDirectedGraph", // 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 PyvtkMutableDirectedGraph_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 *PyvtkMutableDirectedGraph_StaticNew() { return vtkMutableDirectedGraph::New(); } PyObject *PyvtkMutableDirectedGraph_ClassNew() { PyVTKClass_Add( &PyvtkMutableDirectedGraph_Type, PyvtkMutableDirectedGraph_Methods, "vtkMutableDirectedGraph", &PyvtkMutableDirectedGraph_StaticNew); PyTypeObject *pytype = &PyvtkMutableDirectedGraph_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 *)PyvtkDirectedGraph_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkMutableDirectedGraph( PyObject *dict) { PyObject *o; o = PyvtkMutableDirectedGraph_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkMutableDirectedGraph", o) != 0) { Py_DECREF(o); } }