// python wrapper for vtkExtractSelection // #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 "vtkExtractSelection.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkExtractSelection(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkExtractSelection_ClassNew(); } #ifndef DECLARED_PyvtkExtractSelectionBase_ClassNew extern "C" { PyObject *PyvtkExtractSelectionBase_ClassNew(); } #define DECLARED_PyvtkExtractSelectionBase_ClassNew #endif static const char *PyvtkExtractSelection_Doc = "vtkExtractSelection - extract a subset from a vtkDataSet.\n\n" "Superclass: vtkExtractSelectionBase\n\n" "vtkExtractSelection extracts some subset of cells and points from its\n" "input dataset. The dataset is given on its first input port. The\n" "subset is described by the contents of the vtkSelection on its second\n" "input port. Depending on the content of the vtkSelection, this will\n" "use either a vtkExtractSelectedIds, vtkExtractSelectedFrustum\n" "vtkExtractSelectedLocations or a vtkExtractSelectedThreshold to\n" "perform the extraction.\n" "@sa\n" "vtkSelection vtkExtractSelectedIds vtkExtractSelectedFrustum\n" "vtkExtractSelectedLocations vtkExtractSelectedThresholds\n\n"; static PyObject * PyvtkExtractSelection_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkExtractSelection::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractSelection_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *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->vtkExtractSelection::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractSelection_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkExtractSelection *tempr = vtkExtractSelection::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkExtractSelection_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkExtractSelection *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkExtractSelection::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 * PyvtkExtractSelection_SetShowBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetShowBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetShowBounds(temp0); } else { op->vtkExtractSelection::SetShowBounds(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractSelection_GetShowBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetShowBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetShowBounds() : op->vtkExtractSelection::GetShowBounds()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractSelection_ShowBoundsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShowBoundsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ShowBoundsOn(); } else { op->vtkExtractSelection::ShowBoundsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractSelection_ShowBoundsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShowBoundsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ShowBoundsOff(); } else { op->vtkExtractSelection::ShowBoundsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractSelection_SetUseProbeForLocations(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetUseProbeForLocations"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetUseProbeForLocations(temp0); } else { op->vtkExtractSelection::SetUseProbeForLocations(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractSelection_GetUseProbeForLocations(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetUseProbeForLocations"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetUseProbeForLocations() : op->vtkExtractSelection::GetUseProbeForLocations()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractSelection_UseProbeForLocationsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UseProbeForLocationsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UseProbeForLocationsOn(); } else { op->vtkExtractSelection::UseProbeForLocationsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractSelection_UseProbeForLocationsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UseProbeForLocationsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractSelection *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UseProbeForLocationsOff(); } else { op->vtkExtractSelection::UseProbeForLocationsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkExtractSelection_Methods[] = { {"IsTypeOf", PyvtkExtractSelection_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", PyvtkExtractSelection_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", PyvtkExtractSelection_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkExtractSelection\nC++: static vtkExtractSelection *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkExtractSelection_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkExtractSelection\nC++: vtkExtractSelection *NewInstance()\n\n"}, {"SetShowBounds", PyvtkExtractSelection_SetShowBounds, METH_VARARGS, "V.SetShowBounds(int)\nC++: virtual void SetShowBounds(int _arg)\n\nWhen On, this returns an unstructured grid that outlines\nselection area. Off is the default. Applicable only to Frustum\nselection extraction.\n"}, {"GetShowBounds", PyvtkExtractSelection_GetShowBounds, METH_VARARGS, "V.GetShowBounds() -> int\nC++: virtual int GetShowBounds()\n\nWhen On, this returns an unstructured grid that outlines\nselection area. Off is the default. Applicable only to Frustum\nselection extraction.\n"}, {"ShowBoundsOn", PyvtkExtractSelection_ShowBoundsOn, METH_VARARGS, "V.ShowBoundsOn()\nC++: virtual void ShowBoundsOn()\n\nWhen On, this returns an unstructured grid that outlines\nselection area. Off is the default. Applicable only to Frustum\nselection extraction.\n"}, {"ShowBoundsOff", PyvtkExtractSelection_ShowBoundsOff, METH_VARARGS, "V.ShowBoundsOff()\nC++: virtual void ShowBoundsOff()\n\nWhen On, this returns an unstructured grid that outlines\nselection area. Off is the default. Applicable only to Frustum\nselection extraction.\n"}, {"SetUseProbeForLocations", PyvtkExtractSelection_SetUseProbeForLocations, METH_VARARGS, "V.SetUseProbeForLocations(int)\nC++: virtual void SetUseProbeForLocations(int _arg)\n\nWhen On, vtkProbeSelectedLocations is used for extracting\nselections of content type vtkSelection::LOCATIONS. Default is\noff and then vtkExtractSelectedLocations is used.\n"}, {"GetUseProbeForLocations", PyvtkExtractSelection_GetUseProbeForLocations, METH_VARARGS, "V.GetUseProbeForLocations() -> int\nC++: virtual int GetUseProbeForLocations()\n\nWhen On, vtkProbeSelectedLocations is used for extracting\nselections of content type vtkSelection::LOCATIONS. Default is\noff and then vtkExtractSelectedLocations is used.\n"}, {"UseProbeForLocationsOn", PyvtkExtractSelection_UseProbeForLocationsOn, METH_VARARGS, "V.UseProbeForLocationsOn()\nC++: virtual void UseProbeForLocationsOn()\n\nWhen On, vtkProbeSelectedLocations is used for extracting\nselections of content type vtkSelection::LOCATIONS. Default is\noff and then vtkExtractSelectedLocations is used.\n"}, {"UseProbeForLocationsOff", PyvtkExtractSelection_UseProbeForLocationsOff, METH_VARARGS, "V.UseProbeForLocationsOff()\nC++: virtual void UseProbeForLocationsOff()\n\nWhen On, vtkProbeSelectedLocations is used for extracting\nselections of content type vtkSelection::LOCATIONS. Default is\noff and then vtkExtractSelectedLocations is used.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkExtractSelection_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersExtractionPython.vtkExtractSelection", // 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 PyvtkExtractSelection_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 *PyvtkExtractSelection_StaticNew() { return vtkExtractSelection::New(); } PyObject *PyvtkExtractSelection_ClassNew() { PyVTKClass_Add( &PyvtkExtractSelection_Type, PyvtkExtractSelection_Methods, "vtkExtractSelection", &PyvtkExtractSelection_StaticNew); PyTypeObject *pytype = &PyvtkExtractSelection_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 *)PyvtkExtractSelectionBase_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkExtractSelection( PyObject *dict) { PyObject *o; o = PyvtkExtractSelection_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkExtractSelection", o) != 0) { Py_DECREF(o); } }