// python wrapper for vtkSliderRepresentation2D // #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 "vtkSliderRepresentation2D.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkSliderRepresentation2D(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkSliderRepresentation2D_ClassNew(); } #ifndef DECLARED_PyvtkSliderRepresentation_ClassNew extern "C" { PyObject *PyvtkSliderRepresentation_ClassNew(); } #define DECLARED_PyvtkSliderRepresentation_ClassNew #endif static const char *PyvtkSliderRepresentation2D_Doc = "vtkSliderRepresentation2D - provide the representation for a\nvtkSliderWidget with a 3D skin\n\n" "Superclass: vtkSliderRepresentation\n\n" "This class is used to represent and render a vtkSliderWidget. To use\n" "this class, you must at a minimum specify the end points of the\n" "slider. Optional instance variable can be used to modify the\n" "appearance of the widget.\n\n" "@sa\n" "vtkSliderWidget\n\n"; static PyObject * PyvtkSliderRepresentation2D_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkSliderRepresentation2D::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *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->vtkSliderRepresentation2D::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkSliderRepresentation2D *tempr = vtkSliderRepresentation2D::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkSliderRepresentation2D *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkSliderRepresentation2D::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 * PyvtkSliderRepresentation2D_GetPoint1Coordinate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint1Coordinate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCoordinate *tempr = (ap.IsBound() ? op->GetPoint1Coordinate() : op->vtkSliderRepresentation2D::GetPoint1Coordinate()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetPoint2Coordinate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint2Coordinate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCoordinate *tempr = (ap.IsBound() ? op->GetPoint2Coordinate() : op->vtkSliderRepresentation2D::GetPoint2Coordinate()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_SetTitleText(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTitleText"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTitleText(temp0); } else { op->vtkSliderRepresentation2D::SetTitleText(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetTitleText(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTitleText"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const char *tempr = (ap.IsBound() ? op->GetTitleText() : op->vtkSliderRepresentation2D::GetTitleText()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetSliderProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSliderProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty2D *tempr = (ap.IsBound() ? op->GetSliderProperty() : op->vtkSliderRepresentation2D::GetSliderProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetTubeProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTubeProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty2D *tempr = (ap.IsBound() ? op->GetTubeProperty() : op->vtkSliderRepresentation2D::GetTubeProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetCapProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCapProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty2D *tempr = (ap.IsBound() ? op->GetCapProperty() : op->vtkSliderRepresentation2D::GetCapProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetSelectedProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSelectedProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty2D *tempr = (ap.IsBound() ? op->GetSelectedProperty() : op->vtkSliderRepresentation2D::GetSelectedProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetLabelProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLabelProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTextProperty *tempr = (ap.IsBound() ? op->GetLabelProperty() : op->vtkSliderRepresentation2D::GetLabelProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetTitleProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTitleProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTextProperty *tempr = (ap.IsBound() ? op->GetTitleProperty() : op->vtkSliderRepresentation2D::GetTitleProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_PlaceWidget(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PlaceWidget"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); const int size0 = 6; double temp0[6]; double save0[6]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->PlaceWidget(temp0); } else { op->vtkSliderRepresentation2D::PlaceWidget(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_BuildRepresentation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "BuildRepresentation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->BuildRepresentation(); } else { op->vtkSliderRepresentation2D::BuildRepresentation(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_StartWidgetInteraction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "StartWidgetInteraction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *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->StartWidgetInteraction(temp0); } else { op->vtkSliderRepresentation2D::StartWidgetInteraction(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_WidgetInteraction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "WidgetInteraction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *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->WidgetInteraction(temp0); } else { op->vtkSliderRepresentation2D::WidgetInteraction(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_Highlight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Highlight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->Highlight(temp0); } else { op->vtkSliderRepresentation2D::Highlight(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_GetActors2D(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetActors2D"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); vtkPropCollection *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPropCollection")) { if (ap.IsBound()) { op->GetActors2D(temp0); } else { op->vtkSliderRepresentation2D::GetActors2D(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_ReleaseGraphicsResources(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ReleaseGraphicsResources"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); vtkWindow *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkWindow")) { if (ap.IsBound()) { op->ReleaseGraphicsResources(temp0); } else { op->vtkSliderRepresentation2D::ReleaseGraphicsResources(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkSliderRepresentation2D_RenderOverlay(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RenderOverlay"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); vtkViewport *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkViewport")) { int tempr = (ap.IsBound() ? op->RenderOverlay(temp0) : op->vtkSliderRepresentation2D::RenderOverlay(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkSliderRepresentation2D_RenderOpaqueGeometry(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RenderOpaqueGeometry"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkSliderRepresentation2D *op = static_cast(vp); vtkViewport *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkViewport")) { int tempr = (ap.IsBound() ? op->RenderOpaqueGeometry(temp0) : op->vtkSliderRepresentation2D::RenderOpaqueGeometry(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkSliderRepresentation2D_Methods[] = { {"IsTypeOf", PyvtkSliderRepresentation2D_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nStandard methods for the class.\n"}, {"IsA", PyvtkSliderRepresentation2D_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nStandard methods for the class.\n"}, {"SafeDownCast", PyvtkSliderRepresentation2D_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkSliderRepresentation2D\nC++: static vtkSliderRepresentation2D *SafeDownCast(\n vtkObjectBase *o)\n\nStandard methods for the class.\n"}, {"NewInstance", PyvtkSliderRepresentation2D_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkSliderRepresentation2D\nC++: vtkSliderRepresentation2D *NewInstance()\n\nStandard methods for the class.\n"}, {"GetPoint1Coordinate", PyvtkSliderRepresentation2D_GetPoint1Coordinate, METH_VARARGS, "V.GetPoint1Coordinate() -> vtkCoordinate\nC++: vtkCoordinate *GetPoint1Coordinate()\n\nPosition the first end point of the slider. Note that this point\nis an instance of vtkCoordinate, meaning that Point 1 can be\nspecified in a variety of coordinate systems, and can even be\nrelative to another point. To set the point, you'll want to get\nthe Point1Coordinate and then invoke the necessary methods to put\nit into the correct coordinate system and set the correct initial\nvalue.\n"}, {"GetPoint2Coordinate", PyvtkSliderRepresentation2D_GetPoint2Coordinate, METH_VARARGS, "V.GetPoint2Coordinate() -> vtkCoordinate\nC++: vtkCoordinate *GetPoint2Coordinate()\n\nPosition the second end point of the slider. Note that this point\nis an instance of vtkCoordinate, meaning that Point 1 can be\nspecified in a variety of coordinate systems, and can even be\nrelative to another point. To set the point, you'll want to get\nthe Point2Coordinate and then invoke the necessary methods to put\nit into the correct coordinate system and set the correct initial\nvalue.\n"}, {"SetTitleText", PyvtkSliderRepresentation2D_SetTitleText, METH_VARARGS, "V.SetTitleText(string)\nC++: void SetTitleText(const char *) override;\n\nSpecify the label text for this widget. If the value is not set,\nor set to the empty string \"\", then the label text is not\ndisplayed.\n"}, {"GetTitleText", PyvtkSliderRepresentation2D_GetTitleText, METH_VARARGS, "V.GetTitleText() -> string\nC++: const char *GetTitleText() override;\n\nSpecify the label text for this widget. If the value is not set,\nor set to the empty string \"\", then the label text is not\ndisplayed.\n"}, {"GetSliderProperty", PyvtkSliderRepresentation2D_GetSliderProperty, METH_VARARGS, "V.GetSliderProperty() -> vtkProperty2D\nC++: virtual vtkProperty2D *GetSliderProperty()\n\nGet the slider properties. The properties of the slider when\nselected and unselected can be manipulated.\n"}, {"GetTubeProperty", PyvtkSliderRepresentation2D_GetTubeProperty, METH_VARARGS, "V.GetTubeProperty() -> vtkProperty2D\nC++: virtual vtkProperty2D *GetTubeProperty()\n\nGet the properties for the tube and end caps.\n"}, {"GetCapProperty", PyvtkSliderRepresentation2D_GetCapProperty, METH_VARARGS, "V.GetCapProperty() -> vtkProperty2D\nC++: virtual vtkProperty2D *GetCapProperty()\n\nGet the properties for the tube and end caps.\n"}, {"GetSelectedProperty", PyvtkSliderRepresentation2D_GetSelectedProperty, METH_VARARGS, "V.GetSelectedProperty() -> vtkProperty2D\nC++: virtual vtkProperty2D *GetSelectedProperty()\n\nGet the selection property. This property is used to modify the\nappearance of selected objects (e.g., the slider).\n"}, {"GetLabelProperty", PyvtkSliderRepresentation2D_GetLabelProperty, METH_VARARGS, "V.GetLabelProperty() -> vtkTextProperty\nC++: virtual vtkTextProperty *GetLabelProperty()\n\nSet/Get the properties for the label and title text.\n"}, {"GetTitleProperty", PyvtkSliderRepresentation2D_GetTitleProperty, METH_VARARGS, "V.GetTitleProperty() -> vtkTextProperty\nC++: virtual vtkTextProperty *GetTitleProperty()\n\nSet/Get the properties for the label and title text.\n"}, {"PlaceWidget", PyvtkSliderRepresentation2D_PlaceWidget, METH_VARARGS, "V.PlaceWidget([float, float, float, float, float, float])\nC++: void PlaceWidget(double bounds[6]) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"BuildRepresentation", PyvtkSliderRepresentation2D_BuildRepresentation, METH_VARARGS, "V.BuildRepresentation()\nC++: void BuildRepresentation() override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"StartWidgetInteraction", PyvtkSliderRepresentation2D_StartWidgetInteraction, METH_VARARGS, "V.StartWidgetInteraction([float, float])\nC++: void StartWidgetInteraction(double eventPos[2]) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"WidgetInteraction", PyvtkSliderRepresentation2D_WidgetInteraction, METH_VARARGS, "V.WidgetInteraction([float, float])\nC++: void WidgetInteraction(double newEventPos[2]) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"Highlight", PyvtkSliderRepresentation2D_Highlight, METH_VARARGS, "V.Highlight(int)\nC++: void Highlight(int) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"GetActors2D", PyvtkSliderRepresentation2D_GetActors2D, METH_VARARGS, "V.GetActors2D(vtkPropCollection)\nC++: void GetActors2D(vtkPropCollection *) override;\n\nMethods supporting the rendering process.\n"}, {"ReleaseGraphicsResources", PyvtkSliderRepresentation2D_ReleaseGraphicsResources, METH_VARARGS, "V.ReleaseGraphicsResources(vtkWindow)\nC++: void ReleaseGraphicsResources(vtkWindow *) override;\n\nMethods supporting the rendering process.\n"}, {"RenderOverlay", PyvtkSliderRepresentation2D_RenderOverlay, METH_VARARGS, "V.RenderOverlay(vtkViewport) -> int\nC++: int RenderOverlay(vtkViewport *) override;\n\nMethods supporting the rendering process.\n"}, {"RenderOpaqueGeometry", PyvtkSliderRepresentation2D_RenderOpaqueGeometry, METH_VARARGS, "V.RenderOpaqueGeometry(vtkViewport) -> int\nC++: int RenderOpaqueGeometry(vtkViewport *) override;\n\nMethods supporting the rendering process.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkSliderRepresentation2D_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkInteractionWidgetsPython.vtkSliderRepresentation2D", // 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 PyvtkSliderRepresentation2D_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 *PyvtkSliderRepresentation2D_StaticNew() { return vtkSliderRepresentation2D::New(); } PyObject *PyvtkSliderRepresentation2D_ClassNew() { PyVTKClass_Add( &PyvtkSliderRepresentation2D_Type, PyvtkSliderRepresentation2D_Methods, "vtkSliderRepresentation2D", &PyvtkSliderRepresentation2D_StaticNew); PyTypeObject *pytype = &PyvtkSliderRepresentation2D_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 *)PyvtkSliderRepresentation_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkSliderRepresentation2D( PyObject *dict) { PyObject *o; o = PyvtkSliderRepresentation2D_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkSliderRepresentation2D", o) != 0) { Py_DECREF(o); } }