// python wrapper for vtkClipPolyData // #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 "vtkClipPolyData.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkClipPolyData(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkClipPolyData_ClassNew(); } #ifndef DECLARED_PyvtkPolyDataAlgorithm_ClassNew extern "C" { PyObject *PyvtkPolyDataAlgorithm_ClassNew(); } #define DECLARED_PyvtkPolyDataAlgorithm_ClassNew #endif static const char *PyvtkClipPolyData_Doc = "vtkClipPolyData - clip polygonal data with user-specified implicit\nfunction or input scalar data\n\n" "Superclass: vtkPolyDataAlgorithm\n\n" "vtkClipPolyData is a filter that clips polygonal data using either\n" "any subclass of vtkImplicitFunction, or the input scalar data.\n" "Clipping means that it actually \"cuts\" through the cells of the\n" "dataset, returning everything inside of the specified implicit\n" "function (or greater than the scalar value) including \"pieces\" of a\n" "cell. (Compare this with vtkExtractGeometry, which pulls out entire,\n" "uncut cells.) The output of this filter is polygonal data.\n\n" "To use this filter, you must decide if you will be clipping with an\n" "implicit function, or whether you will be using the input scalar\n" "data. If you want to clip with an implicit function, you must:\n" "1) define an implicit function\n" "2) set it with the SetClipFunction method\n" "3) apply the GenerateClipScalarsOn method If a ClipFunction is not\n" " specified, or GenerateClipScalars is off (the default), then the\n" " input's scalar data will be used to clip the polydata.\n\n" "You can also specify a scalar value, which is used to decide what is\n" "inside and outside of the implicit function. You can also reverse the\n" "sense of what inside/outside is by setting the InsideOut instance\n" "variable. (The cutting algorithm proceeds by computing an implicit\n" "function value or using the input scalar data for each point in the\n" "dataset. This is compared to the scalar value to determine\n" "inside/outside.)\n\n" "This filter can be configured to compute a second output. The second\n" "output is the polygonal data that is clipped away. Set the\n" "GenerateClippedData boolean on if you wish to access this output\n" "data.\n\n" "@warning\n" "In order to cut all types of cells in polygonal data, vtkClipPolyData\n" "triangulates some cells, and then cuts the resulting simplices (i.e.,\n" "points, lines, and triangles). This means that the resulting output\n" "may consist of different cell types than the input data.\n\n" "@sa\n" "vtkImplicitFunction vtkCutter vtkClipVolume vtkExtractGeometry\n\n"; static PyObject * PyvtkClipPolyData_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkClipPolyData::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *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->vtkClipPolyData::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkClipPolyData *tempr = vtkClipPolyData::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkClipPolyData_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkClipPolyData *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkClipPolyData::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 * PyvtkClipPolyData_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetValue(temp0); } else { op->vtkClipPolyData::SetValue(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetValue() : op->vtkClipPolyData::GetValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_SetInsideOut(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInsideOut"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetInsideOut(temp0); } else { op->vtkClipPolyData::SetInsideOut(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetInsideOut(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInsideOut"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetInsideOut() : op->vtkClipPolyData::GetInsideOut()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_InsideOutOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsideOutOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->InsideOutOn(); } else { op->vtkClipPolyData::InsideOutOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_InsideOutOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "InsideOutOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->InsideOutOff(); } else { op->vtkClipPolyData::InsideOutOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_SetClipFunction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetClipFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); vtkImplicitFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkImplicitFunction")) { if (ap.IsBound()) { op->SetClipFunction(temp0); } else { op->vtkClipPolyData::SetClipFunction(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetClipFunction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetClipFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkImplicitFunction *tempr = (ap.IsBound() ? op->GetClipFunction() : op->vtkClipPolyData::GetClipFunction()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkClipPolyData_SetGenerateClipScalars(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGenerateClipScalars"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetGenerateClipScalars(temp0); } else { op->vtkClipPolyData::SetGenerateClipScalars(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetGenerateClipScalars(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGenerateClipScalars"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetGenerateClipScalars() : op->vtkClipPolyData::GetGenerateClipScalars()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_GenerateClipScalarsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GenerateClipScalarsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->GenerateClipScalarsOn(); } else { op->vtkClipPolyData::GenerateClipScalarsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GenerateClipScalarsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GenerateClipScalarsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->GenerateClipScalarsOff(); } else { op->vtkClipPolyData::GenerateClipScalarsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_SetGenerateClippedOutput(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGenerateClippedOutput"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetGenerateClippedOutput(temp0); } else { op->vtkClipPolyData::SetGenerateClippedOutput(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetGenerateClippedOutput(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGenerateClippedOutput"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetGenerateClippedOutput() : op->vtkClipPolyData::GetGenerateClippedOutput()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_GenerateClippedOutputOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GenerateClippedOutputOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->GenerateClippedOutputOn(); } else { op->vtkClipPolyData::GenerateClippedOutputOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GenerateClippedOutputOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GenerateClippedOutputOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->GenerateClippedOutputOff(); } else { op->vtkClipPolyData::GenerateClippedOutputOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetClippedOutput(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetClippedOutput"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPolyData *tempr = (ap.IsBound() ? op->GetClippedOutput() : op->vtkClipPolyData::GetClippedOutput()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkClipPolyData_GetClippedOutputPort(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetClippedOutputPort"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAlgorithmOutput *tempr = (ap.IsBound() ? op->GetClippedOutputPort() : op->vtkClipPolyData::GetClippedOutputPort()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkClipPolyData_SetLocator(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLocator"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); vtkIncrementalPointLocator *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkIncrementalPointLocator")) { if (ap.IsBound()) { op->SetLocator(temp0); } else { op->vtkClipPolyData::SetLocator(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetLocator(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLocator"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIncrementalPointLocator *tempr = (ap.IsBound() ? op->GetLocator() : op->vtkClipPolyData::GetLocator()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkClipPolyData_CreateDefaultLocator(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CreateDefaultLocator"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->CreateDefaultLocator(); } else { op->vtkClipPolyData::CreateDefaultLocator(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetMTime(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetMTime() : op->vtkClipPolyData::GetMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkClipPolyData_SetOutputPointsPrecision(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputPointsPrecision"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetOutputPointsPrecision(temp0); } else { op->vtkClipPolyData::SetOutputPointsPrecision(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkClipPolyData_GetOutputPointsPrecision(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputPointsPrecision"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkClipPolyData *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetOutputPointsPrecision() : op->vtkClipPolyData::GetOutputPointsPrecision()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkClipPolyData_Methods[] = { {"IsTypeOf", PyvtkClipPolyData_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", PyvtkClipPolyData_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", PyvtkClipPolyData_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkClipPolyData\nC++: static vtkClipPolyData *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkClipPolyData_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkClipPolyData\nC++: vtkClipPolyData *NewInstance()\n\n"}, {"SetValue", PyvtkClipPolyData_SetValue, METH_VARARGS, "V.SetValue(float)\nC++: virtual void SetValue(double _arg)\n\nSet the clipping value of the implicit function (if clipping with\nimplicit function) or scalar value (if clipping with scalars).\nThe default value is 0.0.\n"}, {"GetValue", PyvtkClipPolyData_GetValue, METH_VARARGS, "V.GetValue() -> float\nC++: virtual double GetValue()\n\nSet the clipping value of the implicit function (if clipping with\nimplicit function) or scalar value (if clipping with scalars).\nThe default value is 0.0.\n"}, {"SetInsideOut", PyvtkClipPolyData_SetInsideOut, METH_VARARGS, "V.SetInsideOut(int)\nC++: virtual void SetInsideOut(int _arg)\n\nSet/Get the InsideOut flag. When off, a vertex is considered\ninside the implicit function if its value is greater than the\nValue ivar. When InsideOutside is turned on, a vertex is\nconsidered inside the implicit function if its implicit function\nvalue is less than or equal to the Value ivar. InsideOut is off\nby default.\n"}, {"GetInsideOut", PyvtkClipPolyData_GetInsideOut, METH_VARARGS, "V.GetInsideOut() -> int\nC++: virtual int GetInsideOut()\n\nSet/Get the InsideOut flag. When off, a vertex is considered\ninside the implicit function if its value is greater than the\nValue ivar. When InsideOutside is turned on, a vertex is\nconsidered inside the implicit function if its implicit function\nvalue is less than or equal to the Value ivar. InsideOut is off\nby default.\n"}, {"InsideOutOn", PyvtkClipPolyData_InsideOutOn, METH_VARARGS, "V.InsideOutOn()\nC++: virtual void InsideOutOn()\n\nSet/Get the InsideOut flag. When off, a vertex is considered\ninside the implicit function if its value is greater than the\nValue ivar. When InsideOutside is turned on, a vertex is\nconsidered inside the implicit function if its implicit function\nvalue is less than or equal to the Value ivar. InsideOut is off\nby default.\n"}, {"InsideOutOff", PyvtkClipPolyData_InsideOutOff, METH_VARARGS, "V.InsideOutOff()\nC++: virtual void InsideOutOff()\n\nSet/Get the InsideOut flag. When off, a vertex is considered\ninside the implicit function if its value is greater than the\nValue ivar. When InsideOutside is turned on, a vertex is\nconsidered inside the implicit function if its implicit function\nvalue is less than or equal to the Value ivar. InsideOut is off\nby default.\n"}, {"SetClipFunction", PyvtkClipPolyData_SetClipFunction, METH_VARARGS, "V.SetClipFunction(vtkImplicitFunction)\nC++: virtual void SetClipFunction(vtkImplicitFunction *)\n\nSpecify the implicit function with which to perform the clipping.\nIf you do not define an implicit function, then the input scalar\ndata will be used for clipping.\n"}, {"GetClipFunction", PyvtkClipPolyData_GetClipFunction, METH_VARARGS, "V.GetClipFunction() -> vtkImplicitFunction\nC++: virtual vtkImplicitFunction *GetClipFunction()\n\nSpecify the implicit function with which to perform the clipping.\nIf you do not define an implicit function, then the input scalar\ndata will be used for clipping.\n"}, {"SetGenerateClipScalars", PyvtkClipPolyData_SetGenerateClipScalars, METH_VARARGS, "V.SetGenerateClipScalars(int)\nC++: virtual void SetGenerateClipScalars(int _arg)\n\nIf this flag is enabled, then the output scalar values will be\ninterpolated from the implicit function values, and not the input\nscalar data. If you enable this flag but do not provide an\nimplicit function an error will be reported. GenerateClipScalars\nis off by default.\n"}, {"GetGenerateClipScalars", PyvtkClipPolyData_GetGenerateClipScalars, METH_VARARGS, "V.GetGenerateClipScalars() -> int\nC++: virtual int GetGenerateClipScalars()\n\nIf this flag is enabled, then the output scalar values will be\ninterpolated from the implicit function values, and not the input\nscalar data. If you enable this flag but do not provide an\nimplicit function an error will be reported. GenerateClipScalars\nis off by default.\n"}, {"GenerateClipScalarsOn", PyvtkClipPolyData_GenerateClipScalarsOn, METH_VARARGS, "V.GenerateClipScalarsOn()\nC++: virtual void GenerateClipScalarsOn()\n\nIf this flag is enabled, then the output scalar values will be\ninterpolated from the implicit function values, and not the input\nscalar data. If you enable this flag but do not provide an\nimplicit function an error will be reported. GenerateClipScalars\nis off by default.\n"}, {"GenerateClipScalarsOff", PyvtkClipPolyData_GenerateClipScalarsOff, METH_VARARGS, "V.GenerateClipScalarsOff()\nC++: virtual void GenerateClipScalarsOff()\n\nIf this flag is enabled, then the output scalar values will be\ninterpolated from the implicit function values, and not the input\nscalar data. If you enable this flag but do not provide an\nimplicit function an error will be reported. GenerateClipScalars\nis off by default.\n"}, {"SetGenerateClippedOutput", PyvtkClipPolyData_SetGenerateClippedOutput, METH_VARARGS, "V.SetGenerateClippedOutput(int)\nC++: virtual void SetGenerateClippedOutput(int _arg)\n\nControl whether a second output is generated. The second output\ncontains the polygonal data that's been clipped away.\nGenerateClippedOutput is off by default.\n"}, {"GetGenerateClippedOutput", PyvtkClipPolyData_GetGenerateClippedOutput, METH_VARARGS, "V.GetGenerateClippedOutput() -> int\nC++: virtual int GetGenerateClippedOutput()\n\nControl whether a second output is generated. The second output\ncontains the polygonal data that's been clipped away.\nGenerateClippedOutput is off by default.\n"}, {"GenerateClippedOutputOn", PyvtkClipPolyData_GenerateClippedOutputOn, METH_VARARGS, "V.GenerateClippedOutputOn()\nC++: virtual void GenerateClippedOutputOn()\n\nControl whether a second output is generated. The second output\ncontains the polygonal data that's been clipped away.\nGenerateClippedOutput is off by default.\n"}, {"GenerateClippedOutputOff", PyvtkClipPolyData_GenerateClippedOutputOff, METH_VARARGS, "V.GenerateClippedOutputOff()\nC++: virtual void GenerateClippedOutputOff()\n\nControl whether a second output is generated. The second output\ncontains the polygonal data that's been clipped away.\nGenerateClippedOutput is off by default.\n"}, {"GetClippedOutput", PyvtkClipPolyData_GetClippedOutput, METH_VARARGS, "V.GetClippedOutput() -> vtkPolyData\nC++: vtkPolyData *GetClippedOutput()\n\nReturn the Clipped output.\n"}, {"GetClippedOutputPort", PyvtkClipPolyData_GetClippedOutputPort, METH_VARARGS, "V.GetClippedOutputPort() -> vtkAlgorithmOutput\nC++: vtkAlgorithmOutput *GetClippedOutputPort()\n\nReturn the output port (a vtkAlgorithmOutput) of the clipped\noutput.\n"}, {"SetLocator", PyvtkClipPolyData_SetLocator, METH_VARARGS, "V.SetLocator(vtkIncrementalPointLocator)\nC++: void SetLocator(vtkIncrementalPointLocator *locator)\n\nSpecify a spatial locator for merging points. By default, an\ninstance of vtkMergePoints is used.\n"}, {"GetLocator", PyvtkClipPolyData_GetLocator, METH_VARARGS, "V.GetLocator() -> vtkIncrementalPointLocator\nC++: virtual vtkIncrementalPointLocator *GetLocator()\n\nSpecify a spatial locator for merging points. By default, an\ninstance of vtkMergePoints is used.\n"}, {"CreateDefaultLocator", PyvtkClipPolyData_CreateDefaultLocator, METH_VARARGS, "V.CreateDefaultLocator()\nC++: void CreateDefaultLocator()\n\nCreate default locator. Used to create one when none is\nspecified. The locator is used to merge coincident points.\n"}, {"GetMTime", PyvtkClipPolyData_GetMTime, METH_VARARGS, "V.GetMTime() -> int\nC++: vtkMTimeType GetMTime() override;\n\nReturn the mtime also considering the locator and clip function.\n"}, {"SetOutputPointsPrecision", PyvtkClipPolyData_SetOutputPointsPrecision, METH_VARARGS, "V.SetOutputPointsPrecision(int)\nC++: virtual void SetOutputPointsPrecision(int _arg)\n\nSet/get the desired precision for the output types. See the\ndocumentation for the vtkAlgorithm::DesiredOutputPrecision enum\nfor an explanation of the available precision settings.\nOutputPointsPrecision is DEFAULT_PRECISION by default.\n"}, {"GetOutputPointsPrecision", PyvtkClipPolyData_GetOutputPointsPrecision, METH_VARARGS, "V.GetOutputPointsPrecision() -> int\nC++: virtual int GetOutputPointsPrecision()\n\nSet/get the desired precision for the output types. See the\ndocumentation for the vtkAlgorithm::DesiredOutputPrecision enum\nfor an explanation of the available precision settings.\nOutputPointsPrecision is DEFAULT_PRECISION by default.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkClipPolyData_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersCorePython.vtkClipPolyData", // 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 PyvtkClipPolyData_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 *PyvtkClipPolyData_StaticNew() { return vtkClipPolyData::New(); } PyObject *PyvtkClipPolyData_ClassNew() { PyVTKClass_Add( &PyvtkClipPolyData_Type, PyvtkClipPolyData_Methods, "vtkClipPolyData", &PyvtkClipPolyData_StaticNew); PyTypeObject *pytype = &PyvtkClipPolyData_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 *)PyvtkPolyDataAlgorithm_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkClipPolyData( PyObject *dict) { PyObject *o; o = PyvtkClipPolyData_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkClipPolyData", o) != 0) { Py_DECREF(o); } }