// python wrapper for vtkExtractPoints // #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 "vtkExtractPoints.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkExtractPoints(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkExtractPoints_ClassNew(); } #ifndef DECLARED_PyvtkPointCloudFilter_ClassNew extern "C" { PyObject *PyvtkPointCloudFilter_ClassNew(); } #define DECLARED_PyvtkPointCloudFilter_ClassNew #endif static const char *PyvtkExtractPoints_Doc = "vtkExtractPoints - extract points within an implicit function\n\n" "Superclass: vtkPointCloudFilter\n\n" "vtkExtractPoints removes points that are either inside or outside of\n" "a vtkImplicitFunction. Implicit functions in VTK defined as function\n" "of the form f(x,y,z)=c, where values c<=0 are interior values of the\n" "implicit function. Typical examples include planes, spheres,\n" "cylinders, cones, etc. plus boolean combinations of these functions.\n" "(This operation presumes closure on the set, so points on the\n" "boundary are also considered to be inside.)\n\n" "Note that while any vtkPointSet type can be provided as input, the\n" "output is represented by an explicit representation of points via a\n" "vtkPolyData. This output polydata will populate its instance of\n" "vtkPoints, but no cells will be defined (i.e., no vtkVertex or\n" "vtkPolyVertex are contained in the output). Also, after filter\n" "execution, the user can request a vtkIdType* map which indicates how\n" "the input points were mapped to the output. A value of map[i] (where\n" "i is the ith input point) less than 0 means that the ith input point\n" "was removed. (See also the superclass documentation for accessing the\n" "removed points through the filter's second output.)\n\n" "@warning\n" "This class has been threaded with vtkSMPTools. Using TBB or other\n" "non-sequential type (set in the CMake variable\n" "VTK_SMP_IMPLEMENTATION_TYPE) may improve performance significantly.\n\n" "@sa\n" "vtkPointCloudFilter vtkRadiusOutlierRemoval\n" "vtkStatisticalOutlierRemoval vtkThresholdPoints vtkImplicitFunction\n" "vtkExtractGeoemtry vtkFitImplicitFunction\n\n"; static PyObject * PyvtkExtractPoints_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkExtractPoints::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractPoints_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *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->vtkExtractPoints::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractPoints_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkExtractPoints *tempr = vtkExtractPoints::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkExtractPoints_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkExtractPoints *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkExtractPoints::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 * PyvtkExtractPoints_SetImplicitFunction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetImplicitFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); vtkImplicitFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkImplicitFunction")) { if (ap.IsBound()) { op->SetImplicitFunction(temp0); } else { op->vtkExtractPoints::SetImplicitFunction(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractPoints_GetImplicitFunction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetImplicitFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkImplicitFunction *tempr = (ap.IsBound() ? op->GetImplicitFunction() : op->vtkExtractPoints::GetImplicitFunction()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkExtractPoints_SetExtractInside(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetExtractInside"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetExtractInside(temp0); } else { op->vtkExtractPoints::SetExtractInside(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractPoints_GetExtractInside(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetExtractInside"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { bool tempr = (ap.IsBound() ? op->GetExtractInside() : op->vtkExtractPoints::GetExtractInside()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractPoints_ExtractInsideOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ExtractInsideOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ExtractInsideOn(); } else { op->vtkExtractPoints::ExtractInsideOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractPoints_ExtractInsideOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ExtractInsideOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ExtractInsideOff(); } else { op->vtkExtractPoints::ExtractInsideOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractPoints_GetMTime(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractPoints *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetMTime() : op->vtkExtractPoints::GetMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkExtractPoints_Methods[] = { {"IsTypeOf", PyvtkExtractPoints_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nStandard methods for instantiating, obtaining type information,\nand printing information.\n"}, {"IsA", PyvtkExtractPoints_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nStandard methods for instantiating, obtaining type information,\nand printing information.\n"}, {"SafeDownCast", PyvtkExtractPoints_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkExtractPoints\nC++: static vtkExtractPoints *SafeDownCast(vtkObjectBase *o)\n\nStandard methods for instantiating, obtaining type information,\nand printing information.\n"}, {"NewInstance", PyvtkExtractPoints_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkExtractPoints\nC++: vtkExtractPoints *NewInstance()\n\nStandard methods for instantiating, obtaining type information,\nand printing information.\n"}, {"SetImplicitFunction", PyvtkExtractPoints_SetImplicitFunction, METH_VARARGS, "V.SetImplicitFunction(vtkImplicitFunction)\nC++: virtual void SetImplicitFunction(vtkImplicitFunction *)\n\nSpecify the implicit function for inside/outside checks.\n"}, {"GetImplicitFunction", PyvtkExtractPoints_GetImplicitFunction, METH_VARARGS, "V.GetImplicitFunction() -> vtkImplicitFunction\nC++: virtual vtkImplicitFunction *GetImplicitFunction()\n\nSpecify the implicit function for inside/outside checks.\n"}, {"SetExtractInside", PyvtkExtractPoints_SetExtractInside, METH_VARARGS, "V.SetExtractInside(bool)\nC++: virtual void SetExtractInside(bool _arg)\n\nBoolean controls whether to extract points that are inside of\nimplicit function (ExtractInside == true) or outside of implicit\nfunction (ExtractInside == false). By default, ExtractInside is\ntrue.\n"}, {"GetExtractInside", PyvtkExtractPoints_GetExtractInside, METH_VARARGS, "V.GetExtractInside() -> bool\nC++: virtual bool GetExtractInside()\n\nBoolean controls whether to extract points that are inside of\nimplicit function (ExtractInside == true) or outside of implicit\nfunction (ExtractInside == false). By default, ExtractInside is\ntrue.\n"}, {"ExtractInsideOn", PyvtkExtractPoints_ExtractInsideOn, METH_VARARGS, "V.ExtractInsideOn()\nC++: virtual void ExtractInsideOn()\n\nBoolean controls whether to extract points that are inside of\nimplicit function (ExtractInside == true) or outside of implicit\nfunction (ExtractInside == false). By default, ExtractInside is\ntrue.\n"}, {"ExtractInsideOff", PyvtkExtractPoints_ExtractInsideOff, METH_VARARGS, "V.ExtractInsideOff()\nC++: virtual void ExtractInsideOff()\n\nBoolean controls whether to extract points that are inside of\nimplicit function (ExtractInside == true) or outside of implicit\nfunction (ExtractInside == false). By default, ExtractInside is\ntrue.\n"}, {"GetMTime", PyvtkExtractPoints_GetMTime, METH_VARARGS, "V.GetMTime() -> int\nC++: vtkMTimeType GetMTime() override;\n\nReturn the MTime taking into account changes to the implicit\nfunction\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkExtractPoints_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersPointsPython.vtkExtractPoints", // 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 PyvtkExtractPoints_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 *PyvtkExtractPoints_StaticNew() { return vtkExtractPoints::New(); } PyObject *PyvtkExtractPoints_ClassNew() { PyVTKClass_Add( &PyvtkExtractPoints_Type, PyvtkExtractPoints_Methods, "vtkExtractPoints", &PyvtkExtractPoints_StaticNew); PyTypeObject *pytype = &PyvtkExtractPoints_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 *)PyvtkPointCloudFilter_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkExtractPoints( PyObject *dict) { PyObject *o; o = PyvtkExtractPoints_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkExtractPoints", o) != 0) { Py_DECREF(o); } }