// python wrapper for vtkHyperOctreeClipCutPointsGrabber // #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 "vtkHyperOctreeClipCutPointsGrabber.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkHyperOctreeClipCutPointsGrabber(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkHyperOctreeClipCutPointsGrabber_ClassNew(); } #ifndef DECLARED_PyvtkHyperOctreePointsGrabber_ClassNew extern "C" { PyObject *PyvtkHyperOctreePointsGrabber_ClassNew(); } #define DECLARED_PyvtkHyperOctreePointsGrabber_ClassNew #endif static const char *PyvtkHyperOctreeClipCutPointsGrabber_Doc = "vtkHyperOctreeClipCutPointsGrabber - A concrete implementation of\nvtkHyperOctreePointsGrabber used by vtkClipHyperOctree and\nvtkHyperOctreeCutter.\n\n" "Superclass: vtkHyperOctreePointsGrabber\n\n" "@sa\n" "vtkHyperOctreeClipCut, vtkHyperOctreeClipCutClipCutPointsGrabber,\n" "vtkClipHyperOctree, vtkHyperOctreeClipCutCutter\n\n"; static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkHyperOctreeClipCutPointsGrabber::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *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->vtkHyperOctreeClipCutPointsGrabber::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkHyperOctreeClipCutPointsGrabber *tempr = vtkHyperOctreeClipCutPointsGrabber::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkHyperOctreeClipCutPointsGrabber *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkHyperOctreeClipCutPointsGrabber::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 * PyvtkHyperOctreeClipCutPointsGrabber_SetDimension(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDimension"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDimension(temp0); } else { op->vtkHyperOctreeClipCutPointsGrabber::SetDimension(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_InitPointInsertion(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InitPointInsertion"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->InitPointInsertion(); } else { op->vtkHyperOctreeClipCutPointsGrabber::InitPointInsertion(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_InsertPoint(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); vtkIdType temp0; const int size1 = 3; double temp1[3]; double save1[3]; const int size2 = 3; double temp2[3]; double save2[3]; const int size3 = 3; int temp3[3]; int save3[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2) && ap.GetArray(temp3, size3)) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); ap.SaveArray(temp3, save3, size3); if (ap.IsBound()) { op->InsertPoint(temp0, temp1, temp2, temp3); } else { op->vtkHyperOctreeClipCutPointsGrabber::InsertPoint(temp0, temp1, temp2, temp3); } 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.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_InsertPointWithMerge(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertPointWithMerge"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); vtkIdType temp0; const int size1 = 3; double temp1[3]; double save1[3]; const int size2 = 3; double temp2[3]; double save2[3]; const int size3 = 3; int temp3[3]; int save3[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetValue(temp0) && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2) && ap.GetArray(temp3, size3)) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); ap.SaveArray(temp3, save3, size3); if (ap.IsBound()) { op->InsertPointWithMerge(temp0, temp1, temp2, temp3); } else { op->vtkHyperOctreeClipCutPointsGrabber::InsertPointWithMerge(temp0, temp1, temp2, temp3); } 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.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_InsertPoint2D(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsertPoint2D"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; const int size1 = 3; int temp1[3]; int save1[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->InsertPoint2D(temp0, temp1); } else { op->vtkHyperOctreeClipCutPointsGrabber::InsertPoint2D(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_GetTriangulator(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTriangulator"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkOrderedTriangulator *tempr = (ap.IsBound() ? op->GetTriangulator() : op->vtkHyperOctreeClipCutPointsGrabber::GetTriangulator()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkHyperOctreeClipCutPointsGrabber_GetPolygon(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPolygon"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeClipCutPointsGrabber *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPolygon *tempr = (ap.IsBound() ? op->GetPolygon() : op->vtkHyperOctreeClipCutPointsGrabber::GetPolygon()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyMethodDef PyvtkHyperOctreeClipCutPointsGrabber_Methods[] = { {"IsTypeOf", PyvtkHyperOctreeClipCutPointsGrabber_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", PyvtkHyperOctreeClipCutPointsGrabber_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", PyvtkHyperOctreeClipCutPointsGrabber_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase)\n -> vtkHyperOctreeClipCutPointsGrabber\nC++: static vtkHyperOctreeClipCutPointsGrabber *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkHyperOctreeClipCutPointsGrabber_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkHyperOctreeClipCutPointsGrabber\nC++: vtkHyperOctreeClipCutPointsGrabber *NewInstance()\n\n"}, {"SetDimension", PyvtkHyperOctreeClipCutPointsGrabber_SetDimension, METH_VARARGS, "V.SetDimension(int)\nC++: void SetDimension(int dim) override;\n\nSet the dimension of the hyperoctree.\n\\pre valid_dim: (dim==2 || dim==3)\n\\post is_set: GetDimension()==dim\n"}, {"InitPointInsertion", PyvtkHyperOctreeClipCutPointsGrabber_InitPointInsertion, METH_VARARGS, "V.InitPointInsertion()\nC++: void InitPointInsertion() override;\n\nInitialize the points insertion scheme. Actually, it is just a\ntrick to initialize the IdSet from the filter. The IdSet class\ncannot be shared with the filter because it is a Pimpl. It is\nused by clip,cut and contour filters to build the points that lie\non an hyperoctant.\n\\pre only_in_3d: GetDimension()==3\n"}, {"InsertPoint", PyvtkHyperOctreeClipCutPointsGrabber_InsertPoint, METH_VARARGS, "V.InsertPoint(int, [float, float, float], [float, float, float],\n [int, int, int])\nC++: void InsertPoint(vtkIdType ptId, double pt[3],\n double pcoords[3], int ijk[3]) override;\n\nInsert a point, assuming the point is unique and does not require\na locator. Tt does not mean it does not use a locator. It just\nmean that some implementation may skip the use of a locator.\n"}, {"InsertPointWithMerge", PyvtkHyperOctreeClipCutPointsGrabber_InsertPointWithMerge, METH_VARARGS, "V.InsertPointWithMerge(int, [float, float, float], [float, float,\n float], [int, int, int])\nC++: void InsertPointWithMerge(vtkIdType ptId, double pt[3],\n double pcoords[3], int ijk[3]) override;\n\nInsert a point using a locator.\n"}, {"InsertPoint2D", PyvtkHyperOctreeClipCutPointsGrabber_InsertPoint2D, METH_VARARGS, "V.InsertPoint2D([float, float, float], [int, int, int])\nC++: void InsertPoint2D(double pt[3], int ijk[3]) override;\n\nInsert a point in the quadtree case.\n"}, {"GetTriangulator", PyvtkHyperOctreeClipCutPointsGrabber_GetTriangulator, METH_VARARGS, "V.GetTriangulator() -> vtkOrderedTriangulator\nC++: vtkOrderedTriangulator *GetTriangulator()\n\nReturn the ordered triangulator.\n"}, {"GetPolygon", PyvtkHyperOctreeClipCutPointsGrabber_GetPolygon, METH_VARARGS, "V.GetPolygon() -> vtkPolygon\nC++: vtkPolygon *GetPolygon()\n\nReturn the polygon.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkHyperOctreeClipCutPointsGrabber_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersHyperTreePython.vtkHyperOctreeClipCutPointsGrabber", // 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 PyvtkHyperOctreeClipCutPointsGrabber_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 *PyvtkHyperOctreeClipCutPointsGrabber_StaticNew() { return vtkHyperOctreeClipCutPointsGrabber::New(); } PyObject *PyvtkHyperOctreeClipCutPointsGrabber_ClassNew() { PyVTKClass_Add( &PyvtkHyperOctreeClipCutPointsGrabber_Type, PyvtkHyperOctreeClipCutPointsGrabber_Methods, "vtkHyperOctreeClipCutPointsGrabber", &PyvtkHyperOctreeClipCutPointsGrabber_StaticNew); PyTypeObject *pytype = &PyvtkHyperOctreeClipCutPointsGrabber_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 *)PyvtkHyperOctreePointsGrabber_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkHyperOctreeClipCutPointsGrabber( PyObject *dict) { PyObject *o; o = PyvtkHyperOctreeClipCutPointsGrabber_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkHyperOctreeClipCutPointsGrabber", o) != 0) { Py_DECREF(o); } }