// python wrapper for vtkPointSet // #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 "vtkPointSet.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkPointSet(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkPointSet_ClassNew(); } #ifndef DECLARED_PyvtkDataSet_ClassNew extern "C" { PyObject *PyvtkDataSet_ClassNew(); } #define DECLARED_PyvtkDataSet_ClassNew #endif static const char *PyvtkPointSet_Doc = "vtkPointSet - abstract class for specifying dataset behavior\n\n" "Superclass: vtkDataSet\n\n" "vtkPointSet is an abstract class that specifies the interface for\n" "datasets that explicitly use \"point\" arrays to represent geometry.\n" "For example, vtkPolyData and vtkUnstructuredGrid require point arrays\n" "to specify point position, while vtkStructuredGrid generates point\n" "positions implicitly.\n\n" "@sa\n" "vtkPolyData vtkStructuredGrid vtkUnstructuredGrid\n\n"; static PyObject * PyvtkPointSet_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkPointSet::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *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->vtkPointSet::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkPointSet *tempr = vtkPointSet::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPointSet_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPointSet *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkPointSet::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 * PyvtkPointSet_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Initialize(); } else { op->vtkPointSet::Initialize(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_CopyStructure(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CopyStructure"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); vtkDataSet *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataSet")) { if (ap.IsBound()) { op->CopyStructure(temp0); } else { op->vtkPointSet::CopyStructure(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_GetNumberOfPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfPoints() : op->vtkPointSet::GetNumberOfPoints()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_GetPoint_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); vtkIdType temp0; const int size1 = 3; double temp1[3]; double save1[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->GetPoint(temp0, temp1); } else { op->vtkPointSet::GetPoint(temp0, temp1); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_GetPoint_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); vtkIdType temp0; int sizer = 3; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double *tempr = (ap.IsBound() ? op->GetPoint(temp0) : op->vtkPointSet::GetPoint(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkPointSet_GetPoint(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkPointSet_GetPoint_s1(self, args); case 1: return PyvtkPointSet_GetPoint_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetPoint"); return nullptr; } static PyObject * PyvtkPointSet_FindPoint_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); vtkIdType tempr = (ap.IsBound() ? op->FindPoint(temp0) : op->vtkPointSet::FindPoint(temp0)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_FindPoint_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); double temp0; double temp1; double temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkIdType tempr = (ap.IsBound() ? op->FindPoint(temp0, temp1, temp2) : op->vtkPointSet::FindPoint(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_FindPoint(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkPointSet_FindPoint_s1(self, args); case 3: return PyvtkPointSet_FindPoint_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "FindPoint"); return nullptr; } static PyObject * PyvtkPointSet_FindCell_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; vtkCell *temp1 = nullptr; vtkIdType temp2; double temp3; int temp4; const int size5 = 3; double temp5[3]; double save5[3]; int size6 = ap.GetArgSize(6); vtkPythonArgs::Array store6(2*size6); double *temp6 = store6.Data(); double *save6 = (size6 == 0 ? nullptr : temp6 + size6); PyObject *result = nullptr; if (op && ap.CheckArgCount(7) && ap.GetArray(temp0, size0) && ap.GetVTKObject(temp1, "vtkCell") && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetArray(temp5, size5) && ap.GetArray(temp6, size6)) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp5, save5, size5); ap.SaveArray(temp6, save6, size6); vtkIdType tempr = (ap.IsBound() ? op->FindCell(temp0, temp1, temp2, temp3, temp4, temp5, temp6) : op->vtkPointSet::FindCell(temp0, temp1, temp2, temp3, temp4, temp5, temp6)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { ap.SetArgValue(4, temp4); } if (ap.ArrayHasChanged(temp5, save5, size5) && !ap.ErrorOccurred()) { ap.SetArray(5, temp5, size5); } if (ap.ArrayHasChanged(temp6, save6, size6) && !ap.ErrorOccurred()) { ap.SetArray(6, temp6, size6); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_FindCell_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; vtkCell *temp1 = nullptr; vtkGenericCell *temp2 = nullptr; vtkIdType temp3; double temp4; int temp5; const int size6 = 3; double temp6[3]; double save6[3]; int size7 = ap.GetArgSize(7); vtkPythonArgs::Array store7(2*size7); double *temp7 = store7.Data(); double *save7 = (size7 == 0 ? nullptr : temp7 + size7); PyObject *result = nullptr; if (op && ap.CheckArgCount(8) && ap.GetArray(temp0, size0) && ap.GetVTKObject(temp1, "vtkCell") && ap.GetVTKObject(temp2, "vtkGenericCell") && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetValue(temp5) && ap.GetArray(temp6, size6) && ap.GetArray(temp7, size7)) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp6, save6, size6); ap.SaveArray(temp7, save7, size7); vtkIdType tempr = (ap.IsBound() ? op->FindCell(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7) : op->vtkPointSet::FindCell(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { ap.SetArgValue(5, temp5); } if (ap.ArrayHasChanged(temp6, save6, size6) && !ap.ErrorOccurred()) { ap.SetArray(6, temp6, size6); } if (ap.ArrayHasChanged(temp7, save7, size7) && !ap.ErrorOccurred()) { ap.SetArray(7, temp7, size7); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_FindCell(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 7: return PyvtkPointSet_FindCell_s1(self, args); case 8: return PyvtkPointSet_FindCell_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "FindCell"); return nullptr; } static PyObject * PyvtkPointSet_NewCellIterator(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewCellIterator"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCellIterator *tempr = (ap.IsBound() ? op->NewCellIterator() : op->vtkPointSet::NewCellIterator()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPointSet_GetMTime(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetMTime() : op->vtkPointSet::GetMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_ComputeBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ComputeBounds(); } else { op->vtkPointSet::ComputeBounds(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_Squeeze(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Squeeze"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Squeeze(); } else { op->vtkPointSet::Squeeze(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_SetPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); vtkPoints *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPoints")) { if (ap.IsBound()) { op->SetPoints(temp0); } else { op->vtkPointSet::SetPoints(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_GetPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPoints *tempr = (ap.IsBound() ? op->GetPoints() : op->vtkPointSet::GetPoints()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPointSet_GetActualMemorySize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetActualMemorySize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetActualMemorySize() : op->vtkPointSet::GetActualMemorySize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPointSet_ShallowCopy(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShallowCopy"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); vtkDataObject *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataObject")) { if (ap.IsBound()) { op->ShallowCopy(temp0); } else { op->vtkPointSet::ShallowCopy(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_DeepCopy(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DeepCopy"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPointSet *op = static_cast(vp); vtkDataObject *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataObject")) { if (ap.IsBound()) { op->DeepCopy(temp0); } else { op->vtkPointSet::DeepCopy(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPointSet_GetData_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetData"); vtkInformation *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkInformation")) { vtkPointSet *tempr = vtkPointSet::GetData(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPointSet_GetData_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetData"); vtkInformationVector *temp0 = nullptr; int temp1 = 0; PyObject *result = nullptr; if (ap.CheckArgCount(1, 2) && ap.GetVTKObject(temp0, "vtkInformationVector") && (ap.NoArgsLeft() || ap.GetValue(temp1))) { vtkPointSet *tempr = vtkPointSet::GetData(temp0, temp1); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyMethodDef PyvtkPointSet_GetData_Methods[] = { {nullptr, PyvtkPointSet_GetData_s1, METH_VARARGS | METH_STATIC, "V *vtkInformation"}, {nullptr, PyvtkPointSet_GetData_s2, METH_VARARGS | METH_STATIC, "V|i *vtkInformationVector"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPointSet_GetData(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkPointSet_GetData_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 2: return PyvtkPointSet_GetData_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "GetData"); return nullptr; } static PyMethodDef PyvtkPointSet_Methods[] = { {"IsTypeOf", PyvtkPointSet_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", PyvtkPointSet_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", PyvtkPointSet_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkPointSet\nC++: static vtkPointSet *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkPointSet_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkPointSet\nC++: vtkPointSet *NewInstance()\n\n"}, {"Initialize", PyvtkPointSet_Initialize, METH_VARARGS, "V.Initialize()\nC++: void Initialize() override;\n\nReset to an empty state and free any memory.\n"}, {"CopyStructure", PyvtkPointSet_CopyStructure, METH_VARARGS, "V.CopyStructure(vtkDataSet)\nC++: void CopyStructure(vtkDataSet *pd) override;\n\nCopy the geometric structure of an input point set object.\n"}, {"GetNumberOfPoints", PyvtkPointSet_GetNumberOfPoints, METH_VARARGS, "V.GetNumberOfPoints() -> int\nC++: vtkIdType GetNumberOfPoints() override;\n\nSee vtkDataSet for additional information.\n"}, {"GetPoint", PyvtkPointSet_GetPoint, METH_VARARGS, "V.GetPoint(int, [float, float, float])\nC++: void GetPoint(vtkIdType ptId, double x[3]) override;\nV.GetPoint(int) -> (float, float, float)\nC++: double *GetPoint(vtkIdType ptId) override;\n\nSee vtkDataSet for additional information.\n"}, {"FindPoint", PyvtkPointSet_FindPoint, METH_VARARGS, "V.FindPoint([float, float, float]) -> int\nC++: vtkIdType FindPoint(double x[3]) override;\nV.FindPoint(float, float, float) -> int\nC++: vtkIdType FindPoint(double x, double y, double z)\n\nSee vtkDataSet for additional information.\n"}, {"FindCell", PyvtkPointSet_FindCell, METH_VARARGS, "V.FindCell([float, float, float], vtkCell, int, float, int,\n [float, float, float], [float, ...]) -> int\nC++: vtkIdType FindCell(double x[3], vtkCell *cell,\n vtkIdType cellId, double tol2, int &subId, double pcoords[3],\n double *weights) override;\nV.FindCell([float, float, float], vtkCell, vtkGenericCell, int,\n float, int, [float, float, float], [float, ...]) -> int\nC++: vtkIdType FindCell(double x[3], vtkCell *cell,\n vtkGenericCell *gencell, vtkIdType cellId, double tol2,\n int &subId, double pcoords[3], double *weights) override;\n\nSee vtkDataSet for additional information.\n"}, {"NewCellIterator", PyvtkPointSet_NewCellIterator, METH_VARARGS, "V.NewCellIterator() -> vtkCellIterator\nC++: vtkCellIterator *NewCellIterator() override;\n\nReturn an iterator that traverses the cells in this data set.\n"}, {"GetMTime", PyvtkPointSet_GetMTime, METH_VARARGS, "V.GetMTime() -> int\nC++: vtkMTimeType GetMTime() override;\n\nGet MTime which also considers its vtkPoints MTime.\n"}, {"ComputeBounds", PyvtkPointSet_ComputeBounds, METH_VARARGS, "V.ComputeBounds()\nC++: void ComputeBounds() override;\n\nCompute the (X, Y, Z) bounds of the data.\n"}, {"Squeeze", PyvtkPointSet_Squeeze, METH_VARARGS, "V.Squeeze()\nC++: void Squeeze() override;\n\nReclaim any unused memory.\n"}, {"SetPoints", PyvtkPointSet_SetPoints, METH_VARARGS, "V.SetPoints(vtkPoints)\nC++: virtual void SetPoints(vtkPoints *)\n\nSpecify point array to define point coordinates.\n"}, {"GetPoints", PyvtkPointSet_GetPoints, METH_VARARGS, "V.GetPoints() -> vtkPoints\nC++: virtual vtkPoints *GetPoints()\n\nSpecify point array to define point coordinates.\n"}, {"GetActualMemorySize", PyvtkPointSet_GetActualMemorySize, METH_VARARGS, "V.GetActualMemorySize() -> int\nC++: unsigned long GetActualMemorySize() override;\n\nReturn the actual size of the data in kibibytes (1024 bytes).\nThis number is valid only after the pipeline has updated. The\nmemory size returned is guaranteed to be greater than or equal to\nthe memory required to represent the data (e.g., extra space in\narrays, etc. are not included in the return value). THIS METHOD\nIS THREAD SAFE.\n"}, {"ShallowCopy", PyvtkPointSet_ShallowCopy, METH_VARARGS, "V.ShallowCopy(vtkDataObject)\nC++: void ShallowCopy(vtkDataObject *src) override;\n\nShallow and Deep copy.\n"}, {"DeepCopy", PyvtkPointSet_DeepCopy, METH_VARARGS, "V.DeepCopy(vtkDataObject)\nC++: void DeepCopy(vtkDataObject *src) override;\n\nShallow and Deep copy.\n"}, {"GetData", PyvtkPointSet_GetData, METH_VARARGS, "V.GetData(vtkInformation) -> vtkPointSet\nC++: static vtkPointSet *GetData(vtkInformation *info)\nV.GetData(vtkInformationVector, int) -> vtkPointSet\nC++: static vtkPointSet *GetData(vtkInformationVector *v, int i=0)\n\nRetrieve an instance of this class from an information object.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkPointSet_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkPointSet", // 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 PyvtkPointSet_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 }; PyObject *PyvtkPointSet_ClassNew() { PyVTKClass_Add( &PyvtkPointSet_Type, PyvtkPointSet_Methods, "vtkPointSet", nullptr); PyTypeObject *pytype = &PyvtkPointSet_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 *)PyvtkDataSet_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkPointSet( PyObject *dict) { PyObject *o; o = PyvtkPointSet_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkPointSet", o) != 0) { Py_DECREF(o); } }