// python wrapper for vtkExtractHistogram2D // #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 "vtkExtractHistogram2D.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkExtractHistogram2D(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkExtractHistogram2D_ClassNew(); } #ifndef DECLARED_PyvtkStatisticsAlgorithm_ClassNew extern "C" { PyObject *PyvtkStatisticsAlgorithm_ClassNew(); } #define DECLARED_PyvtkStatisticsAlgorithm_ClassNew #endif static const char *PyvtkExtractHistogram2D_Doc = "vtkExtractHistogram2D - compute a 2D histogram between two columns\n of an input vtkTable.\n\n" "Superclass: vtkStatisticsAlgorithm\n\n" "This class computes a 2D histogram between two columns of an input\n" " vtkTable. Just as with a 1D histogram, a 2D histogram breaks\n" " up the input domain into bins, and each pair of values (row in\n" " the table) fits into a single bin and increments a row counter\n" " for that bin.\n\n\n" " To use this class, set the input with a table and call\n" "AddColumnPair(nameX,nameY),\n" " where nameX and nameY are the names of the two columns to be used.\n\n\n" " In addition to the number of bins (in X and Y), the domain of\n" " the histogram can be customized by toggling the\n" "UseCustomHistogramExtents\n" " flag and setting the CustomHistogramExtents variable to the\n" " desired value.\n\n" "@sa\n" " vtkPExtractHistogram2D\n\n" "@par Thanks:\n" " Developed by David Feng and Philippe Pebay at Sandia National\n" "Laboratories\n" "----------------------------------------------------------------------\n" " --------\n\n"; static PyTypeObject PyvtkExtractHistogram2D_OutputIndices_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersImagingPython.vtkExtractHistogram2D.OutputIndices", // tp_name sizeof(PyIntObject), // tp_basicsize 0, // tp_itemsize nullptr, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare nullptr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call nullptr, // tp_str nullptr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags nullptr, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset &PyInt_Type, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc nullptr, // tp_new PyObject_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; PyObject *PyvtkExtractHistogram2D_OutputIndices_FromEnum(int val) { #ifdef VTK_PY3K PyObject *args = Py_BuildValue("(i)", val); PyObject *obj = PyLong_Type.tp_new(&PyvtkExtractHistogram2D_OutputIndices_Type, args, nullptr); Py_DECREF(args); return obj; #else PyIntObject *self = PyObject_New(PyIntObject, &PyvtkExtractHistogram2D_OutputIndices_Type); self->ob_ival = val; return (PyObject *)self; #endif } static PyObject * PyvtkExtractHistogram2D_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkExtractHistogram2D::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *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->vtkExtractHistogram2D::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkExtractHistogram2D *tempr = vtkExtractHistogram2D::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkExtractHistogram2D *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkExtractHistogram2D::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 * PyvtkExtractHistogram2D_SetNumberOfBins_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfBins"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetNumberOfBins(temp0, temp1); } else { op->vtkExtractHistogram2D::SetNumberOfBins(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetNumberOfBins_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfBins"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); const int size0 = 2; int temp0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetNumberOfBins(temp0); } else { op->vtkExtractHistogram2D::SetNumberOfBins(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetNumberOfBins(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkExtractHistogram2D_SetNumberOfBins_s1(self, args); case 1: return PyvtkExtractHistogram2D_SetNumberOfBins_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetNumberOfBins"); return nullptr; } static PyObject * PyvtkExtractHistogram2D_GetNumberOfBins(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfBins"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int *tempr = (ap.IsBound() ? op->GetNumberOfBins() : op->vtkExtractHistogram2D::GetNumberOfBins()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetComponentsToProcess_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetComponentsToProcess"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetComponentsToProcess(temp0, temp1); } else { op->vtkExtractHistogram2D::SetComponentsToProcess(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetComponentsToProcess_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetComponentsToProcess"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); const int size0 = 2; int temp0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetComponentsToProcess(temp0); } else { op->vtkExtractHistogram2D::SetComponentsToProcess(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetComponentsToProcess(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkExtractHistogram2D_SetComponentsToProcess_s1(self, args); case 1: return PyvtkExtractHistogram2D_SetComponentsToProcess_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetComponentsToProcess"); return nullptr; } static PyObject * PyvtkExtractHistogram2D_GetComponentsToProcess(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetComponentsToProcess"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int *tempr = (ap.IsBound() ? op->GetComponentsToProcess() : op->vtkExtractHistogram2D::GetComponentsToProcess()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetCustomHistogramExtents_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCustomHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); double temp0; double temp1; double temp2; double temp3; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3)) { if (ap.IsBound()) { op->SetCustomHistogramExtents(temp0, temp1, temp2, temp3); } else { op->vtkExtractHistogram2D::SetCustomHistogramExtents(temp0, temp1, temp2, temp3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetCustomHistogramExtents_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCustomHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); const int size0 = 4; double temp0[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetCustomHistogramExtents(temp0); } else { op->vtkExtractHistogram2D::SetCustomHistogramExtents(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetCustomHistogramExtents(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 4: return PyvtkExtractHistogram2D_SetCustomHistogramExtents_s1(self, args); case 1: return PyvtkExtractHistogram2D_SetCustomHistogramExtents_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetCustomHistogramExtents"); return nullptr; } static PyObject * PyvtkExtractHistogram2D_GetCustomHistogramExtents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCustomHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int sizer = 4; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetCustomHistogramExtents() : op->vtkExtractHistogram2D::GetCustomHistogramExtents()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetUseCustomHistogramExtents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetUseCustomHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetUseCustomHistogramExtents(temp0); } else { op->vtkExtractHistogram2D::SetUseCustomHistogramExtents(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetUseCustomHistogramExtents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetUseCustomHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetUseCustomHistogramExtents() : op->vtkExtractHistogram2D::GetUseCustomHistogramExtents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_UseCustomHistogramExtentsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UseCustomHistogramExtentsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UseCustomHistogramExtentsOn(); } else { op->vtkExtractHistogram2D::UseCustomHistogramExtentsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_UseCustomHistogramExtentsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UseCustomHistogramExtentsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UseCustomHistogramExtentsOff(); } else { op->vtkExtractHistogram2D::UseCustomHistogramExtentsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetScalarType(temp0); } else { op->vtkExtractHistogram2D::SetScalarType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarTypeToUnsignedInt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedInt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedInt(); } else { op->vtkExtractHistogram2D::SetScalarTypeToUnsignedInt(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarTypeToUnsignedLong(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedLong"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedLong(); } else { op->vtkExtractHistogram2D::SetScalarTypeToUnsignedLong(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarTypeToUnsignedShort(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedShort"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedShort(); } else { op->vtkExtractHistogram2D::SetScalarTypeToUnsignedShort(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarTypeToUnsignedChar(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedChar"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedChar(); } else { op->vtkExtractHistogram2D::SetScalarTypeToUnsignedChar(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarTypeToFloat(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToFloat"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToFloat(); } else { op->vtkExtractHistogram2D::SetScalarTypeToFloat(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetScalarTypeToDouble(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToDouble"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToDouble(); } else { op->vtkExtractHistogram2D::SetScalarTypeToDouble(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetScalarType() : op->vtkExtractHistogram2D::GetScalarType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetMaximumBinCount(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaximumBinCount"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetMaximumBinCount() : op->vtkExtractHistogram2D::GetMaximumBinCount()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetBinRange_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBinRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); vtkIdType temp0; vtkIdType temp1; const int size2 = 4; double temp2[4]; double save2[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetArray(temp2, size2)) { ap.SaveArray(temp2, save2, size2); int tempr = (ap.IsBound() ? op->GetBinRange(temp0, temp1, temp2) : op->vtkExtractHistogram2D::GetBinRange(temp0, temp1, temp2)); if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetBinRange_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBinRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); vtkIdType temp0; const int size1 = 4; double temp1[4]; double save1[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); int tempr = (ap.IsBound() ? op->GetBinRange(temp0, temp1) : op->vtkExtractHistogram2D::GetBinRange(temp0, temp1)); if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetBinRange(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkExtractHistogram2D_GetBinRange_s1(self, args); case 2: return PyvtkExtractHistogram2D_GetBinRange_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetBinRange"); return nullptr; } static PyObject * PyvtkExtractHistogram2D_GetBinWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBinWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); const int size0 = 2; double temp0[2]; double save0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->GetBinWidth(temp0); } else { op->vtkExtractHistogram2D::GetBinWidth(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetOutputHistogramImage(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputHistogramImage"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkImageData *tempr = (ap.IsBound() ? op->GetOutputHistogramImage() : op->vtkExtractHistogram2D::GetOutputHistogramImage()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetHistogramExtents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetHistogramExtents() : op->vtkExtractHistogram2D::GetHistogramExtents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetSwapColumns(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSwapColumns"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSwapColumns(temp0); } else { op->vtkExtractHistogram2D::SetSwapColumns(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetSwapColumns(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSwapColumns"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetSwapColumns() : op->vtkExtractHistogram2D::GetSwapColumns()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_SwapColumnsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SwapColumnsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SwapColumnsOn(); } else { op->vtkExtractHistogram2D::SwapColumnsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SwapColumnsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SwapColumnsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SwapColumnsOff(); } else { op->vtkExtractHistogram2D::SwapColumnsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_SetRowMask(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRowMask"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); vtkDataArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkDataArray")) { if (ap.IsBound()) { op->SetRowMask(temp0); } else { op->vtkExtractHistogram2D::SetRowMask(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkExtractHistogram2D_GetRowMask(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRowMask"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkDataArray *tempr = (ap.IsBound() ? op->GetRowMask() : op->vtkExtractHistogram2D::GetRowMask()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkExtractHistogram2D_Aggregate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Aggregate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkExtractHistogram2D *op = static_cast(vp); vtkDataObjectCollection *temp0 = nullptr; vtkMultiBlockDataSet *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetVTKObject(temp0, "vtkDataObjectCollection") && ap.GetVTKObject(temp1, "vtkMultiBlockDataSet")) { if (ap.IsBound()) { op->Aggregate(temp0, temp1); } else { op->vtkExtractHistogram2D::Aggregate(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkExtractHistogram2D_Methods[] = { {"IsTypeOf", PyvtkExtractHistogram2D_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", PyvtkExtractHistogram2D_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", PyvtkExtractHistogram2D_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkExtractHistogram2D\nC++: static vtkExtractHistogram2D *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkExtractHistogram2D_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkExtractHistogram2D\nC++: vtkExtractHistogram2D *NewInstance()\n\n"}, {"SetNumberOfBins", PyvtkExtractHistogram2D_SetNumberOfBins, METH_VARARGS, "V.SetNumberOfBins(int, int)\nC++: void SetNumberOfBins(int, int)\nV.SetNumberOfBins((int, int))\nC++: void SetNumberOfBins(int a[2])\n\n"}, {"GetNumberOfBins", PyvtkExtractHistogram2D_GetNumberOfBins, METH_VARARGS, "V.GetNumberOfBins() -> (int, int)\nC++: int *GetNumberOfBins()\n\n"}, {"SetComponentsToProcess", PyvtkExtractHistogram2D_SetComponentsToProcess, METH_VARARGS, "V.SetComponentsToProcess(int, int)\nC++: void SetComponentsToProcess(int, int)\nV.SetComponentsToProcess((int, int))\nC++: void SetComponentsToProcess(int a[2])\n\n"}, {"GetComponentsToProcess", PyvtkExtractHistogram2D_GetComponentsToProcess, METH_VARARGS, "V.GetComponentsToProcess() -> (int, int)\nC++: int *GetComponentsToProcess()\n\n"}, {"SetCustomHistogramExtents", PyvtkExtractHistogram2D_SetCustomHistogramExtents, METH_VARARGS, "V.SetCustomHistogramExtents(float, float, float, float)\nC++: void SetCustomHistogramExtents(double, double, double,\n double)\nV.SetCustomHistogramExtents((float, float, float, float))\nC++: void SetCustomHistogramExtents(double a[4])\n\n"}, {"GetCustomHistogramExtents", PyvtkExtractHistogram2D_GetCustomHistogramExtents, METH_VARARGS, "V.GetCustomHistogramExtents() -> (float, float, float, float)\nC++: double *GetCustomHistogramExtents()\n\n"}, {"SetUseCustomHistogramExtents", PyvtkExtractHistogram2D_SetUseCustomHistogramExtents, METH_VARARGS, "V.SetUseCustomHistogramExtents(int)\nC++: virtual void SetUseCustomHistogramExtents(int _arg)\n\nUse the extents in CustomHistogramExtents when computing the\nhistogram, rather than the simple range of the input columns.\n"}, {"GetUseCustomHistogramExtents", PyvtkExtractHistogram2D_GetUseCustomHistogramExtents, METH_VARARGS, "V.GetUseCustomHistogramExtents() -> int\nC++: virtual int GetUseCustomHistogramExtents()\n\nUse the extents in CustomHistogramExtents when computing the\nhistogram, rather than the simple range of the input columns.\n"}, {"UseCustomHistogramExtentsOn", PyvtkExtractHistogram2D_UseCustomHistogramExtentsOn, METH_VARARGS, "V.UseCustomHistogramExtentsOn()\nC++: virtual void UseCustomHistogramExtentsOn()\n\nUse the extents in CustomHistogramExtents when computing the\nhistogram, rather than the simple range of the input columns.\n"}, {"UseCustomHistogramExtentsOff", PyvtkExtractHistogram2D_UseCustomHistogramExtentsOff, METH_VARARGS, "V.UseCustomHistogramExtentsOff()\nC++: virtual void UseCustomHistogramExtentsOff()\n\nUse the extents in CustomHistogramExtents when computing the\nhistogram, rather than the simple range of the input columns.\n"}, {"SetScalarType", PyvtkExtractHistogram2D_SetScalarType, METH_VARARGS, "V.SetScalarType(int)\nC++: virtual void SetScalarType(int _arg)\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"SetScalarTypeToUnsignedInt", PyvtkExtractHistogram2D_SetScalarTypeToUnsignedInt, METH_VARARGS, "V.SetScalarTypeToUnsignedInt()\nC++: void SetScalarTypeToUnsignedInt()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"SetScalarTypeToUnsignedLong", PyvtkExtractHistogram2D_SetScalarTypeToUnsignedLong, METH_VARARGS, "V.SetScalarTypeToUnsignedLong()\nC++: void SetScalarTypeToUnsignedLong()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"SetScalarTypeToUnsignedShort", PyvtkExtractHistogram2D_SetScalarTypeToUnsignedShort, METH_VARARGS, "V.SetScalarTypeToUnsignedShort()\nC++: void SetScalarTypeToUnsignedShort()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"SetScalarTypeToUnsignedChar", PyvtkExtractHistogram2D_SetScalarTypeToUnsignedChar, METH_VARARGS, "V.SetScalarTypeToUnsignedChar()\nC++: void SetScalarTypeToUnsignedChar()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"SetScalarTypeToFloat", PyvtkExtractHistogram2D_SetScalarTypeToFloat, METH_VARARGS, "V.SetScalarTypeToFloat()\nC++: void SetScalarTypeToFloat()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"SetScalarTypeToDouble", PyvtkExtractHistogram2D_SetScalarTypeToDouble, METH_VARARGS, "V.SetScalarTypeToDouble()\nC++: void SetScalarTypeToDouble()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"GetScalarType", PyvtkExtractHistogram2D_GetScalarType, METH_VARARGS, "V.GetScalarType() -> int\nC++: virtual int GetScalarType()\n\nControl the scalar type of the output histogram. If the input is\nrelatively small, you can save space by using a smaller data\ntype. Defaults to unsigned integer.\n"}, {"GetMaximumBinCount", PyvtkExtractHistogram2D_GetMaximumBinCount, METH_VARARGS, "V.GetMaximumBinCount() -> float\nC++: virtual double GetMaximumBinCount()\n\nAccess the count of the histogram bin containing the largest\nnumber of input rows.\n"}, {"GetBinRange", PyvtkExtractHistogram2D_GetBinRange, METH_VARARGS, "V.GetBinRange(int, int, [float, float, float, float]) -> int\nC++: int GetBinRange(vtkIdType binX, vtkIdType binY,\n double range[4])\nV.GetBinRange(int, [float, float, float, float]) -> int\nC++: int GetBinRange(vtkIdType bin, double range[4])\n\nCompute the range of the bin located at position (binX,binY) in\nthe 2D histogram.\n"}, {"GetBinWidth", PyvtkExtractHistogram2D_GetBinWidth, METH_VARARGS, "V.GetBinWidth([float, float])\nC++: void GetBinWidth(double bw[2])\n\nGet the width of all of the bins. Also stored in the spacing ivar\nof the histogram image output.\n"}, {"GetOutputHistogramImage", PyvtkExtractHistogram2D_GetOutputHistogramImage, METH_VARARGS, "V.GetOutputHistogramImage() -> vtkImageData\nC++: vtkImageData *GetOutputHistogramImage()\n\nGets the data object at the histogram image output port and casts\nit to a vtkImageData.\n"}, {"GetHistogramExtents", PyvtkExtractHistogram2D_GetHistogramExtents, METH_VARARGS, "V.GetHistogramExtents() -> (float, ...)\nC++: double *GetHistogramExtents()\n\nGet the histogram extents currently in use, either computed or\nset by the user.\n"}, {"SetSwapColumns", PyvtkExtractHistogram2D_SetSwapColumns, METH_VARARGS, "V.SetSwapColumns(int)\nC++: virtual void SetSwapColumns(int _arg)\n\n"}, {"GetSwapColumns", PyvtkExtractHistogram2D_GetSwapColumns, METH_VARARGS, "V.GetSwapColumns() -> int\nC++: virtual int GetSwapColumns()\n\n"}, {"SwapColumnsOn", PyvtkExtractHistogram2D_SwapColumnsOn, METH_VARARGS, "V.SwapColumnsOn()\nC++: virtual void SwapColumnsOn()\n\n"}, {"SwapColumnsOff", PyvtkExtractHistogram2D_SwapColumnsOff, METH_VARARGS, "V.SwapColumnsOff()\nC++: virtual void SwapColumnsOff()\n\n"}, {"SetRowMask", PyvtkExtractHistogram2D_SetRowMask, METH_VARARGS, "V.SetRowMask(vtkDataArray)\nC++: virtual void SetRowMask(vtkDataArray *)\n\nGet/Set an optional mask that can ignore rows of the table\n"}, {"GetRowMask", PyvtkExtractHistogram2D_GetRowMask, METH_VARARGS, "V.GetRowMask() -> vtkDataArray\nC++: virtual vtkDataArray *GetRowMask()\n\nGet/Set an optional mask that can ignore rows of the table\n"}, {"Aggregate", PyvtkExtractHistogram2D_Aggregate, METH_VARARGS, "V.Aggregate(vtkDataObjectCollection, vtkMultiBlockDataSet)\nC++: void Aggregate(vtkDataObjectCollection *,\n vtkMultiBlockDataSet *) override;\n\nGiven a collection of models, calculate aggregate model. Not\nused.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkExtractHistogram2D_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersImagingPython.vtkExtractHistogram2D", // 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 PyvtkExtractHistogram2D_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 *PyvtkExtractHistogram2D_StaticNew() { return vtkExtractHistogram2D::New(); } PyObject *PyvtkExtractHistogram2D_ClassNew() { PyVTKClass_Add( &PyvtkExtractHistogram2D_Type, PyvtkExtractHistogram2D_Methods, "vtkExtractHistogram2D", &PyvtkExtractHistogram2D_StaticNew); PyTypeObject *pytype = &PyvtkExtractHistogram2D_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 *)PyvtkStatisticsAlgorithm_ClassNew(); PyObject *d = pytype->tp_dict; PyObject *o; PyType_Ready(&PyvtkExtractHistogram2D_OutputIndices_Type); PyvtkExtractHistogram2D_OutputIndices_Type.tp_new = nullptr; vtkPythonUtil::AddEnumToMap(&PyvtkExtractHistogram2D_OutputIndices_Type); o = (PyObject *)&PyvtkExtractHistogram2D_OutputIndices_Type; if (PyDict_SetItemString(d, "OutputIndices", o) != 0) { Py_DECREF(o); } o = PyvtkExtractHistogram2D_OutputIndices_FromEnum(vtkExtractHistogram2D::HISTOGRAM_IMAGE); if (o) { PyDict_SetItemString(d, "HISTOGRAM_IMAGE", o); Py_DECREF(o); } PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkExtractHistogram2D( PyObject *dict) { PyObject *o; o = PyvtkExtractHistogram2D_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkExtractHistogram2D", o) != 0) { Py_DECREF(o); } }