// python wrapper for vtkImageBSplineCoefficients // #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 "vtkImageBSplineCoefficients.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkImageBSplineCoefficients(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkImageBSplineCoefficients_ClassNew(); } #ifndef DECLARED_PyvtkThreadedImageAlgorithm_ClassNew extern "C" { PyObject *PyvtkThreadedImageAlgorithm_ClassNew(); } #define DECLARED_PyvtkThreadedImageAlgorithm_ClassNew #endif static const char *PyvtkImageBSplineCoefficients_Doc = "vtkImageBSplineCoefficients - convert image to b-spline knots\n\n" "Superclass: vtkThreadedImageAlgorithm\n\n" "vtkImageBSplineCoefficients prepares an image for b-spline\n" "interpolation by converting the image values into b-spline knot\n" "coefficients. It is a necessary pre-filtering step before applying\n" "b-spline interpolation with vtkImageReslice.\n\n" "This class is based on code provided by Philippe Thevenaz of EPFL,\n" "Lausanne, Switzerland. Please acknowledge his contribution by citing\n" "the following paper: [1] P. Thevenaz, T. Blu, M. Unser, \"Interpolation\n" "Revisited,\"\n" " IEEE Transactions on Medical Imaging 19(7):739-758, 2000.\n\n" "The clamped boundary condition (which is the default) is taken from\n" "code presented in the following paper: [2] D. Ruijters, P. Thevenaz,\n" " \"GPU Prefilter for Accurate Cubic B-spline Interpolation,\"\n" " The Computer Journal, doi: 10.1093/comjnl/bxq086, 2010.\n\n" "@par Thanks: This class was written by David Gobbi at the Seaman\n" "Family MR Research Centre, Foothills Medical Centre, Calgary,\n" "Alberta. DG Gobbi and YP Starreveld, \"Uniform B-Splines for the VTK Imaging\n" "Pipeline,\" VTK Journal, 2011, http://hdl.handle.net/10380/3252\n\n"; static PyObject * PyvtkImageBSplineCoefficients_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkImageBSplineCoefficients::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *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->vtkImageBSplineCoefficients::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkImageBSplineCoefficients *tempr = vtkImageBSplineCoefficients::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkImageBSplineCoefficients *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkImageBSplineCoefficients::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 * PyvtkImageBSplineCoefficients_SetSplineDegree(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSplineDegree"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSplineDegree(temp0); } else { op->vtkImageBSplineCoefficients::SetSplineDegree(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetSplineDegreeMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSplineDegreeMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetSplineDegreeMinValue() : op->vtkImageBSplineCoefficients::GetSplineDegreeMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetSplineDegreeMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSplineDegreeMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetSplineDegreeMaxValue() : op->vtkImageBSplineCoefficients::GetSplineDegreeMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetSplineDegree(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSplineDegree"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetSplineDegree() : op->vtkImageBSplineCoefficients::GetSplineDegree()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetBorderMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetBorderMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetBorderMode(temp0); } else { op->vtkImageBSplineCoefficients::SetBorderMode(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetBorderModeMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBorderModeMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetBorderModeMinValue() : op->vtkImageBSplineCoefficients::GetBorderModeMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetBorderModeMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBorderModeMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetBorderModeMaxValue() : op->vtkImageBSplineCoefficients::GetBorderModeMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetBorderModeToClamp(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetBorderModeToClamp"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetBorderModeToClamp(); } else { op->vtkImageBSplineCoefficients::SetBorderModeToClamp(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetBorderModeToRepeat(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetBorderModeToRepeat"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetBorderModeToRepeat(); } else { op->vtkImageBSplineCoefficients::SetBorderModeToRepeat(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetBorderModeToMirror(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetBorderModeToMirror"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetBorderModeToMirror(); } else { op->vtkImageBSplineCoefficients::SetBorderModeToMirror(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetBorderMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBorderMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetBorderMode() : op->vtkImageBSplineCoefficients::GetBorderMode()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetBorderModeAsString(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBorderModeAsString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const char *tempr = (ap.IsBound() ? op->GetBorderModeAsString() : op->vtkImageBSplineCoefficients::GetBorderModeAsString()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetOutputScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetOutputScalarType(temp0); } else { op->vtkImageBSplineCoefficients::SetOutputScalarType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetOutputScalarTypeMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputScalarTypeMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetOutputScalarTypeMinValue() : op->vtkImageBSplineCoefficients::GetOutputScalarTypeMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetOutputScalarTypeMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputScalarTypeMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetOutputScalarTypeMaxValue() : op->vtkImageBSplineCoefficients::GetOutputScalarTypeMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetOutputScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetOutputScalarType() : op->vtkImageBSplineCoefficients::GetOutputScalarType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetOutputScalarTypeToFloat(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToFloat"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToFloat(); } else { op->vtkImageBSplineCoefficients::SetOutputScalarTypeToFloat(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetOutputScalarTypeToDouble(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToDouble"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToDouble(); } else { op->vtkImageBSplineCoefficients::SetOutputScalarTypeToDouble(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetOutputScalarTypeAsString(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputScalarTypeAsString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const char *tempr = (ap.IsBound() ? op->GetOutputScalarTypeAsString() : op->vtkImageBSplineCoefficients::GetOutputScalarTypeAsString()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_SetBypass(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetBypass"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetBypass(temp0); } else { op->vtkImageBSplineCoefficients::SetBypass(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_BypassOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "BypassOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->BypassOn(); } else { op->vtkImageBSplineCoefficients::BypassOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_BypassOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "BypassOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->BypassOff(); } else { op->vtkImageBSplineCoefficients::BypassOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_GetBypass(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBypass"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetBypass() : op->vtkImageBSplineCoefficients::GetBypass()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_CheckBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CheckBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { int tempr = (ap.IsBound() ? op->CheckBounds(temp0) : op->vtkImageBSplineCoefficients::CheckBounds(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_Evaluate_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Evaluate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); const int size0 = 3; double temp0[3]; int size1 = ap.GetArgSize(1); vtkPythonArgs::Array store1(2*size1); double *temp1 = store1.Data(); double *save1 = (size1 == 0 ? nullptr : temp1 + size1); PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->Evaluate(temp0, temp1); } else { op->vtkImageBSplineCoefficients::Evaluate(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 * PyvtkImageBSplineCoefficients_Evaluate_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Evaluate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *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)) { double tempr = (ap.IsBound() ? op->Evaluate(temp0, temp1, temp2) : op->vtkImageBSplineCoefficients::Evaluate(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_Evaluate_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Evaluate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkImageBSplineCoefficients *op = static_cast(vp); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { double tempr = (ap.IsBound() ? op->Evaluate(temp0) : op->vtkImageBSplineCoefficients::Evaluate(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkImageBSplineCoefficients_Evaluate(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkImageBSplineCoefficients_Evaluate_s1(self, args); case 3: return PyvtkImageBSplineCoefficients_Evaluate_s2(self, args); case 1: return PyvtkImageBSplineCoefficients_Evaluate_s3(self, args); } vtkPythonArgs::ArgCountError(nargs, "Evaluate"); return nullptr; } static PyMethodDef PyvtkImageBSplineCoefficients_Methods[] = { {"IsTypeOf", PyvtkImageBSplineCoefficients_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", PyvtkImageBSplineCoefficients_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", PyvtkImageBSplineCoefficients_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkImageBSplineCoefficients\nC++: static vtkImageBSplineCoefficients *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkImageBSplineCoefficients_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkImageBSplineCoefficients\nC++: vtkImageBSplineCoefficients *NewInstance()\n\n"}, {"SetSplineDegree", PyvtkImageBSplineCoefficients_SetSplineDegree, METH_VARARGS, "V.SetSplineDegree(int)\nC++: virtual void SetSplineDegree(int _arg)\n\nSet the degree of the spline polynomial. The default value is 3,\nand the maximum is 9.\n"}, {"GetSplineDegreeMinValue", PyvtkImageBSplineCoefficients_GetSplineDegreeMinValue, METH_VARARGS, "V.GetSplineDegreeMinValue() -> int\nC++: virtual int GetSplineDegreeMinValue()\n\nSet the degree of the spline polynomial. The default value is 3,\nand the maximum is 9.\n"}, {"GetSplineDegreeMaxValue", PyvtkImageBSplineCoefficients_GetSplineDegreeMaxValue, METH_VARARGS, "V.GetSplineDegreeMaxValue() -> int\nC++: virtual int GetSplineDegreeMaxValue()\n\nSet the degree of the spline polynomial. The default value is 3,\nand the maximum is 9.\n"}, {"GetSplineDegree", PyvtkImageBSplineCoefficients_GetSplineDegree, METH_VARARGS, "V.GetSplineDegree() -> int\nC++: virtual int GetSplineDegree()\n\nSet the degree of the spline polynomial. The default value is 3,\nand the maximum is 9.\n"}, {"SetBorderMode", PyvtkImageBSplineCoefficients_SetBorderMode, METH_VARARGS, "V.SetBorderMode(int)\nC++: virtual void SetBorderMode(int _arg)\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"GetBorderModeMinValue", PyvtkImageBSplineCoefficients_GetBorderModeMinValue, METH_VARARGS, "V.GetBorderModeMinValue() -> int\nC++: virtual int GetBorderModeMinValue()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"GetBorderModeMaxValue", PyvtkImageBSplineCoefficients_GetBorderModeMaxValue, METH_VARARGS, "V.GetBorderModeMaxValue() -> int\nC++: virtual int GetBorderModeMaxValue()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"SetBorderModeToClamp", PyvtkImageBSplineCoefficients_SetBorderModeToClamp, METH_VARARGS, "V.SetBorderModeToClamp()\nC++: void SetBorderModeToClamp()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"SetBorderModeToRepeat", PyvtkImageBSplineCoefficients_SetBorderModeToRepeat, METH_VARARGS, "V.SetBorderModeToRepeat()\nC++: void SetBorderModeToRepeat()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"SetBorderModeToMirror", PyvtkImageBSplineCoefficients_SetBorderModeToMirror, METH_VARARGS, "V.SetBorderModeToMirror()\nC++: void SetBorderModeToMirror()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"GetBorderMode", PyvtkImageBSplineCoefficients_GetBorderMode, METH_VARARGS, "V.GetBorderMode() -> int\nC++: virtual int GetBorderMode()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"GetBorderModeAsString", PyvtkImageBSplineCoefficients_GetBorderModeAsString, METH_VARARGS, "V.GetBorderModeAsString() -> string\nC++: const char *GetBorderModeAsString()\n\nSet the border mode. The filter that is used to create the\ncoefficients must repeat the image somehow to make a\ntheoritically infinite input. The default is to clamp values\nthat are off the edge of the image, to the value at the closest\npoint on the edge. The other ways of virtually extending the\nimage are to produce mirrored copies, which results in optimal\nsmoothness at the boundary, or to repeat the image, which results\nin a cyclic or periodic spline.\n"}, {"SetOutputScalarType", PyvtkImageBSplineCoefficients_SetOutputScalarType, METH_VARARGS, "V.SetOutputScalarType(int)\nC++: virtual void SetOutputScalarType(int _arg)\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"GetOutputScalarTypeMinValue", PyvtkImageBSplineCoefficients_GetOutputScalarTypeMinValue, METH_VARARGS, "V.GetOutputScalarTypeMinValue() -> int\nC++: virtual int GetOutputScalarTypeMinValue()\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"GetOutputScalarTypeMaxValue", PyvtkImageBSplineCoefficients_GetOutputScalarTypeMaxValue, METH_VARARGS, "V.GetOutputScalarTypeMaxValue() -> int\nC++: virtual int GetOutputScalarTypeMaxValue()\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"GetOutputScalarType", PyvtkImageBSplineCoefficients_GetOutputScalarType, METH_VARARGS, "V.GetOutputScalarType() -> int\nC++: virtual int GetOutputScalarType()\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"SetOutputScalarTypeToFloat", PyvtkImageBSplineCoefficients_SetOutputScalarTypeToFloat, METH_VARARGS, "V.SetOutputScalarTypeToFloat()\nC++: void SetOutputScalarTypeToFloat()\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"SetOutputScalarTypeToDouble", PyvtkImageBSplineCoefficients_SetOutputScalarTypeToDouble, METH_VARARGS, "V.SetOutputScalarTypeToDouble()\nC++: void SetOutputScalarTypeToDouble()\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"GetOutputScalarTypeAsString", PyvtkImageBSplineCoefficients_GetOutputScalarTypeAsString, METH_VARARGS, "V.GetOutputScalarTypeAsString() -> string\nC++: const char *GetOutputScalarTypeAsString()\n\nSet the scalar type of the output. Default is float.\nFloating-point output is used to avoid overflow, since the range\nof the output values is larger than the input values.\n"}, {"SetBypass", PyvtkImageBSplineCoefficients_SetBypass, METH_VARARGS, "V.SetBypass(int)\nC++: virtual void SetBypass(int _arg)\n\nBypass the filter, do not do any processing. If this is on, then\nthe output data will reference the input data directly, and the\noutput type will be the same as the input type. This is useful a\ndownstream filter sometimes uses b-spline interpolation and\nsometimes uses other forms of interpolation.\n"}, {"BypassOn", PyvtkImageBSplineCoefficients_BypassOn, METH_VARARGS, "V.BypassOn()\nC++: virtual void BypassOn()\n\nBypass the filter, do not do any processing. If this is on, then\nthe output data will reference the input data directly, and the\noutput type will be the same as the input type. This is useful a\ndownstream filter sometimes uses b-spline interpolation and\nsometimes uses other forms of interpolation.\n"}, {"BypassOff", PyvtkImageBSplineCoefficients_BypassOff, METH_VARARGS, "V.BypassOff()\nC++: virtual void BypassOff()\n\nBypass the filter, do not do any processing. If this is on, then\nthe output data will reference the input data directly, and the\noutput type will be the same as the input type. This is useful a\ndownstream filter sometimes uses b-spline interpolation and\nsometimes uses other forms of interpolation.\n"}, {"GetBypass", PyvtkImageBSplineCoefficients_GetBypass, METH_VARARGS, "V.GetBypass() -> int\nC++: virtual int GetBypass()\n\nBypass the filter, do not do any processing. If this is on, then\nthe output data will reference the input data directly, and the\noutput type will be the same as the input type. This is useful a\ndownstream filter sometimes uses b-spline interpolation and\nsometimes uses other forms of interpolation.\n"}, {"CheckBounds", PyvtkImageBSplineCoefficients_CheckBounds, METH_VARARGS, "V.CheckBounds((float, float, float)) -> int\nC++: int CheckBounds(const double point[3])\n\nCheck a point against the image bounds. Return 0 if out of\nbounds, and 1 if inside bounds. Calling Evaluate on a point\noutside the bounds will not generate an error, but the value\nreturned will depend on the BorderMode.\n"}, {"Evaluate", PyvtkImageBSplineCoefficients_Evaluate, METH_VARARGS, "V.Evaluate((float, float, float), [float, ...])\nC++: void Evaluate(const double point[3], double *value)\nV.Evaluate(float, float, float) -> float\nC++: double Evaluate(double x, double y, double z)\nV.Evaluate((float, float, float)) -> float\nC++: double Evaluate(const double point[3])\n\nInterpolate a value from the image. You must call Update()\nbefore calling this method for the first time. The first\nsignature can return multiple components, while the second\nsignature is for use on single-component images.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkImageBSplineCoefficients_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkImagingCorePython.vtkImageBSplineCoefficients", // 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 PyvtkImageBSplineCoefficients_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 *PyvtkImageBSplineCoefficients_StaticNew() { return vtkImageBSplineCoefficients::New(); } PyObject *PyvtkImageBSplineCoefficients_ClassNew() { PyVTKClass_Add( &PyvtkImageBSplineCoefficients_Type, PyvtkImageBSplineCoefficients_Methods, "vtkImageBSplineCoefficients", &PyvtkImageBSplineCoefficients_StaticNew); PyTypeObject *pytype = &PyvtkImageBSplineCoefficients_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 *)PyvtkThreadedImageAlgorithm_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkImageBSplineCoefficients( PyObject *dict) { PyObject *o; o = PyvtkImageBSplineCoefficients_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkImageBSplineCoefficients", o) != 0) { Py_DECREF(o); } }