// python wrapper for vtkRectilinearGrid // #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 "vtkRectilinearGrid.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkRectilinearGrid(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkRectilinearGrid_ClassNew(); } #ifndef DECLARED_PyvtkDataSet_ClassNew extern "C" { PyObject *PyvtkDataSet_ClassNew(); } #define DECLARED_PyvtkDataSet_ClassNew #endif static const char *PyvtkRectilinearGrid_Doc = "vtkRectilinearGrid - a dataset that is topologically regular with\nvariable spacing in the three coordinate directions\n\n" "Superclass: vtkDataSet\n\n" "vtkRectilinearGrid is a data object that is a concrete implementation\n" "of vtkDataSet. vtkRectilinearGrid represents a geometric structure\n" "that is topologically regular with variable spacing in the three\n" "coordinate directions x-y-z.\n\n" "To define a vtkRectilinearGrid, you must specify the dimensions of\n" "the data and provide three arrays of values specifying the\n" "coordinates along the x-y-z axes. The coordinate arrays are specified\n" "using three vtkDataArray objects (one for x, one for y, one for z).\n\n" "@warning\n" "Make sure that the dimensions of the grid match the number of\n" "coordinates in the x-y-z directions. If not, unpredictable results\n" "(including program failure) may result. Also, you must supply\n" "coordinates in all three directions, even if the dataset topology is\n" "2D, 1D, or 0D.\n\n"; static PyObject * PyvtkRectilinearGrid_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkRectilinearGrid::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkRectilinearGrid *tempr = vtkRectilinearGrid::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkRectilinearGrid *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkRectilinearGrid::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 * PyvtkRectilinearGrid_GetDataObjectType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataObjectType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataObjectType() : op->vtkRectilinearGrid::GetDataObjectType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_CopyStructure(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CopyStructure"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::CopyStructure(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Initialize(); } else { op->vtkRectilinearGrid::Initialize(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetNumberOfCells(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfCells"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfCells() : op->vtkRectilinearGrid::GetNumberOfCells()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetNumberOfPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdType tempr = (ap.IsBound() ? op->GetNumberOfPoints() : op->vtkRectilinearGrid::GetNumberOfPoints()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetPoint_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::GetPoint(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkRectilinearGrid_GetPoint_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::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 * PyvtkRectilinearGrid_GetPoint_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int temp0; int temp1; int temp2; const int size3 = 3; double temp3[3]; double save3[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetArray(temp3, size3)) { ap.SaveArray(temp3, save3, size3); if (ap.IsBound()) { op->GetPoint(temp0, temp1, temp2, temp3); } else { op->vtkRectilinearGrid::GetPoint(temp0, temp1, temp2, temp3); } if (ap.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetPoint(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkRectilinearGrid_GetPoint_s1(self, args); case 2: return PyvtkRectilinearGrid_GetPoint_s2(self, args); case 4: return PyvtkRectilinearGrid_GetPoint_s3(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetPoint"); return nullptr; } static PyObject * PyvtkRectilinearGrid_GetCell_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkCell *tempr = (ap.IsBound() ? op->GetCell(temp0) : op->vtkRectilinearGrid::GetCell(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetCell_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int temp0; int temp1; int temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkCell *tempr = (ap.IsBound() ? op->GetCell(temp0, temp1, temp2) : op->vtkRectilinearGrid::GetCell(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetCell_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; vtkGenericCell *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkGenericCell")) { if (ap.IsBound()) { op->GetCell(temp0, temp1); } else { op->vtkRectilinearGrid::GetCell(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetCell(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkRectilinearGrid_GetCell_s1(self, args); case 3: return PyvtkRectilinearGrid_GetCell_s2(self, args); case 2: return PyvtkRectilinearGrid_GetCell_s3(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetCell"); return nullptr; } static PyObject * PyvtkRectilinearGrid_GetCellBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCellBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; const int size1 = 6; double temp1[6]; double save1[6]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->GetCellBounds(temp0, temp1); } else { op->vtkRectilinearGrid::GetCellBounds(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 * PyvtkRectilinearGrid_FindPoint_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::FindPoint(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_FindPoint_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::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 * PyvtkRectilinearGrid_FindPoint(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkRectilinearGrid_FindPoint_s1(self, args); case 1: return PyvtkRectilinearGrid_FindPoint_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "FindPoint"); return nullptr; } static PyObject * PyvtkRectilinearGrid_FindCell_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::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 * PyvtkRectilinearGrid_FindCell_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::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 * PyvtkRectilinearGrid_FindCell(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 7: return PyvtkRectilinearGrid_FindCell_s1(self, args); case 8: return PyvtkRectilinearGrid_FindCell_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "FindCell"); return nullptr; } static PyObject * PyvtkRectilinearGrid_FindAndGetCell(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "FindAndGetCell"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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); vtkCell *tempr = (ap.IsBound() ? op->FindAndGetCell(temp0, temp1, temp2, temp3, temp4, temp5, temp6) : op->vtkRectilinearGrid::FindAndGetCell(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.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetCellType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCellType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->GetCellType(temp0) : op->vtkRectilinearGrid::GetCellType(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetCellPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCellPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; vtkIdList *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkIdList")) { if (ap.IsBound()) { op->GetCellPoints(temp0, temp1); } else { op->vtkRectilinearGrid::GetCellPoints(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetPointCells(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPointCells"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; vtkIdList *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkIdList")) { if (ap.IsBound()) { op->GetPointCells(temp0, temp1); } else { op->vtkRectilinearGrid::GetPointCells(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_ComputeBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ComputeBounds(); } else { op->vtkRectilinearGrid::ComputeBounds(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetMaxCellSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaxCellSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetMaxCellSize() : op->vtkRectilinearGrid::GetMaxCellSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_GetCellNeighbors(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCellNeighbors"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkIdType temp0; vtkIdList *temp1 = nullptr; vtkIdList *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkIdList") && ap.GetVTKObject(temp2, "vtkIdList")) { if (ap.IsBound()) { op->GetCellNeighbors(temp0, temp1, temp2); } else { op->vtkRectilinearGrid::GetCellNeighbors(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkPoints *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPoints")) { if (ap.IsBound()) { op->GetPoints(temp0); } else { op->vtkRectilinearGrid::GetPoints(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_SetDimensions_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDimensions"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int temp0; int temp1; int temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { if (ap.IsBound()) { op->SetDimensions(temp0, temp1, temp2); } else { op->vtkRectilinearGrid::SetDimensions(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_SetDimensions_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDimensions"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); const int size0 = 3; int temp0[3]; int save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->SetDimensions(temp0); } else { op->vtkRectilinearGrid::SetDimensions(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_SetDimensions(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkRectilinearGrid_SetDimensions_s1(self, args); case 1: return PyvtkRectilinearGrid_SetDimensions_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetDimensions"); return nullptr; } static PyObject * PyvtkRectilinearGrid_GetDimensions(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDimensions"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int sizer = 3; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int *tempr = (ap.IsBound() ? op->GetDimensions() : op->vtkRectilinearGrid::GetDimensions()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkRectilinearGrid_GetDataDimension(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDataDimension"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDataDimension() : op->vtkRectilinearGrid::GetDataDimension()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_ComputeStructuredCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeStructuredCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; const int size1 = 3; int temp1[3]; int save1[3]; const int size2 = 3; double temp2[3]; double save2[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetArray(temp0, size0) && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2)) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); int tempr = (ap.IsBound() ? op->ComputeStructuredCoordinates(temp0, temp1, temp2) : op->vtkRectilinearGrid::ComputeStructuredCoordinates(temp0, temp1, temp2)); 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.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_ComputePointId(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputePointId"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); const int size0 = 3; int temp0[3]; int save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); vtkIdType tempr = (ap.IsBound() ? op->ComputePointId(temp0) : op->vtkRectilinearGrid::ComputePointId(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 * PyvtkRectilinearGrid_ComputeCellId(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeCellId"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); const int size0 = 3; int temp0[3]; int save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); vtkIdType tempr = (ap.IsBound() ? op->ComputeCellId(temp0) : op->vtkRectilinearGrid::ComputeCellId(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 * PyvtkRectilinearGrid_SetXCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetXCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkDataArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataArray")) { if (ap.IsBound()) { op->SetXCoordinates(temp0); } else { op->vtkRectilinearGrid::SetXCoordinates(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetXCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetXCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkDataArray *tempr = (ap.IsBound() ? op->GetXCoordinates() : op->vtkRectilinearGrid::GetXCoordinates()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_SetYCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetYCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkDataArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataArray")) { if (ap.IsBound()) { op->SetYCoordinates(temp0); } else { op->vtkRectilinearGrid::SetYCoordinates(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetYCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetYCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkDataArray *tempr = (ap.IsBound() ? op->GetYCoordinates() : op->vtkRectilinearGrid::GetYCoordinates()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_SetZCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetZCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); vtkDataArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataArray")) { if (ap.IsBound()) { op->SetZCoordinates(temp0); } else { op->vtkRectilinearGrid::SetZCoordinates(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetZCoordinates(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetZCoordinates"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkDataArray *tempr = (ap.IsBound() ? op->GetZCoordinates() : op->vtkRectilinearGrid::GetZCoordinates()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_SetExtent_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetExtent"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); const int size0 = 6; int temp0[6]; int save0[6]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->SetExtent(temp0); } else { op->vtkRectilinearGrid::SetExtent(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_SetExtent_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetExtent"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int temp0; int temp1; int temp2; int temp3; int temp4; int temp5; PyObject *result = nullptr; if (op && ap.CheckArgCount(6) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetValue(temp5)) { if (ap.IsBound()) { op->SetExtent(temp0, temp1, temp2, temp3, temp4, temp5); } else { op->vtkRectilinearGrid::SetExtent(temp0, temp1, temp2, temp3, temp4, temp5); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_SetExtent(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkRectilinearGrid_SetExtent_s1(self, args); case 6: return PyvtkRectilinearGrid_SetExtent_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetExtent"); return nullptr; } static PyObject * PyvtkRectilinearGrid_GetExtent(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetExtent"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int sizer = 6; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int *tempr = (ap.IsBound() ? op->GetExtent() : op->vtkRectilinearGrid::GetExtent()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkRectilinearGrid_GetActualMemorySize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetActualMemorySize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetActualMemorySize() : op->vtkRectilinearGrid::GetActualMemorySize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_ShallowCopy(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShallowCopy"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::ShallowCopy(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_DeepCopy(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DeepCopy"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *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->vtkRectilinearGrid::DeepCopy(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetExtentType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetExtentType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetExtentType() : op->vtkRectilinearGrid::GetExtentType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_Crop(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Crop"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkRectilinearGrid *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(size0); int *temp0 = store0.Data(); PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->Crop(temp0); } else { op->vtkRectilinearGrid::Crop(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkRectilinearGrid_GetData_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetData"); vtkInformation *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkInformation")) { vtkRectilinearGrid *tempr = vtkRectilinearGrid::GetData(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkRectilinearGrid_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))) { vtkRectilinearGrid *tempr = vtkRectilinearGrid::GetData(temp0, temp1); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyMethodDef PyvtkRectilinearGrid_GetData_Methods[] = { {nullptr, PyvtkRectilinearGrid_GetData_s1, METH_VARARGS | METH_STATIC, "V *vtkInformation"}, {nullptr, PyvtkRectilinearGrid_GetData_s2, METH_VARARGS | METH_STATIC, "V|i *vtkInformationVector"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkRectilinearGrid_GetData(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkRectilinearGrid_GetData_Methods; int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 2: return PyvtkRectilinearGrid_GetData_s2(self, args); case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "GetData"); return nullptr; } static PyMethodDef PyvtkRectilinearGrid_Methods[] = { {"IsTypeOf", PyvtkRectilinearGrid_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", PyvtkRectilinearGrid_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", PyvtkRectilinearGrid_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkRectilinearGrid\nC++: static vtkRectilinearGrid *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkRectilinearGrid_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkRectilinearGrid\nC++: vtkRectilinearGrid *NewInstance()\n\n"}, {"GetDataObjectType", PyvtkRectilinearGrid_GetDataObjectType, METH_VARARGS, "V.GetDataObjectType() -> int\nC++: int GetDataObjectType() override;\n\nReturn what type of dataset this is.\n"}, {"CopyStructure", PyvtkRectilinearGrid_CopyStructure, METH_VARARGS, "V.CopyStructure(vtkDataSet)\nC++: void CopyStructure(vtkDataSet *ds) override;\n\nCopy the geometric and topological structure of an input\nrectilinear grid object.\n"}, {"Initialize", PyvtkRectilinearGrid_Initialize, METH_VARARGS, "V.Initialize()\nC++: void Initialize() override;\n\nRestore object to initial state. Release memory back to system.\n"}, {"GetNumberOfCells", PyvtkRectilinearGrid_GetNumberOfCells, METH_VARARGS, "V.GetNumberOfCells() -> int\nC++: vtkIdType GetNumberOfCells() override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetNumberOfPoints", PyvtkRectilinearGrid_GetNumberOfPoints, METH_VARARGS, "V.GetNumberOfPoints() -> int\nC++: vtkIdType GetNumberOfPoints() override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetPoint", PyvtkRectilinearGrid_GetPoint, METH_VARARGS, "V.GetPoint(int) -> (float, float, float)\nC++: double *GetPoint(vtkIdType ptId) override;\nV.GetPoint(int, [float, float, float])\nC++: void GetPoint(vtkIdType id, double x[3]) override;\nV.GetPoint(int, int, int, [float, float, float])\nC++: void GetPoint(const int i, const int j, const int k,\n double p[3])\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetCell", PyvtkRectilinearGrid_GetCell, METH_VARARGS, "V.GetCell(int) -> vtkCell\nC++: vtkCell *GetCell(vtkIdType cellId) override;\nV.GetCell(int, int, int) -> vtkCell\nC++: vtkCell *GetCell(int i, int j, int k) override;\nV.GetCell(int, vtkGenericCell)\nC++: void GetCell(vtkIdType cellId, vtkGenericCell *cell)\n override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetCellBounds", PyvtkRectilinearGrid_GetCellBounds, METH_VARARGS, "V.GetCellBounds(int, [float, float, float, float, float, float])\nC++: void GetCellBounds(vtkIdType cellId, double bounds[6])\n override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"FindPoint", PyvtkRectilinearGrid_FindPoint, METH_VARARGS, "V.FindPoint(float, float, float) -> int\nC++: vtkIdType FindPoint(double x, double y, double z)\nV.FindPoint([float, float, float]) -> int\nC++: vtkIdType FindPoint(double x[3]) override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"FindCell", PyvtkRectilinearGrid_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\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"FindAndGetCell", PyvtkRectilinearGrid_FindAndGetCell, METH_VARARGS, "V.FindAndGetCell([float, float, float], vtkCell, int, float, int,\n [float, float, float], [float, ...]) -> vtkCell\nC++: vtkCell *FindAndGetCell(double x[3], vtkCell *cell,\n vtkIdType cellId, double tol2, int &subId, double pcoords[3],\n double *weights) override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetCellType", PyvtkRectilinearGrid_GetCellType, METH_VARARGS, "V.GetCellType(int) -> int\nC++: int GetCellType(vtkIdType cellId) override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetCellPoints", PyvtkRectilinearGrid_GetCellPoints, METH_VARARGS, "V.GetCellPoints(int, vtkIdList)\nC++: void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)\n override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetPointCells", PyvtkRectilinearGrid_GetPointCells, METH_VARARGS, "V.GetPointCells(int, vtkIdList)\nC++: void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)\n override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"ComputeBounds", PyvtkRectilinearGrid_ComputeBounds, METH_VARARGS, "V.ComputeBounds()\nC++: void ComputeBounds() override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetMaxCellSize", PyvtkRectilinearGrid_GetMaxCellSize, METH_VARARGS, "V.GetMaxCellSize() -> int\nC++: int GetMaxCellSize() override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetCellNeighbors", PyvtkRectilinearGrid_GetCellNeighbors, METH_VARARGS, "V.GetCellNeighbors(int, vtkIdList, vtkIdList)\nC++: void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds,\n vtkIdList *cellIds) override;\n\nStandard vtkDataSet API methods. See vtkDataSet for more\ninformation.\n"}, {"GetPoints", PyvtkRectilinearGrid_GetPoints, METH_VARARGS, "V.GetPoints(vtkPoints)\nC++: void GetPoints(vtkPoints *pnts)\n\nGiven a user-supplied vtkPoints container object, this method\nfills in all the points of the RectilinearGrid.\n"}, {"SetDimensions", PyvtkRectilinearGrid_SetDimensions, METH_VARARGS, "V.SetDimensions(int, int, int)\nC++: void SetDimensions(int i, int j, int k)\nV.SetDimensions([int, int, int])\nC++: void SetDimensions(int dim[3])\n\nSet dimensions of rectilinear grid dataset. This also sets the\nextent.\n"}, {"GetDimensions", PyvtkRectilinearGrid_GetDimensions, METH_VARARGS, "V.GetDimensions() -> (int, int, int)\nC++: int *GetDimensions()\n\nGet dimensions of this rectilinear grid dataset.\n"}, {"GetDataDimension", PyvtkRectilinearGrid_GetDataDimension, METH_VARARGS, "V.GetDataDimension() -> int\nC++: int GetDataDimension()\n\nReturn the dimensionality of the data.\n"}, {"ComputeStructuredCoordinates", PyvtkRectilinearGrid_ComputeStructuredCoordinates, METH_VARARGS, "V.ComputeStructuredCoordinates([float, float, float], [int, int,\n int], [float, float, float]) -> int\nC++: int ComputeStructuredCoordinates(double x[3], int ijk[3],\n double pcoords[3])\n\nConvenience function computes the structured coordinates for a\npoint x[3]. The cell is specified by the array ijk[3], and the\nparametric coordinates in the cell are specified with pcoords[3].\nThe function returns a 0 if the point x is outside of the grid,\nand a 1 if inside the grid.\n"}, {"ComputePointId", PyvtkRectilinearGrid_ComputePointId, METH_VARARGS, "V.ComputePointId([int, int, int]) -> int\nC++: vtkIdType ComputePointId(int ijk[3])\n\nGiven a location in structured coordinates (i-j-k), return the\npoint id.\n"}, {"ComputeCellId", PyvtkRectilinearGrid_ComputeCellId, METH_VARARGS, "V.ComputeCellId([int, int, int]) -> int\nC++: vtkIdType ComputeCellId(int ijk[3])\n\nGiven a location in structured coordinates (i-j-k), return the\ncell id.\n"}, {"SetXCoordinates", PyvtkRectilinearGrid_SetXCoordinates, METH_VARARGS, "V.SetXCoordinates(vtkDataArray)\nC++: virtual void SetXCoordinates(vtkDataArray *)\n\nSpecify the grid coordinates in the x-direction.\n"}, {"GetXCoordinates", PyvtkRectilinearGrid_GetXCoordinates, METH_VARARGS, "V.GetXCoordinates() -> vtkDataArray\nC++: virtual vtkDataArray *GetXCoordinates()\n\nSpecify the grid coordinates in the x-direction.\n"}, {"SetYCoordinates", PyvtkRectilinearGrid_SetYCoordinates, METH_VARARGS, "V.SetYCoordinates(vtkDataArray)\nC++: virtual void SetYCoordinates(vtkDataArray *)\n\nSpecify the grid coordinates in the y-direction.\n"}, {"GetYCoordinates", PyvtkRectilinearGrid_GetYCoordinates, METH_VARARGS, "V.GetYCoordinates() -> vtkDataArray\nC++: virtual vtkDataArray *GetYCoordinates()\n\nSpecify the grid coordinates in the y-direction.\n"}, {"SetZCoordinates", PyvtkRectilinearGrid_SetZCoordinates, METH_VARARGS, "V.SetZCoordinates(vtkDataArray)\nC++: virtual void SetZCoordinates(vtkDataArray *)\n\nSpecify the grid coordinates in the z-direction.\n"}, {"GetZCoordinates", PyvtkRectilinearGrid_GetZCoordinates, METH_VARARGS, "V.GetZCoordinates() -> vtkDataArray\nC++: virtual vtkDataArray *GetZCoordinates()\n\nSpecify the grid coordinates in the z-direction.\n"}, {"SetExtent", PyvtkRectilinearGrid_SetExtent, METH_VARARGS, "V.SetExtent([int, int, int, int, int, int])\nC++: void SetExtent(int extent[6])\nV.SetExtent(int, int, int, int, int, int)\nC++: void SetExtent(int x1, int x2, int y1, int y2, int z1,\n int z2)\n\nDifferent ways to set the extent of the data array. The extent\nshould be set before the \"Scalars\" are set or allocated. The\nExtent is stored in the order (X, Y, Z).\n"}, {"GetExtent", PyvtkRectilinearGrid_GetExtent, METH_VARARGS, "V.GetExtent() -> (int, int, int, int, int, int)\nC++: int *GetExtent()\n\n"}, {"GetActualMemorySize", PyvtkRectilinearGrid_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", PyvtkRectilinearGrid_ShallowCopy, METH_VARARGS, "V.ShallowCopy(vtkDataObject)\nC++: void ShallowCopy(vtkDataObject *src) override;\n\nShallow and Deep copy.\n"}, {"DeepCopy", PyvtkRectilinearGrid_DeepCopy, METH_VARARGS, "V.DeepCopy(vtkDataObject)\nC++: void DeepCopy(vtkDataObject *src) override;\n\nShallow and Deep copy.\n"}, {"GetExtentType", PyvtkRectilinearGrid_GetExtentType, METH_VARARGS, "V.GetExtentType() -> int\nC++: int GetExtentType() override;\n\nStructured extent. The extent type is a 3D extent\n"}, {"Crop", PyvtkRectilinearGrid_Crop, METH_VARARGS, "V.Crop((int, ...))\nC++: void Crop(const int *updateExtent) override;\n\nReallocates and copies to set the Extent to the UpdateExtent.\nThis is used internally when the exact extent is requested, and\nthe source generated more than the update extent.\n"}, {"GetData", PyvtkRectilinearGrid_GetData, METH_VARARGS, "V.GetData(vtkInformation) -> vtkRectilinearGrid\nC++: static vtkRectilinearGrid *GetData(vtkInformation *info)\nV.GetData(vtkInformationVector, int) -> vtkRectilinearGrid\nC++: static vtkRectilinearGrid *GetData(vtkInformationVector *v,\n int i=0)\n\nRetrieve an instance of this class from an information object.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkRectilinearGrid_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkCommonDataModelPython.vtkRectilinearGrid", // 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 PyvtkRectilinearGrid_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 *PyvtkRectilinearGrid_StaticNew() { return vtkRectilinearGrid::New(); } PyObject *PyvtkRectilinearGrid_ClassNew() { PyVTKClass_Add( &PyvtkRectilinearGrid_Type, PyvtkRectilinearGrid_Methods, "vtkRectilinearGrid", &PyvtkRectilinearGrid_StaticNew); PyTypeObject *pytype = &PyvtkRectilinearGrid_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_vtkRectilinearGrid( PyObject *dict) { PyObject *o; o = PyvtkRectilinearGrid_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkRectilinearGrid", o) != 0) { Py_DECREF(o); } }