// python wrapper for vtkPlot // #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 "vtkRect.h" #include "vtkStdString.h" #include "vtkVector.h" #include "vtkVector.h" #include "vtkContextPolygon.h" #include "vtkRect.h" #include "vtkPlot.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkPlot(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkPlot_ClassNew(); } #ifndef DECLARED_PyvtkContextItem_ClassNew extern "C" { PyObject *PyvtkContextItem_ClassNew(); } #define DECLARED_PyvtkContextItem_ClassNew #endif static const char *PyvtkPlot_Doc = "vtkPlot - Abstract class for 2D plots.\n\n" "Superclass: vtkContextItem\n\n" "The base class for all plot types used in vtkChart derived charts.\n\n" "@sa\n" "vtkPlotPoints vtkPlotLine vtkPlotBar vtkChart vtkChartXY\n\n"; static PyObject * PyvtkPlot_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkPlot::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *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->vtkPlot::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkPlot *tempr = vtkPlot::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPlot *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkPlot::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 * PyvtkPlot_SetLegendVisibility(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLegendVisibility"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetLegendVisibility(temp0); } else { op->vtkPlot::SetLegendVisibility(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetLegendVisibility(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLegendVisibility"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { bool tempr = (ap.IsBound() ? op->GetLegendVisibility() : op->vtkPlot::GetLegendVisibility()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_LegendVisibilityOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LegendVisibilityOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->LegendVisibilityOn(); } else { op->vtkPlot::LegendVisibilityOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_LegendVisibilityOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "LegendVisibilityOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->LegendVisibilityOff(); } else { op->vtkPlot::LegendVisibilityOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_PaintLegend(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PaintLegend"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkContext2D *temp0 = nullptr; vtkRectf *temp1 = nullptr; PyObject *pobj1 = nullptr; int temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetVTKObject(temp0, "vtkContext2D") && ap.GetSpecialObject(temp1, pobj1, "vtkRectf") && ap.GetValue(temp2)) { bool tempr = (ap.IsBound() ? op->PaintLegend(temp0, *temp1, temp2) : op->vtkPlot::PaintLegend(temp0, *temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj1); return result; } static PyObject * PyvtkPlot_SetTooltipLabelFormat(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTooltipLabelFormat"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkStdString temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTooltipLabelFormat(temp0); } else { op->vtkPlot::SetTooltipLabelFormat(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetTooltipLabelFormat(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTooltipLabelFormat"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkStdString tempr = (ap.IsBound() ? op->GetTooltipLabelFormat() : op->vtkPlot::GetTooltipLabelFormat()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SetTooltipNotation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTooltipNotation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTooltipNotation(temp0); } else { op->vtkPlot::SetTooltipNotation(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetTooltipNotation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTooltipNotation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetTooltipNotation() : op->vtkPlot::GetTooltipNotation()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SetTooltipPrecision(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTooltipPrecision"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTooltipPrecision(temp0); } else { op->vtkPlot::SetTooltipPrecision(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetTooltipPrecision(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTooltipPrecision"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetTooltipPrecision() : op->vtkPlot::GetTooltipPrecision()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_GetTooltipLabel(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTooltipLabel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkVector2d *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkIdType temp1; vtkIdType temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2d") && ap.GetValue(temp1) && ap.GetValue(temp2)) { vtkStdString tempr = (ap.IsBound() ? op->GetTooltipLabel(*temp0, temp1, temp2) : op->vtkPlot::GetTooltipLabel(*temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkPlot_SelectPoints(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SelectPoints"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkVector2f *temp0 = nullptr; PyObject *pobj0 = nullptr; vtkVector2f *temp1 = nullptr; PyObject *pobj1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetSpecialObject(temp0, pobj0, "vtkVector2f") && ap.GetSpecialObject(temp1, pobj1, "vtkVector2f")) { bool tempr = (ap.IsBound() ? op->SelectPoints(*temp0, *temp1) : op->vtkPlot::SelectPoints(*temp0, *temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); Py_XDECREF(pobj1); return result; } static PyObject * PyvtkPlot_SelectPointsInPolygon(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SelectPointsInPolygon"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkContextPolygon *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkContextPolygon")) { bool tempr = (ap.IsBound() ? op->SelectPointsInPolygon(*temp0) : op->vtkPlot::SelectPointsInPolygon(*temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkPlot_SetColor_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); unsigned char temp0; unsigned char temp1; unsigned char temp2; unsigned char 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->SetColor(temp0, temp1, temp2, temp3); } else { op->vtkPlot::SetColor(temp0, temp1, temp2, temp3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetColor_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *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->SetColor(temp0, temp1, temp2); } else { op->vtkPlot::SetColor(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetColor(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 4: return PyvtkPlot_SetColor_s1(self, args); case 3: return PyvtkPlot_SetColor_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetColor"); return nullptr; } static PyObject * PyvtkPlot_GetColor_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->GetColor(temp0); } else { op->vtkPlot::GetColor(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetColor_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); const int size0 = 3; unsigned char temp0[3]; unsigned char save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->GetColor(temp0); } else { op->vtkPlot::GetColor(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPlot_GetColor_Methods[] = { {nullptr, PyvtkPlot_GetColor_s1, METH_VARARGS, "@P *d"}, {nullptr, PyvtkPlot_GetColor_s2, METH_VARARGS, "@P *B"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPlot_GetColor(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkPlot_GetColor_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "GetColor"); return nullptr; } static PyObject * PyvtkPlot_SetWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetWidth(temp0); } else { op->vtkPlot::SetWidth(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetWidth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetWidth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetWidth() : op->vtkPlot::GetWidth()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SetPen(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetPen"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkPen *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPen")) { if (ap.IsBound()) { op->SetPen(temp0); } else { op->vtkPlot::SetPen(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetPen(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPen"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPen *tempr = (ap.IsBound() ? op->GetPen() : op->vtkPlot::GetPen()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetBrush(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetBrush"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkBrush *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkBrush")) { if (ap.IsBound()) { op->SetBrush(temp0); } else { op->vtkPlot::SetBrush(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetBrush(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBrush"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkBrush *tempr = (ap.IsBound() ? op->GetBrush() : op->vtkPlot::GetBrush()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetSelectionPen(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSelectionPen"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkPen *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPen")) { if (ap.IsBound()) { op->SetSelectionPen(temp0); } else { op->vtkPlot::SetSelectionPen(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetSelectionPen(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSelectionPen"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPen *tempr = (ap.IsBound() ? op->GetSelectionPen() : op->vtkPlot::GetSelectionPen()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetSelectionBrush(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSelectionBrush"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkBrush *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkBrush")) { if (ap.IsBound()) { op->SetSelectionBrush(temp0); } else { op->vtkPlot::SetSelectionBrush(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetSelectionBrush(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSelectionBrush"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkBrush *tempr = (ap.IsBound() ? op->GetSelectionBrush() : op->vtkPlot::GetSelectionBrush()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetLabel(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLabel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkStdString temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetLabel(temp0); } else { op->vtkPlot::SetLabel(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetLabel_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLabel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkStdString tempr = (ap.IsBound() ? op->GetLabel() : op->vtkPlot::GetLabel()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_GetLabel_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLabel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkIdType temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkStdString tempr = (ap.IsBound() ? op->GetLabel(temp0) : op->vtkPlot::GetLabel(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_GetLabel(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkPlot_GetLabel_s1(self, args); case 1: return PyvtkPlot_GetLabel_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetLabel"); return nullptr; } static PyObject * PyvtkPlot_SetLabels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLabels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkStringArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkStringArray")) { if (ap.IsBound()) { op->SetLabels(temp0); } else { op->vtkPlot::SetLabels(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetLabels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLabels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkStringArray *tempr = (ap.IsBound() ? op->GetLabels() : op->vtkPlot::GetLabels()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_GetNumberOfLabels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfLabels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetNumberOfLabels() : op->vtkPlot::GetNumberOfLabels()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SetIndexedLabels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetIndexedLabels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkStringArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkStringArray")) { if (ap.IsBound()) { op->SetIndexedLabels(temp0); } else { op->vtkPlot::SetIndexedLabels(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetIndexedLabels(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIndexedLabels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkStringArray *tempr = (ap.IsBound() ? op->GetIndexedLabels() : op->vtkPlot::GetIndexedLabels()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_GetData(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetData"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkContextMapper2D *tempr = (ap.IsBound() ? op->GetData() : op->vtkPlot::GetData()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_GetUseIndexForXSeries(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetUseIndexForXSeries"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { bool tempr = (ap.IsBound() ? op->GetUseIndexForXSeries() : op->vtkPlot::GetUseIndexForXSeries()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SetUseIndexForXSeries(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetUseIndexForXSeries"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetUseIndexForXSeries(temp0); } else { op->vtkPlot::SetUseIndexForXSeries(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetInputData_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInputData"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkTable *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkTable")) { if (ap.IsBound()) { op->SetInputData(temp0); } else { op->vtkPlot::SetInputData(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetInputData_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInputData"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkTable *temp0 = nullptr; vtkStdString temp1; vtkStdString temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetVTKObject(temp0, "vtkTable") && ap.GetValue(temp1) && ap.GetValue(temp2)) { if (ap.IsBound()) { op->SetInputData(temp0, temp1, temp2); } else { op->vtkPlot::SetInputData(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetInputData_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInputData"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkTable *temp0 = nullptr; vtkIdType temp1; vtkIdType temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetVTKObject(temp0, "vtkTable") && ap.GetValue(temp1) && ap.GetValue(temp2)) { if (ap.IsBound()) { op->SetInputData(temp0, temp1, temp2); } else { op->vtkPlot::SetInputData(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPlot_SetInputData_Methods[] = { {nullptr, PyvtkPlot_SetInputData_s2, METH_VARARGS, "@Vss *vtkTable"}, {nullptr, PyvtkPlot_SetInputData_s3, METH_VARARGS, "@Vkk *vtkTable"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPlot_SetInputData(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkPlot_SetInputData_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkPlot_SetInputData_s1(self, args); case 3: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "SetInputData"); return nullptr; } static PyObject * PyvtkPlot_GetInput(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInput"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTable *tempr = (ap.IsBound() ? op->GetInput() : op->vtkPlot::GetInput()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetInputArray(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInputArray"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); int temp0; vtkStdString temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetInputArray(temp0, temp1); } else { op->vtkPlot::SetInputArray(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetSelectable(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSelectable"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); bool temp0 = false; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSelectable(temp0); } else { op->vtkPlot::SetSelectable(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetSelectable(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSelectable"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { bool tempr = (ap.IsBound() ? op->GetSelectable() : op->vtkPlot::GetSelectable()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPlot_SelectableOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SelectableOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SelectableOn(); } else { op->vtkPlot::SelectableOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SelectableOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SelectableOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SelectableOff(); } else { op->vtkPlot::SelectableOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetSelection(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSelection"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkIdTypeArray *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkIdTypeArray")) { if (ap.IsBound()) { op->SetSelection(temp0); } else { op->vtkPlot::SetSelection(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetSelection(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSelection"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkIdTypeArray *tempr = (ap.IsBound() ? op->GetSelection() : op->vtkPlot::GetSelection()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_GetXAxis(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetXAxis"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAxis *tempr = (ap.IsBound() ? op->GetXAxis() : op->vtkPlot::GetXAxis()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetXAxis(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetXAxis"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkAxis *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAxis")) { if (ap.IsBound()) { op->SetXAxis(temp0); } else { op->vtkPlot::SetXAxis(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetYAxis(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetYAxis"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkAxis *tempr = (ap.IsBound() ? op->GetYAxis() : op->vtkPlot::GetYAxis()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPlot_SetYAxis(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetYAxis"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkAxis *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAxis")) { if (ap.IsBound()) { op->SetYAxis(temp0); } else { op->vtkPlot::SetYAxis(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetShiftScale(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetShiftScale"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkRectd *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkRectd")) { if (ap.IsBound()) { op->SetShiftScale(*temp0); } else { op->vtkPlot::SetShiftScale(*temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj0); return result; } static PyObject * PyvtkPlot_GetShiftScale(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetShiftScale"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkRectd tempr = (ap.IsBound() ? op->GetShiftScale() : op->vtkPlot::GetShiftScale()); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkRectd"); } } return result; } static PyObject * PyvtkPlot_GetBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); const int size0 = 4; double temp0[4]; double save0[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->GetBounds(temp0); } else { op->vtkPlot::GetBounds(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_GetUnscaledInputBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetUnscaledInputBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); const int size0 = 4; double temp0[4]; double save0[4]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->GetUnscaledInputBounds(temp0); } else { op->vtkPlot::GetUnscaledInputBounds(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_UpdateCache(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UpdateCache"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UpdateCache(); } else { op->vtkPlot::UpdateCache(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPlot_SetProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkStdString temp0; vtkVariant *temp1 = nullptr; PyObject *pobj1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetSpecialObject(temp1, pobj1, "vtkVariant")) { if (ap.IsBound()) { op->SetProperty(temp0, *temp1); } else { op->vtkPlot::SetProperty(temp0, *temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } Py_XDECREF(pobj1); return result; } static PyObject * PyvtkPlot_GetProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPlot *op = static_cast(vp); vtkStdString temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkVariant tempr = (ap.IsBound() ? op->GetProperty(temp0) : op->vtkPlot::GetProperty(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkVariant"); } } return result; } static PyMethodDef PyvtkPlot_Methods[] = { {"IsTypeOf", PyvtkPlot_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", PyvtkPlot_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", PyvtkPlot_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkPlot\nC++: static vtkPlot *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkPlot_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkPlot\nC++: vtkPlot *NewInstance()\n\n"}, {"SetLegendVisibility", PyvtkPlot_SetLegendVisibility, METH_VARARGS, "V.SetLegendVisibility(bool)\nC++: virtual void SetLegendVisibility(bool _arg)\n\nSet whether the plot renders an entry in the legend. Default is\ntrue. vtkPlot::PaintLegend will get called to render the legend\nmarker on when this is true.\n"}, {"GetLegendVisibility", PyvtkPlot_GetLegendVisibility, METH_VARARGS, "V.GetLegendVisibility() -> bool\nC++: virtual bool GetLegendVisibility()\n\nSet whether the plot renders an entry in the legend. Default is\ntrue. vtkPlot::PaintLegend will get called to render the legend\nmarker on when this is true.\n"}, {"LegendVisibilityOn", PyvtkPlot_LegendVisibilityOn, METH_VARARGS, "V.LegendVisibilityOn()\nC++: virtual void LegendVisibilityOn()\n\nSet whether the plot renders an entry in the legend. Default is\ntrue. vtkPlot::PaintLegend will get called to render the legend\nmarker on when this is true.\n"}, {"LegendVisibilityOff", PyvtkPlot_LegendVisibilityOff, METH_VARARGS, "V.LegendVisibilityOff()\nC++: virtual void LegendVisibilityOff()\n\nSet whether the plot renders an entry in the legend. Default is\ntrue. vtkPlot::PaintLegend will get called to render the legend\nmarker on when this is true.\n"}, {"PaintLegend", PyvtkPlot_PaintLegend, METH_VARARGS, "V.PaintLegend(vtkContext2D, vtkRectf, int) -> bool\nC++: virtual bool PaintLegend(vtkContext2D *painter,\n const vtkRectf &rect, int legendIndex)\n\nPaint legend event for the plot, called whenever the legend needs\nthe plot items symbol/mark/line drawn. A rect is supplied with\nthe lower left corner of the rect (elements 0 and 1) and with\nwidth x height (elements 2 and 3). The plot can choose how to\nfill the space supplied. The index is used by Plots that return\nmore than one label.\n"}, {"SetTooltipLabelFormat", PyvtkPlot_SetTooltipLabelFormat, METH_VARARGS, "V.SetTooltipLabelFormat(string)\nC++: virtual void SetTooltipLabelFormat(const vtkStdString &label)\n\nSets/gets a printf-style string to build custom tooltip labels\nfrom. An empty string generates the default tooltip labels. The\nfollowing case-sensitive format tags (without quotes) are\nrecognized: '%x' The X value of the plot element '%y' The Y value\nof the plot element '%i' The IndexedLabels entry for the plot\nelement '%l' The value of the plot's GetLabel() function '%s'\n(vtkPlotBar only) The Labels entry for the bar segment Any other\ncharacters or unrecognized format tags are printed in the tooltip\nlabel verbatim.\n"}, {"GetTooltipLabelFormat", PyvtkPlot_GetTooltipLabelFormat, METH_VARARGS, "V.GetTooltipLabelFormat() -> string\nC++: virtual vtkStdString GetTooltipLabelFormat()\n\nSets/gets a printf-style string to build custom tooltip labels\nfrom. An empty string generates the default tooltip labels. The\nfollowing case-sensitive format tags (without quotes) are\nrecognized: '%x' The X value of the plot element '%y' The Y value\nof the plot element '%i' The IndexedLabels entry for the plot\nelement '%l' The value of the plot's GetLabel() function '%s'\n(vtkPlotBar only) The Labels entry for the bar segment Any other\ncharacters or unrecognized format tags are printed in the tooltip\nlabel verbatim.\n"}, {"SetTooltipNotation", PyvtkPlot_SetTooltipNotation, METH_VARARGS, "V.SetTooltipNotation(int)\nC++: virtual void SetTooltipNotation(int notation)\n\nSets/gets the tooltip notation style.\n"}, {"GetTooltipNotation", PyvtkPlot_GetTooltipNotation, METH_VARARGS, "V.GetTooltipNotation() -> int\nC++: virtual int GetTooltipNotation()\n\nSets/gets the tooltip notation style.\n"}, {"SetTooltipPrecision", PyvtkPlot_SetTooltipPrecision, METH_VARARGS, "V.SetTooltipPrecision(int)\nC++: virtual void SetTooltipPrecision(int precision)\n\nSets/gets the tooltip precision.\n"}, {"GetTooltipPrecision", PyvtkPlot_GetTooltipPrecision, METH_VARARGS, "V.GetTooltipPrecision() -> int\nC++: virtual int GetTooltipPrecision()\n\nSets/gets the tooltip precision.\n"}, {"GetTooltipLabel", PyvtkPlot_GetTooltipLabel, METH_VARARGS, "V.GetTooltipLabel(vtkVector2d, int, int) -> string\nC++: virtual vtkStdString GetTooltipLabel(\n const vtkVector2d &plotPos, vtkIdType seriesIndex,\n vtkIdType segmentIndex)\n\nGenerate and return the tooltip label string for this plot The\nsegmentIndex parameter is ignored, except for vtkPlotBar\n"}, {"SelectPoints", PyvtkPlot_SelectPoints, METH_VARARGS, "V.SelectPoints(vtkVector2f, vtkVector2f) -> bool\nC++: virtual bool SelectPoints(const vtkVector2f &min,\n const vtkVector2f &max)\n\nSelect all points in the specified rectangle.\n"}, {"SelectPointsInPolygon", PyvtkPlot_SelectPointsInPolygon, METH_VARARGS, "V.SelectPointsInPolygon(vtkContextPolygon) -> bool\nC++: virtual bool SelectPointsInPolygon(\n const vtkContextPolygon &polygon)\n\nSelect all points in the specified polygon.\n"}, {"SetColor", PyvtkPlot_SetColor, METH_VARARGS, "V.SetColor(int, int, int, int)\nC++: virtual void SetColor(unsigned char r, unsigned char g,\n unsigned char b, unsigned char a)\nV.SetColor(float, float, float)\nC++: virtual void SetColor(double r, double g, double b)\n\nSet the plot color\n"}, {"GetColor", PyvtkPlot_GetColor, METH_VARARGS, "V.GetColor([float, float, float])\nC++: virtual void GetColor(double rgb[3])\nV.GetColor([int, int, int])\nC++: void GetColor(unsigned char rgb[3])\n\nSet the plot color\n"}, {"SetWidth", PyvtkPlot_SetWidth, METH_VARARGS, "V.SetWidth(float)\nC++: virtual void SetWidth(float width)\n\nSet the width of the line.\n"}, {"GetWidth", PyvtkPlot_GetWidth, METH_VARARGS, "V.GetWidth() -> float\nC++: virtual float GetWidth()\n\nGet the width of the line.\n"}, {"SetPen", PyvtkPlot_SetPen, METH_VARARGS, "V.SetPen(vtkPen)\nC++: void SetPen(vtkPen *pen)\n\nSet/get the vtkPen object that controls how this plot draws\n(out)lines.\n"}, {"GetPen", PyvtkPlot_GetPen, METH_VARARGS, "V.GetPen() -> vtkPen\nC++: vtkPen *GetPen()\n\nSet/get the vtkPen object that controls how this plot draws\n(out)lines.\n"}, {"SetBrush", PyvtkPlot_SetBrush, METH_VARARGS, "V.SetBrush(vtkBrush)\nC++: void SetBrush(vtkBrush *brush)\n\nSet/get the vtkBrush object that controls how this plot fills\nshapes.\n"}, {"GetBrush", PyvtkPlot_GetBrush, METH_VARARGS, "V.GetBrush() -> vtkBrush\nC++: vtkBrush *GetBrush()\n\nSet/get the vtkBrush object that controls how this plot fills\nshapes.\n"}, {"SetSelectionPen", PyvtkPlot_SetSelectionPen, METH_VARARGS, "V.SetSelectionPen(vtkPen)\nC++: void SetSelectionPen(vtkPen *pen)\n\nSet/get the vtkBrush object that controls how this plot fills\nselected shapes.\n"}, {"GetSelectionPen", PyvtkPlot_GetSelectionPen, METH_VARARGS, "V.GetSelectionPen() -> vtkPen\nC++: vtkPen *GetSelectionPen()\n\nSet/get the vtkBrush object that controls how this plot fills\nselected shapes.\n"}, {"SetSelectionBrush", PyvtkPlot_SetSelectionBrush, METH_VARARGS, "V.SetSelectionBrush(vtkBrush)\nC++: void SetSelectionBrush(vtkBrush *brush)\n\nSet/get the vtkBrush object that controls how this plot fills\nselected shapes.\n"}, {"GetSelectionBrush", PyvtkPlot_GetSelectionBrush, METH_VARARGS, "V.GetSelectionBrush() -> vtkBrush\nC++: vtkBrush *GetSelectionBrush()\n\nSet/get the vtkBrush object that controls how this plot fills\nselected shapes.\n"}, {"SetLabel", PyvtkPlot_SetLabel, METH_VARARGS, "V.SetLabel(string)\nC++: virtual void SetLabel(const vtkStdString &label)\n\nSet the label of this plot.\n"}, {"GetLabel", PyvtkPlot_GetLabel, METH_VARARGS, "V.GetLabel() -> string\nC++: virtual vtkStdString GetLabel()\nV.GetLabel(int) -> string\nC++: vtkStdString GetLabel(vtkIdType index)\n\nGet the label of this plot.\n"}, {"SetLabels", PyvtkPlot_SetLabels, METH_VARARGS, "V.SetLabels(vtkStringArray)\nC++: virtual void SetLabels(vtkStringArray *labels)\n\nSet the plot labels, these are used for stacked chart variants,\nwith the index referring to the stacking index.\n"}, {"GetLabels", PyvtkPlot_GetLabels, METH_VARARGS, "V.GetLabels() -> vtkStringArray\nC++: virtual vtkStringArray *GetLabels()\n\nGet the plot labels. If this array has a length greater than 1\nthe index refers to the stacked objects in the plot. See\nvtkPlotBar for example.\n"}, {"GetNumberOfLabels", PyvtkPlot_GetNumberOfLabels, METH_VARARGS, "V.GetNumberOfLabels() -> int\nC++: virtual int GetNumberOfLabels()\n\nGet the number of labels associated with this plot.\n"}, {"SetIndexedLabels", PyvtkPlot_SetIndexedLabels, METH_VARARGS, "V.SetIndexedLabels(vtkStringArray)\nC++: void SetIndexedLabels(vtkStringArray *labels)\n\nSet indexed labels for the plot. If set, this array can be used\nto provide custom labels for each point in a plot. This array\nshould be the same length as the points array. Default is null\n(no indexed labels).\n"}, {"GetIndexedLabels", PyvtkPlot_GetIndexedLabels, METH_VARARGS, "V.GetIndexedLabels() -> vtkStringArray\nC++: virtual vtkStringArray *GetIndexedLabels()\n\nGet the indexed labels array.\n"}, {"GetData", PyvtkPlot_GetData, METH_VARARGS, "V.GetData() -> vtkContextMapper2D\nC++: vtkContextMapper2D *GetData()\n\nGet the data object that the plot will draw.\n"}, {"GetUseIndexForXSeries", PyvtkPlot_GetUseIndexForXSeries, METH_VARARGS, "V.GetUseIndexForXSeries() -> bool\nC++: virtual bool GetUseIndexForXSeries()\n\nUse the Y array index for the X value. If true any X column\nsetting will be ignored, and the X values will simply be the\nindex of the Y column.\n"}, {"SetUseIndexForXSeries", PyvtkPlot_SetUseIndexForXSeries, METH_VARARGS, "V.SetUseIndexForXSeries(bool)\nC++: virtual void SetUseIndexForXSeries(bool _arg)\n\nUse the Y array index for the X value. If true any X column\nsetting will be ignored, and the X values will simply be the\nindex of the Y column.\n"}, {"SetInputData", PyvtkPlot_SetInputData, METH_VARARGS, "V.SetInputData(vtkTable)\nC++: virtual void SetInputData(vtkTable *table)\nV.SetInputData(vtkTable, string, string)\nC++: virtual void SetInputData(vtkTable *table,\n const vtkStdString &xColumn, const vtkStdString &yColumn)\nV.SetInputData(vtkTable, int, int)\nC++: void SetInputData(vtkTable *table, vtkIdType xColumn,\n vtkIdType yColumn)\n\nThis is a convenience function to set the input table and the x,\ny column for the plot.\n"}, {"GetInput", PyvtkPlot_GetInput, METH_VARARGS, "V.GetInput() -> vtkTable\nC++: virtual vtkTable *GetInput()\n\nGet the input table used by the plot.\n"}, {"SetInputArray", PyvtkPlot_SetInputArray, METH_VARARGS, "V.SetInputArray(int, string)\nC++: virtual void SetInputArray(int index,\n const vtkStdString &name)\n\nConvenience function to set the input arrays. For most plots\nindex 0 is the x axis, and index 1 is the y axis. The name is the\nname of the column in the vtkTable.\n"}, {"SetSelectable", PyvtkPlot_SetSelectable, METH_VARARGS, "V.SetSelectable(bool)\nC++: virtual void SetSelectable(bool _arg)\n\nSet whether the plot can be selected. True by default. If not,\nthen SetSelection(), SelectPoints() or SelectPointsInPolygon()\nwon't have any effect.\n\\sa SetSelection(), SelectPoints(), SelectPointsInPolygon()\n"}, {"GetSelectable", PyvtkPlot_GetSelectable, METH_VARARGS, "V.GetSelectable() -> bool\nC++: virtual bool GetSelectable()\n\nSet whether the plot can be selected. True by default. If not,\nthen SetSelection(), SelectPoints() or SelectPointsInPolygon()\nwon't have any effect.\n\\sa SetSelection(), SelectPoints(), SelectPointsInPolygon()\n"}, {"SelectableOn", PyvtkPlot_SelectableOn, METH_VARARGS, "V.SelectableOn()\nC++: virtual void SelectableOn()\n\nSet whether the plot can be selected. True by default. If not,\nthen SetSelection(), SelectPoints() or SelectPointsInPolygon()\nwon't have any effect.\n\\sa SetSelection(), SelectPoints(), SelectPointsInPolygon()\n"}, {"SelectableOff", PyvtkPlot_SelectableOff, METH_VARARGS, "V.SelectableOff()\nC++: virtual void SelectableOff()\n\nSet whether the plot can be selected. True by default. If not,\nthen SetSelection(), SelectPoints() or SelectPointsInPolygon()\nwon't have any effect.\n\\sa SetSelection(), SelectPoints(), SelectPointsInPolygon()\n"}, {"SetSelection", PyvtkPlot_SetSelection, METH_VARARGS, "V.SetSelection(vtkIdTypeArray)\nC++: virtual void SetSelection(vtkIdTypeArray *id)\n\nSets the list of points that must be selected. If Selectable is\nfalse, then this method does nothing.\n\\sa SetSelectable()\n"}, {"GetSelection", PyvtkPlot_GetSelection, METH_VARARGS, "V.GetSelection() -> vtkIdTypeArray\nC++: virtual vtkIdTypeArray *GetSelection()\n\nSets the list of points that must be selected. If Selectable is\nfalse, then this method does nothing.\n\\sa SetSelectable()\n"}, {"GetXAxis", PyvtkPlot_GetXAxis, METH_VARARGS, "V.GetXAxis() -> vtkAxis\nC++: virtual vtkAxis *GetXAxis()\n\nGet/set the X axis associated with this plot.\n"}, {"SetXAxis", PyvtkPlot_SetXAxis, METH_VARARGS, "V.SetXAxis(vtkAxis)\nC++: virtual void SetXAxis(vtkAxis *axis)\n\nGet/set the X axis associated with this plot.\n"}, {"GetYAxis", PyvtkPlot_GetYAxis, METH_VARARGS, "V.GetYAxis() -> vtkAxis\nC++: virtual vtkAxis *GetYAxis()\n\nGet/set the Y axis associated with this plot.\n"}, {"SetYAxis", PyvtkPlot_SetYAxis, METH_VARARGS, "V.SetYAxis(vtkAxis)\nC++: virtual void SetYAxis(vtkAxis *axis)\n\nGet/set the Y axis associated with this plot.\n"}, {"SetShiftScale", PyvtkPlot_SetShiftScale, METH_VARARGS, "V.SetShiftScale(vtkRectd)\nC++: void SetShiftScale(const vtkRectd &scaling)\n\nGet/set the origin shift and scaling factor used by the plot,\nthis is normally 0.0 offset and 1.0 scaling, but can be used to\nrender data outside of the single precision range. The chart that\nowns the plot should set this and ensure the appropriate matrix\nis used when rendering the plot.\n"}, {"GetShiftScale", PyvtkPlot_GetShiftScale, METH_VARARGS, "V.GetShiftScale() -> vtkRectd\nC++: vtkRectd GetShiftScale()\n\nGet/set the origin shift and scaling factor used by the plot,\nthis is normally 0.0 offset and 1.0 scaling, but can be used to\nrender data outside of the single precision range. The chart that\nowns the plot should set this and ensure the appropriate matrix\nis used when rendering the plot.\n"}, {"GetBounds", PyvtkPlot_GetBounds, METH_VARARGS, "V.GetBounds([float, float, float, float])\nC++: virtual void GetBounds(double bounds[4])\n\nGet the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).\n\n* See GetUnscaledInputBounds for more information.\n"}, {"GetUnscaledInputBounds", PyvtkPlot_GetUnscaledInputBounds, METH_VARARGS, "V.GetUnscaledInputBounds([float, float, float, float])\nC++: virtual void GetUnscaledInputBounds(double bounds[4])\n\nProvide un-log-scaled bounds for the plot inputs.\n\n* This function is analogous to GetBounds() with 2 exceptions:\n* 1. It will never return log-scaled bounds even when the\n* x- and/or y-axes are log-scaled.\n* 2. It will always return the bounds along the *input* axes\n* rather than the output chart coordinates. Thus GetXAxis()\n* returns the axis associated with the first 2 bounds entries\n* and GetYAxis() returns the axis associated with the next 2\n* bounds entries.\n\n* For example, vtkPlotBar's GetBounds() method\n* will swap axis bounds when its orientation is vertical while\n* its GetUnscaledInputBounds() will not swap axis bounds.\n\n* This method is provided so user interfaces can determine\n* whether or not to allow log-scaling of a particular vtkAxis.\n\n* Subclasses of vtkPlot are responsible for implementing this\n* function to transform input plot data.\n\n* The returned bounds are stored as (Xmin, Xmax, Ymin, Ymax).\n"}, {"UpdateCache", PyvtkPlot_UpdateCache, METH_VARARGS, "V.UpdateCache()\nC++: virtual void UpdateCache()\n\nSubclasses that build data caches to speed up painting should\noverride this method to update such caches. This is called on\neach Paint, hence subclasses must add checks to avoid rebuilding\nof cache, unless necessary. Default implementation is empty.\n"}, {"SetProperty", PyvtkPlot_SetProperty, METH_VARARGS, "V.SetProperty(string, vtkVariant)\nC++: virtual void SetProperty(const vtkStdString &property,\n const vtkVariant &var)\n\nA General setter/getter that should be overridden. It can\nsilently drop options, case is important\n"}, {"GetProperty", PyvtkPlot_GetProperty, METH_VARARGS, "V.GetProperty(string) -> vtkVariant\nC++: virtual vtkVariant GetProperty(const vtkStdString &property)\n\nA General setter/getter that should be overridden. It can\nsilently drop options, case is important\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkPlot_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkChartsCorePython.vtkPlot", // 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 PyvtkPlot_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 }; PyObject *PyvtkPlot_ClassNew() { PyVTKClass_Add( &PyvtkPlot_Type, PyvtkPlot_Methods, "vtkPlot", nullptr); PyTypeObject *pytype = &PyvtkPlot_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 *)PyvtkContextItem_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkPlot( PyObject *dict) { PyObject *o; o = PyvtkPlot_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkPlot", o) != 0) { Py_DECREF(o); } }