// python wrapper for vtkPairwiseExtractHistogram2D // #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 "vtkPairwiseExtractHistogram2D.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkPairwiseExtractHistogram2D(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkPairwiseExtractHistogram2D_ClassNew(); } #ifndef DECLARED_PyvtkStatisticsAlgorithm_ClassNew extern "C" { PyObject *PyvtkStatisticsAlgorithm_ClassNew(); } #define DECLARED_PyvtkStatisticsAlgorithm_ClassNew #endif static const char *PyvtkPairwiseExtractHistogram2D_Doc = "vtkPairwiseExtractHistogram2D - compute a 2D histogram between\n all adjacent columns of an input vtkTable.\n\n" "Superclass: vtkStatisticsAlgorithm\n\n" "This class computes a 2D histogram between all adjacent pairs of\n" "columns\n" " of an input vtkTable. Internally it creates multiple\n" "vtkExtractHistogram2D\n" " instances (one for each pair of adjacent table columns). It also\n" " manages updating histogram computations intelligently, only\n" "recomputing\n" " those histograms for whom a relevant property has been altered.\n\n\n" " Note that there are two different outputs from this filter. One is\n" "a\n" " table for which each column contains a flattened 2D histogram array.\n" " The other is a vtkMultiBlockDataSet for which each block is a\n" " vtkImageData representation of the 2D histogram.\n\n" "@sa\n" " vtkExtractHistogram2D vtkPPairwiseExtractHistogram2D\n\n" "@par Thanks:\n" " Developed by David Feng and Philippe Pebay at Sandia National\n" "Laboratories\n" "----------------------------------------------------------------------\n" " --------\n\n"; static PyTypeObject PyvtkPairwiseExtractHistogram2D_OutputIndices_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersImagingPython.vtkPairwiseExtractHistogram2D.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 *PyvtkPairwiseExtractHistogram2D_OutputIndices_FromEnum(int val) { #ifdef VTK_PY3K PyObject *args = Py_BuildValue("(i)", val); PyObject *obj = PyLong_Type.tp_new(&PyvtkPairwiseExtractHistogram2D_OutputIndices_Type, args, nullptr); Py_DECREF(args); return obj; #else PyIntObject *self = PyObject_New(PyIntObject, &PyvtkPairwiseExtractHistogram2D_OutputIndices_Type); self->ob_ival = val; return (PyObject *)self; #endif } static PyObject * PyvtkPairwiseExtractHistogram2D_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkPairwiseExtractHistogram2D::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *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->vtkPairwiseExtractHistogram2D::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkPairwiseExtractHistogram2D *tempr = vtkPairwiseExtractHistogram2D::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPairwiseExtractHistogram2D *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkPairwiseExtractHistogram2D::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 * PyvtkPairwiseExtractHistogram2D_SetNumberOfBins_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfBins"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *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->vtkPairwiseExtractHistogram2D::SetNumberOfBins(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetNumberOfBins_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetNumberOfBins"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *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->vtkPairwiseExtractHistogram2D::SetNumberOfBins(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetNumberOfBins(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkPairwiseExtractHistogram2D_SetNumberOfBins_s1(self, args); case 1: return PyvtkPairwiseExtractHistogram2D_SetNumberOfBins_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetNumberOfBins"); return nullptr; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetNumberOfBins(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfBins"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int sizer = 2; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int *tempr = (ap.IsBound() ? op->GetNumberOfBins() : op->vtkPairwiseExtractHistogram2D::GetNumberOfBins()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetCustomColumnRangeIndex(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCustomColumnRangeIndex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetCustomColumnRangeIndex(temp0); } else { op->vtkPairwiseExtractHistogram2D::SetCustomColumnRangeIndex(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetCustomColumnRangeByIndex(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCustomColumnRangeByIndex"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); double temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetCustomColumnRangeByIndex(temp0, temp1); } else { op->vtkPairwiseExtractHistogram2D::SetCustomColumnRangeByIndex(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetCustomColumnRange_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCustomColumnRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; const int size1 = 2; double temp1[2]; double save1[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->SetCustomColumnRange(temp0, temp1); } else { op->vtkPairwiseExtractHistogram2D::SetCustomColumnRange(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 * PyvtkPairwiseExtractHistogram2D_SetCustomColumnRange_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCustomColumnRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int 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->SetCustomColumnRange(temp0, temp1, temp2); } else { op->vtkPairwiseExtractHistogram2D::SetCustomColumnRange(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetCustomColumnRange(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkPairwiseExtractHistogram2D_SetCustomColumnRange_s1(self, args); case 3: return PyvtkPairwiseExtractHistogram2D_SetCustomColumnRange_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetCustomColumnRange"); return nullptr; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *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->vtkPairwiseExtractHistogram2D::SetScalarType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedInt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedInt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedInt(); } else { op->vtkPairwiseExtractHistogram2D::SetScalarTypeToUnsignedInt(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedLong(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedLong"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedLong(); } else { op->vtkPairwiseExtractHistogram2D::SetScalarTypeToUnsignedLong(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedShort(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedShort"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedShort(); } else { op->vtkPairwiseExtractHistogram2D::SetScalarTypeToUnsignedShort(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedChar(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarTypeToUnsignedChar"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetScalarTypeToUnsignedChar(); } else { op->vtkPairwiseExtractHistogram2D::SetScalarTypeToUnsignedChar(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetScalarType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetScalarType() : op->vtkPairwiseExtractHistogram2D::GetScalarType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetMaximumBinCount_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaximumBinCount"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetMaximumBinCount(temp0) : op->vtkPairwiseExtractHistogram2D::GetMaximumBinCount(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetMaximumBinCount_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaximumBinCount"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetMaximumBinCount() : op->vtkPairwiseExtractHistogram2D::GetMaximumBinCount()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetMaximumBinCount(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkPairwiseExtractHistogram2D_GetMaximumBinCount_s1(self, args); case 0: return PyvtkPairwiseExtractHistogram2D_GetMaximumBinCount_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetMaximumBinCount"); return nullptr; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetBinRange_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBinRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; vtkIdType temp1; vtkIdType temp2; const int size3 = 4; double temp3[4]; double save3[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetArray(temp3, size3)) { ap.SaveArray(temp3, save3, size3); int tempr = (ap.IsBound() ? op->GetBinRange(temp0, temp1, temp2, temp3) : op->vtkPairwiseExtractHistogram2D::GetBinRange(temp0, temp1, temp2, temp3)); if (ap.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetBinRange_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBinRange"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int 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->vtkPairwiseExtractHistogram2D::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 * PyvtkPairwiseExtractHistogram2D_GetBinRange(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 4: return PyvtkPairwiseExtractHistogram2D_GetBinRange_s1(self, args); case 3: return PyvtkPairwiseExtractHistogram2D_GetBinRange_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetBinRange"); return nullptr; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetBinWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBinWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; const int size1 = 2; double temp1[2]; double save1[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); if (ap.IsBound()) { op->GetBinWidth(temp0, temp1); } else { op->vtkPairwiseExtractHistogram2D::GetBinWidth(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 * PyvtkPairwiseExtractHistogram2D_GetHistogramExtents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHistogramExtents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double *tempr = (ap.IsBound() ? op->GetHistogramExtents(temp0) : op->vtkPairwiseExtractHistogram2D::GetHistogramExtents(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetOutputHistogramImage(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputHistogramImage"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkImageData *tempr = (ap.IsBound() ? op->GetOutputHistogramImage(temp0) : op->vtkPairwiseExtractHistogram2D::GetOutputHistogramImage(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_GetHistogramFilter(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHistogramFilter"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkExtractHistogram2D *tempr = (ap.IsBound() ? op->GetHistogramFilter(temp0) : op->vtkPairwiseExtractHistogram2D::GetHistogramFilter(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPairwiseExtractHistogram2D_Aggregate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Aggregate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPairwiseExtractHistogram2D *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->vtkPairwiseExtractHistogram2D::Aggregate(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPairwiseExtractHistogram2D_Methods[] = { {"IsTypeOf", PyvtkPairwiseExtractHistogram2D_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", PyvtkPairwiseExtractHistogram2D_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", PyvtkPairwiseExtractHistogram2D_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkPairwiseExtractHistogram2D\nC++: static vtkPairwiseExtractHistogram2D *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkPairwiseExtractHistogram2D_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkPairwiseExtractHistogram2D\nC++: vtkPairwiseExtractHistogram2D *NewInstance()\n\n"}, {"SetNumberOfBins", PyvtkPairwiseExtractHistogram2D_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", PyvtkPairwiseExtractHistogram2D_GetNumberOfBins, METH_VARARGS, "V.GetNumberOfBins() -> (int, int)\nC++: int *GetNumberOfBins()\n\n"}, {"SetCustomColumnRangeIndex", PyvtkPairwiseExtractHistogram2D_SetCustomColumnRangeIndex, METH_VARARGS, "V.SetCustomColumnRangeIndex(int)\nC++: virtual void SetCustomColumnRangeIndex(int _arg)\n\nStrange method for setting an index to be used for setting custom\ncolumn range. This was (probably) necessary to get this class to\ninteract with the ParaView client/server message passing\ninterface.\n"}, {"SetCustomColumnRangeByIndex", PyvtkPairwiseExtractHistogram2D_SetCustomColumnRangeByIndex, METH_VARARGS, "V.SetCustomColumnRangeByIndex(float, float)\nC++: void SetCustomColumnRangeByIndex(double, double)\n\nStrange method for setting an index to be used for setting custom\ncolumn range. This was (probably) necessary to get this class to\ninteract with the ParaView client/server message passing\ninterface.\n"}, {"SetCustomColumnRange", PyvtkPairwiseExtractHistogram2D_SetCustomColumnRange, METH_VARARGS, "V.SetCustomColumnRange(int, [float, float])\nC++: void SetCustomColumnRange(int col, double range[2])\nV.SetCustomColumnRange(int, float, float)\nC++: void SetCustomColumnRange(int col, double rmin, double rmax)\n\nMore standard way to set the custom range for a particular\ncolumn. This makes sure that only the affected histograms know\nthat they need to be updated.\n"}, {"SetScalarType", PyvtkPairwiseExtractHistogram2D_SetScalarType, METH_VARARGS, "V.SetScalarType(int)\nC++: virtual void SetScalarType(int _arg)\n\nSet the scalar type for each of the computed histograms.\n"}, {"SetScalarTypeToUnsignedInt", PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedInt, METH_VARARGS, "V.SetScalarTypeToUnsignedInt()\nC++: void SetScalarTypeToUnsignedInt()\n\nSet the scalar type for each of the computed histograms.\n"}, {"SetScalarTypeToUnsignedLong", PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedLong, METH_VARARGS, "V.SetScalarTypeToUnsignedLong()\nC++: void SetScalarTypeToUnsignedLong()\n\nSet the scalar type for each of the computed histograms.\n"}, {"SetScalarTypeToUnsignedShort", PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedShort, METH_VARARGS, "V.SetScalarTypeToUnsignedShort()\nC++: void SetScalarTypeToUnsignedShort()\n\nSet the scalar type for each of the computed histograms.\n"}, {"SetScalarTypeToUnsignedChar", PyvtkPairwiseExtractHistogram2D_SetScalarTypeToUnsignedChar, METH_VARARGS, "V.SetScalarTypeToUnsignedChar()\nC++: void SetScalarTypeToUnsignedChar()\n\nSet the scalar type for each of the computed histograms.\n"}, {"GetScalarType", PyvtkPairwiseExtractHistogram2D_GetScalarType, METH_VARARGS, "V.GetScalarType() -> int\nC++: virtual int GetScalarType()\n\nSet the scalar type for each of the computed histograms.\n"}, {"GetMaximumBinCount", PyvtkPairwiseExtractHistogram2D_GetMaximumBinCount, METH_VARARGS, "V.GetMaximumBinCount(int) -> float\nC++: double GetMaximumBinCount(int idx)\nV.GetMaximumBinCount() -> float\nC++: double GetMaximumBinCount()\n\nGet the maximum bin count for a single histogram\n"}, {"GetBinRange", PyvtkPairwiseExtractHistogram2D_GetBinRange, METH_VARARGS, "V.GetBinRange(int, int, int, [float, float, float, float]) -> int\nC++: int GetBinRange(int idx, vtkIdType binX, vtkIdType binY,\n double range[4])\nV.GetBinRange(int, int, [float, float, float, float]) -> int\nC++: int GetBinRange(int idx, vtkIdType bin, double range[4])\n\nCompute the range of the bin located at position (binX,binY) in\nthe 2D histogram at idx.\n"}, {"GetBinWidth", PyvtkPairwiseExtractHistogram2D_GetBinWidth, METH_VARARGS, "V.GetBinWidth(int, [float, float])\nC++: void GetBinWidth(int idx, double bw[2])\n\nGet the width of all of the bins. Also stored in the spacing ivar\nof the histogram image output at idx.\n"}, {"GetHistogramExtents", PyvtkPairwiseExtractHistogram2D_GetHistogramExtents, METH_VARARGS, "V.GetHistogramExtents(int) -> (float, ...)\nC++: double *GetHistogramExtents(int idx)\n\nGet the histogram extents currently in use, either computed or\nset by the user for the idx'th histogram.\n"}, {"GetOutputHistogramImage", PyvtkPairwiseExtractHistogram2D_GetOutputHistogramImage, METH_VARARGS, "V.GetOutputHistogramImage(int) -> vtkImageData\nC++: vtkImageData *GetOutputHistogramImage(int idx)\n\nGet the vtkImageData output of the idx'th histogram filter\n"}, {"GetHistogramFilter", PyvtkPairwiseExtractHistogram2D_GetHistogramFilter, METH_VARARGS, "V.GetHistogramFilter(int) -> vtkExtractHistogram2D\nC++: vtkExtractHistogram2D *GetHistogramFilter(int idx)\n\nGet a pointer to the idx'th histogram filter.\n"}, {"Aggregate", PyvtkPairwiseExtractHistogram2D_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 PyvtkPairwiseExtractHistogram2D_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersImagingPython.vtkPairwiseExtractHistogram2D", // 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 PyvtkPairwiseExtractHistogram2D_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 *PyvtkPairwiseExtractHistogram2D_StaticNew() { return vtkPairwiseExtractHistogram2D::New(); } PyObject *PyvtkPairwiseExtractHistogram2D_ClassNew() { PyVTKClass_Add( &PyvtkPairwiseExtractHistogram2D_Type, PyvtkPairwiseExtractHistogram2D_Methods, "vtkPairwiseExtractHistogram2D", &PyvtkPairwiseExtractHistogram2D_StaticNew); PyTypeObject *pytype = &PyvtkPairwiseExtractHistogram2D_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(&PyvtkPairwiseExtractHistogram2D_OutputIndices_Type); PyvtkPairwiseExtractHistogram2D_OutputIndices_Type.tp_new = nullptr; vtkPythonUtil::AddEnumToMap(&PyvtkPairwiseExtractHistogram2D_OutputIndices_Type); o = (PyObject *)&PyvtkPairwiseExtractHistogram2D_OutputIndices_Type; if (PyDict_SetItemString(d, "OutputIndices", o) != 0) { Py_DECREF(o); } o = PyvtkPairwiseExtractHistogram2D_OutputIndices_FromEnum(vtkPairwiseExtractHistogram2D::HISTOGRAM_IMAGE); if (o) { PyDict_SetItemString(d, "HISTOGRAM_IMAGE", o); Py_DECREF(o); } PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkPairwiseExtractHistogram2D( PyObject *dict) { PyObject *o; o = PyvtkPairwiseExtractHistogram2D_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkPairwiseExtractHistogram2D", o) != 0) { Py_DECREF(o); } }