// python wrapper for vtkHyperOctreeSampleFunction // #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 "vtkHyperOctreeSampleFunction.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkHyperOctreeSampleFunction(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkHyperOctreeSampleFunction_ClassNew(); } #ifndef DECLARED_PyvtkHyperOctreeAlgorithm_ClassNew extern "C" { PyObject *PyvtkHyperOctreeAlgorithm_ClassNew(); } #define DECLARED_PyvtkHyperOctreeAlgorithm_ClassNew #endif static const char *PyvtkHyperOctreeSampleFunction_Doc = "vtkHyperOctreeSampleFunction - sample an implicit function over an\nhyperoctree\n\n" "Superclass: vtkHyperOctreeAlgorithm\n\n" "vtkHyperOctreeSampleFunction is a source object that evaluates an\n" "implicit function to drive the subdivision process. The user can\n" "specify the threshold over which a subdivision occurs, the maximum\n" "and minimum level of subdivisions and the dimension of the\n" "hyperoctree.\n\n" "@sa\n" "vtkSampleFunction\n\n"; static PyObject * PyvtkHyperOctreeSampleFunction_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkHyperOctreeSampleFunction::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *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->vtkHyperOctreeSampleFunction::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkHyperOctreeSampleFunction *tempr = vtkHyperOctreeSampleFunction::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkHyperOctreeSampleFunction *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkHyperOctreeSampleFunction::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 * PyvtkHyperOctreeSampleFunction_GetLevels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLevels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetLevels() : op->vtkHyperOctreeSampleFunction::GetLevels()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetLevels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLevels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetLevels(temp0); } else { op->vtkHyperOctreeSampleFunction::SetLevels(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetMinLevels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMinLevels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetMinLevels() : op->vtkHyperOctreeSampleFunction::GetMinLevels()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetMinLevels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetMinLevels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetMinLevels(temp0); } else { op->vtkHyperOctreeSampleFunction::SetMinLevels(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetThreshold(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetThreshold"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetThreshold() : op->vtkHyperOctreeSampleFunction::GetThreshold()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetThreshold(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetThreshold"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetThreshold(temp0); } else { op->vtkHyperOctreeSampleFunction::SetThreshold(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetDimension(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDimension"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDimension() : op->vtkHyperOctreeSampleFunction::GetDimension()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetDimension(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDimension"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDimension(temp0); } else { op->vtkHyperOctreeSampleFunction::SetDimension(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetSize_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *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)) { if (ap.IsBound()) { op->SetSize(temp0, temp1, temp2); } else { op->vtkHyperOctreeSampleFunction::SetSize(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetSize_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetSize(temp0); } else { op->vtkHyperOctreeSampleFunction::SetSize(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetSize(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkHyperOctreeSampleFunction_SetSize_s1(self, args); case 1: return PyvtkHyperOctreeSampleFunction_SetSize_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetSize"); return nullptr; } static PyObject * PyvtkHyperOctreeSampleFunction_GetSize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); int sizer = 3; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetSize() : op->vtkHyperOctreeSampleFunction::GetSize()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOrigin_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOrigin"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *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)) { if (ap.IsBound()) { op->SetOrigin(temp0, temp1, temp2); } else { op->vtkHyperOctreeSampleFunction::SetOrigin(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOrigin_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOrigin"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetOrigin(temp0); } else { op->vtkHyperOctreeSampleFunction::SetOrigin(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOrigin(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkHyperOctreeSampleFunction_SetOrigin_s1(self, args); case 1: return PyvtkHyperOctreeSampleFunction_SetOrigin_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetOrigin"); return nullptr; } static PyObject * PyvtkHyperOctreeSampleFunction_GetOrigin(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOrigin"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); int sizer = 3; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetOrigin() : op->vtkHyperOctreeSampleFunction::GetOrigin()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetWidth() : op->vtkHyperOctreeSampleFunction::GetWidth()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetWidth(temp0); } else { op->vtkHyperOctreeSampleFunction::SetWidth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetHeight() : op->vtkHyperOctreeSampleFunction::GetHeight()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetHeight(temp0); } else { op->vtkHyperOctreeSampleFunction::SetHeight(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetDepth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDepth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetDepth() : op->vtkHyperOctreeSampleFunction::GetDepth()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetDepth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDepth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDepth(temp0); } else { op->vtkHyperOctreeSampleFunction::SetDepth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetImplicitFunction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetImplicitFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); vtkImplicitFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkImplicitFunction")) { if (ap.IsBound()) { op->SetImplicitFunction(temp0); } else { op->vtkHyperOctreeSampleFunction::SetImplicitFunction(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetImplicitFunction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetImplicitFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkImplicitFunction *tempr = (ap.IsBound() ? op->GetImplicitFunction() : op->vtkHyperOctreeSampleFunction::GetImplicitFunction()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *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->vtkHyperOctreeSampleFunction::SetOutputScalarType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetOutputScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetOutputScalarType() : op->vtkHyperOctreeSampleFunction::GetOutputScalarType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToDouble(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToDouble"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToDouble(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToDouble(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToFloat(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToFloat"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToFloat(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToFloat(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToLong(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToLong"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToLong(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToLong(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedLong(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToUnsignedLong"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToUnsignedLong(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedLong(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToInt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToInt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToInt(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToInt(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedInt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToUnsignedInt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToUnsignedInt(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedInt(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToShort(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToShort"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToShort(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToShort(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedShort(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToUnsignedShort"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToUnsignedShort(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedShort(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToChar(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToChar"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToChar(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToChar(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedChar(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputScalarTypeToUnsignedChar"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetOutputScalarTypeToUnsignedChar(); } else { op->vtkHyperOctreeSampleFunction::SetOutputScalarTypeToUnsignedChar(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkHyperOctreeSampleFunction_GetMTime(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkHyperOctreeSampleFunction *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetMTime() : op->vtkHyperOctreeSampleFunction::GetMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkHyperOctreeSampleFunction_Methods[] = { {"IsTypeOf", PyvtkHyperOctreeSampleFunction_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", PyvtkHyperOctreeSampleFunction_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", PyvtkHyperOctreeSampleFunction_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkHyperOctreeSampleFunction\nC++: static vtkHyperOctreeSampleFunction *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkHyperOctreeSampleFunction_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkHyperOctreeSampleFunction\nC++: vtkHyperOctreeSampleFunction *NewInstance()\n\n"}, {"GetLevels", PyvtkHyperOctreeSampleFunction_GetLevels, METH_VARARGS, "V.GetLevels() -> int\nC++: int GetLevels()\n\nReturn the maximum number of levels of the hyperoctree.\n\\post positive_result: result>=1\n"}, {"SetLevels", PyvtkHyperOctreeSampleFunction_SetLevels, METH_VARARGS, "V.SetLevels(int)\nC++: void SetLevels(int levels)\n\nSet the maximum number of levels of the hyperoctree. If\nGetMinLevels()>=levels, GetMinLevels() is changed to levels-1.\n\\pre positive_levels: levels>=1\n\\post is_set: this->GetLevels()==levels\n\\post min_is_valid: this->GetMinLevels()GetLevels()\n"}, {"GetMinLevels", PyvtkHyperOctreeSampleFunction_GetMinLevels, METH_VARARGS, "V.GetMinLevels() -> int\nC++: int GetMinLevels()\n\nReturn the minimal number of levels of systematic subdivision.\n\\post positive_result: result>=0\n"}, {"SetMinLevels", PyvtkHyperOctreeSampleFunction_SetMinLevels, METH_VARARGS, "V.SetMinLevels(int)\nC++: void SetMinLevels(int minLevels)\n\nSet the minimal number of levels of systematic subdivision.\n\\pre positive_minLevels: minLevels>=0\n\\post is_set: this->GetMinLevels()==minLevels\n"}, {"GetThreshold", PyvtkHyperOctreeSampleFunction_GetThreshold, METH_VARARGS, "V.GetThreshold() -> float\nC++: double GetThreshold()\n\nReturn the threshold over which a subdivision is required.\n\\post positive_result: result>0\n"}, {"SetThreshold", PyvtkHyperOctreeSampleFunction_SetThreshold, METH_VARARGS, "V.SetThreshold(float)\nC++: void SetThreshold(double threshold)\n\nSet the threshold over which a subdivision is required.\n\\pre positive_threshold: threshold>=0\n\\post is_set: this->GetThreshold()==threshold\n"}, {"GetDimension", PyvtkHyperOctreeSampleFunction_GetDimension, METH_VARARGS, "V.GetDimension() -> int\nC++: int GetDimension()\n\nReturn the dimension of the tree (1D:binary tree(2 children),\n2D:quadtree(4 children), 3D:octree (8 children))\n\\post valid_result: result>=1 && result<=3\n"}, {"SetDimension", PyvtkHyperOctreeSampleFunction_SetDimension, METH_VARARGS, "V.SetDimension(int)\nC++: void SetDimension(int dim)\n\n"}, {"SetSize", PyvtkHyperOctreeSampleFunction_SetSize, METH_VARARGS, "V.SetSize(float, float, float)\nC++: void SetSize(double, double, double)\nV.SetSize((float, float, float))\nC++: void SetSize(double a[3])\n\n"}, {"GetSize", PyvtkHyperOctreeSampleFunction_GetSize, METH_VARARGS, "V.GetSize() -> (float, float, float)\nC++: double *GetSize()\n\n"}, {"SetOrigin", PyvtkHyperOctreeSampleFunction_SetOrigin, METH_VARARGS, "V.SetOrigin(float, float, float)\nC++: void SetOrigin(double, double, double)\nV.SetOrigin((float, float, float))\nC++: void SetOrigin(double a[3])\n\n"}, {"GetOrigin", PyvtkHyperOctreeSampleFunction_GetOrigin, METH_VARARGS, "V.GetOrigin() -> (float, float, float)\nC++: double *GetOrigin()\n\n"}, {"GetWidth", PyvtkHyperOctreeSampleFunction_GetWidth, METH_VARARGS, "V.GetWidth() -> float\nC++: double GetWidth()\n\nReturn the length along the x-axis.\n\\post positive_result: result>0\n"}, {"SetWidth", PyvtkHyperOctreeSampleFunction_SetWidth, METH_VARARGS, "V.SetWidth(float)\nC++: void SetWidth(double width)\n\nSet the length along the x-axis.\n\\pre positive_width: width>0\n\\post width_is_set: GetWidth()==width\n"}, {"GetHeight", PyvtkHyperOctreeSampleFunction_GetHeight, METH_VARARGS, "V.GetHeight() -> float\nC++: double GetHeight()\n\nReturn the length along the y-axis. Relevant only if\nGetDimension()>=2\n\\post positive_result: result>0\n"}, {"SetHeight", PyvtkHyperOctreeSampleFunction_SetHeight, METH_VARARGS, "V.SetHeight(float)\nC++: void SetHeight(double height)\n\nSet the length along the y-axis. Relevant only if\nGetDimension()>=2\n\\pre positive_height: height>0\n\\post height_is_set: GetHeight()==height\n"}, {"GetDepth", PyvtkHyperOctreeSampleFunction_GetDepth, METH_VARARGS, "V.GetDepth() -> float\nC++: double GetDepth()\n\nReturn the length along the z-axis. Relevant only if\nGetDimension()>=3\n\\post positive_result: result>0\n"}, {"SetDepth", PyvtkHyperOctreeSampleFunction_SetDepth, METH_VARARGS, "V.SetDepth(float)\nC++: void SetDepth(double depth)\n\nReturn the length along the z-axis. Relevant only if\nGetDimension()>=3\n\\pre positive_depth: depth>0\n\\post depth_is_set: GetDepth()==depth\n"}, {"SetImplicitFunction", PyvtkHyperOctreeSampleFunction_SetImplicitFunction, METH_VARARGS, "V.SetImplicitFunction(vtkImplicitFunction)\nC++: virtual void SetImplicitFunction(vtkImplicitFunction *)\n\nSpecify the implicit function to use to generate data.\n"}, {"GetImplicitFunction", PyvtkHyperOctreeSampleFunction_GetImplicitFunction, METH_VARARGS, "V.GetImplicitFunction() -> vtkImplicitFunction\nC++: virtual vtkImplicitFunction *GetImplicitFunction()\n\nSpecify the implicit function to use to generate data.\n"}, {"SetOutputScalarType", PyvtkHyperOctreeSampleFunction_SetOutputScalarType, METH_VARARGS, "V.SetOutputScalarType(int)\nC++: virtual void SetOutputScalarType(int _arg)\n\nSet what type of scalar data this source should generate.\n"}, {"GetOutputScalarType", PyvtkHyperOctreeSampleFunction_GetOutputScalarType, METH_VARARGS, "V.GetOutputScalarType() -> int\nC++: virtual int GetOutputScalarType()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToDouble", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToDouble, METH_VARARGS, "V.SetOutputScalarTypeToDouble()\nC++: void SetOutputScalarTypeToDouble()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToFloat", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToFloat, METH_VARARGS, "V.SetOutputScalarTypeToFloat()\nC++: void SetOutputScalarTypeToFloat()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToLong", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToLong, METH_VARARGS, "V.SetOutputScalarTypeToLong()\nC++: void SetOutputScalarTypeToLong()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToUnsignedLong", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedLong, METH_VARARGS, "V.SetOutputScalarTypeToUnsignedLong()\nC++: void SetOutputScalarTypeToUnsignedLong()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToInt", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToInt, METH_VARARGS, "V.SetOutputScalarTypeToInt()\nC++: void SetOutputScalarTypeToInt()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToUnsignedInt", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedInt, METH_VARARGS, "V.SetOutputScalarTypeToUnsignedInt()\nC++: void SetOutputScalarTypeToUnsignedInt()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToShort", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToShort, METH_VARARGS, "V.SetOutputScalarTypeToShort()\nC++: void SetOutputScalarTypeToShort()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToUnsignedShort", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedShort, METH_VARARGS, "V.SetOutputScalarTypeToUnsignedShort()\nC++: void SetOutputScalarTypeToUnsignedShort()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToChar", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToChar, METH_VARARGS, "V.SetOutputScalarTypeToChar()\nC++: void SetOutputScalarTypeToChar()\n\nSet what type of scalar data this source should generate.\n"}, {"SetOutputScalarTypeToUnsignedChar", PyvtkHyperOctreeSampleFunction_SetOutputScalarTypeToUnsignedChar, METH_VARARGS, "V.SetOutputScalarTypeToUnsignedChar()\nC++: void SetOutputScalarTypeToUnsignedChar()\n\nSet what type of scalar data this source should generate.\n"}, {"GetMTime", PyvtkHyperOctreeSampleFunction_GetMTime, METH_VARARGS, "V.GetMTime() -> int\nC++: vtkMTimeType GetMTime() override;\n\nReturn the MTime also considering the implicit function.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkHyperOctreeSampleFunction_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersHyperTreePython.vtkHyperOctreeSampleFunction", // 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 PyvtkHyperOctreeSampleFunction_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 *PyvtkHyperOctreeSampleFunction_StaticNew() { return vtkHyperOctreeSampleFunction::New(); } PyObject *PyvtkHyperOctreeSampleFunction_ClassNew() { PyVTKClass_Add( &PyvtkHyperOctreeSampleFunction_Type, PyvtkHyperOctreeSampleFunction_Methods, "vtkHyperOctreeSampleFunction", &PyvtkHyperOctreeSampleFunction_StaticNew); PyTypeObject *pytype = &PyvtkHyperOctreeSampleFunction_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 *)PyvtkHyperOctreeAlgorithm_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkHyperOctreeSampleFunction( PyObject *dict) { PyObject *o; o = PyvtkHyperOctreeSampleFunction_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkHyperOctreeSampleFunction", o) != 0) { Py_DECREF(o); } }