// python wrapper for vtkResliceImageViewer // #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 "vtkResliceImageViewer.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkResliceImageViewer(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkResliceImageViewer_ClassNew(); } #ifndef DECLARED_PyvtkImageViewer2_ClassNew extern "C" { PyObject *PyvtkImageViewer2_ClassNew(); } #define DECLARED_PyvtkImageViewer2_ClassNew #endif static const char *PyvtkResliceImageViewer_Doc = "vtkResliceImageViewer - Display an image along with a reslice cursor\n\n" "Superclass: vtkImageViewer2\n\n" "This class is similar to vtkImageViewer2. It displays the image along\n" "with a two cross hairs for reslicing. The cross hairs may be\n" "interactively manipulated and are typically used to reslice two other\n" "views of vtkResliceImageViewer. See QtVTKRenderWindows for an\n" "example. The reslice cursor is used to perform thin or thick MPR\n" "through data. The class can also default to the behaviour of\n" "vtkImageViewer2 if the Reslice mode is set to RESLICE_AXIS_ALIGNED.\n" "@sa\n" "vtkResliceCursor vtkResliceCursorWidget\n" "vtkResliceCursorRepresentation\n\n"; static PyObject * PyvtkResliceImageViewer_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkResliceImageViewer::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *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->vtkResliceImageViewer::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkResliceImageViewer *tempr = vtkResliceImageViewer::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkResliceImageViewer *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkResliceImageViewer::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 * PyvtkResliceImageViewer_Render(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Render"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Render(); } else { op->vtkResliceImageViewer::Render(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetInputData(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInputData"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); vtkImageData *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkImageData")) { if (ap.IsBound()) { op->SetInputData(temp0); } else { op->vtkResliceImageViewer::SetInputData(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetInputConnection(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInputConnection"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); vtkAlgorithmOutput *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkAlgorithmOutput")) { if (ap.IsBound()) { op->SetInputConnection(temp0); } else { op->vtkResliceImageViewer::SetInputConnection(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetColorWindow(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColorWindow"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetColorWindow(temp0); } else { op->vtkResliceImageViewer::SetColorWindow(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetColorLevel(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColorLevel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetColorLevel(temp0); } else { op->vtkResliceImageViewer::SetColorLevel(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_GetResliceCursorWidget(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetResliceCursorWidget"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkResliceCursorWidget *tempr = (ap.IsBound() ? op->GetResliceCursorWidget() : op->vtkResliceImageViewer::GetResliceCursorWidget()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_GetResliceMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetResliceMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetResliceMode() : op->vtkResliceImageViewer::GetResliceMode()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_SetResliceMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetResliceMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetResliceMode(temp0); } else { op->vtkResliceImageViewer::SetResliceMode(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetResliceModeToAxisAligned(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetResliceModeToAxisAligned"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetResliceModeToAxisAligned(); } else { op->vtkResliceImageViewer::SetResliceModeToAxisAligned(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetResliceModeToOblique(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetResliceModeToOblique"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetResliceModeToOblique(); } else { op->vtkResliceImageViewer::SetResliceModeToOblique(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_GetResliceCursor(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetResliceCursor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkResliceCursor *tempr = (ap.IsBound() ? op->GetResliceCursor() : op->vtkResliceImageViewer::GetResliceCursor()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_SetResliceCursor(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetResliceCursor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); vtkResliceCursor *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkResliceCursor")) { if (ap.IsBound()) { op->SetResliceCursor(temp0); } else { op->vtkResliceImageViewer::SetResliceCursor(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SetLookupTable(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetLookupTable"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); vtkScalarsToColors *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkScalarsToColors")) { if (ap.IsBound()) { op->SetLookupTable(temp0); } else { op->vtkResliceImageViewer::SetLookupTable(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_GetLookupTable(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLookupTable"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkScalarsToColors *tempr = (ap.IsBound() ? op->GetLookupTable() : op->vtkResliceImageViewer::GetLookupTable()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_SetThickMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetThickMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetThickMode(temp0); } else { op->vtkResliceImageViewer::SetThickMode(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_GetThickMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetThickMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetThickMode() : op->vtkResliceImageViewer::GetThickMode()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_Reset(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Reset"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Reset(); } else { op->vtkResliceImageViewer::Reset(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_GetPointPlacer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPointPlacer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkBoundedPlanePointPlacer *tempr = (ap.IsBound() ? op->GetPointPlacer() : op->vtkResliceImageViewer::GetPointPlacer()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_GetMeasurements(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMeasurements"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkResliceImageViewerMeasurements *tempr = (ap.IsBound() ? op->GetMeasurements() : op->vtkResliceImageViewer::GetMeasurements()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_GetInteractor(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInteractor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkRenderWindowInteractor *tempr = (ap.IsBound() ? op->GetInteractor() : op->vtkResliceImageViewer::GetInteractor()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_SetSliceScrollOnMouseWheel(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSliceScrollOnMouseWheel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSliceScrollOnMouseWheel(temp0); } else { op->vtkResliceImageViewer::SetSliceScrollOnMouseWheel(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_GetSliceScrollOnMouseWheel(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSliceScrollOnMouseWheel"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetSliceScrollOnMouseWheel() : op->vtkResliceImageViewer::GetSliceScrollOnMouseWheel()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkResliceImageViewer_SliceScrollOnMouseWheelOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SliceScrollOnMouseWheelOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SliceScrollOnMouseWheelOn(); } else { op->vtkResliceImageViewer::SliceScrollOnMouseWheelOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_SliceScrollOnMouseWheelOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SliceScrollOnMouseWheelOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SliceScrollOnMouseWheelOff(); } else { op->vtkResliceImageViewer::SliceScrollOnMouseWheelOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkResliceImageViewer_IncrementSlice(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IncrementSlice"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkResliceImageViewer *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->IncrementSlice(temp0); } else { op->vtkResliceImageViewer::IncrementSlice(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkResliceImageViewer_Methods[] = { {"IsTypeOf", PyvtkResliceImageViewer_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nStandard VTK methods.\n"}, {"IsA", PyvtkResliceImageViewer_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nStandard VTK methods.\n"}, {"SafeDownCast", PyvtkResliceImageViewer_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkResliceImageViewer\nC++: static vtkResliceImageViewer *SafeDownCast(vtkObjectBase *o)\n\nStandard VTK methods.\n"}, {"NewInstance", PyvtkResliceImageViewer_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkResliceImageViewer\nC++: vtkResliceImageViewer *NewInstance()\n\nStandard VTK methods.\n"}, {"Render", PyvtkResliceImageViewer_Render, METH_VARARGS, "V.Render()\nC++: void Render() override;\n\nRender the resulting image.\n"}, {"SetInputData", PyvtkResliceImageViewer_SetInputData, METH_VARARGS, "V.SetInputData(vtkImageData)\nC++: void SetInputData(vtkImageData *in) override;\n\nSet/Get the input image to the viewer.\n"}, {"SetInputConnection", PyvtkResliceImageViewer_SetInputConnection, METH_VARARGS, "V.SetInputConnection(vtkAlgorithmOutput)\nC++: void SetInputConnection(vtkAlgorithmOutput *input) override;\n\nSet/Get the input image to the viewer.\n"}, {"SetColorWindow", PyvtkResliceImageViewer_SetColorWindow, METH_VARARGS, "V.SetColorWindow(float)\nC++: void SetColorWindow(double s) override;\n\nSet window and level for mapping pixels to colors.\n"}, {"SetColorLevel", PyvtkResliceImageViewer_SetColorLevel, METH_VARARGS, "V.SetColorLevel(float)\nC++: void SetColorLevel(double s) override;\n\nSet window and level for mapping pixels to colors.\n"}, {"GetResliceCursorWidget", PyvtkResliceImageViewer_GetResliceCursorWidget, METH_VARARGS, "V.GetResliceCursorWidget() -> vtkResliceCursorWidget\nC++: virtual vtkResliceCursorWidget *GetResliceCursorWidget()\n\nGet the internal render window, renderer, image actor, and image\nmap instances.\n"}, {"GetResliceMode", PyvtkResliceImageViewer_GetResliceMode, METH_VARARGS, "V.GetResliceMode() -> int\nC++: virtual int GetResliceMode()\n\n"}, {"SetResliceMode", PyvtkResliceImageViewer_SetResliceMode, METH_VARARGS, "V.SetResliceMode(int)\nC++: virtual void SetResliceMode(int resliceMode)\n\n"}, {"SetResliceModeToAxisAligned", PyvtkResliceImageViewer_SetResliceModeToAxisAligned, METH_VARARGS, "V.SetResliceModeToAxisAligned()\nC++: virtual void SetResliceModeToAxisAligned()\n\n"}, {"SetResliceModeToOblique", PyvtkResliceImageViewer_SetResliceModeToOblique, METH_VARARGS, "V.SetResliceModeToOblique()\nC++: virtual void SetResliceModeToOblique()\n\n"}, {"GetResliceCursor", PyvtkResliceImageViewer_GetResliceCursor, METH_VARARGS, "V.GetResliceCursor() -> vtkResliceCursor\nC++: vtkResliceCursor *GetResliceCursor()\n\nSet/Get the reslice cursor.\n"}, {"SetResliceCursor", PyvtkResliceImageViewer_SetResliceCursor, METH_VARARGS, "V.SetResliceCursor(vtkResliceCursor)\nC++: void SetResliceCursor(vtkResliceCursor *rc)\n\nSet/Get the reslice cursor.\n"}, {"SetLookupTable", PyvtkResliceImageViewer_SetLookupTable, METH_VARARGS, "V.SetLookupTable(vtkScalarsToColors)\nC++: virtual void SetLookupTable(vtkScalarsToColors *)\n\nSet the lookup table\n"}, {"GetLookupTable", PyvtkResliceImageViewer_GetLookupTable, METH_VARARGS, "V.GetLookupTable() -> vtkScalarsToColors\nC++: vtkScalarsToColors *GetLookupTable()\n\nSet the lookup table\n"}, {"SetThickMode", PyvtkResliceImageViewer_SetThickMode, METH_VARARGS, "V.SetThickMode(int)\nC++: virtual void SetThickMode(int)\n\nSwitch to / from thick mode\n"}, {"GetThickMode", PyvtkResliceImageViewer_GetThickMode, METH_VARARGS, "V.GetThickMode() -> int\nC++: virtual int GetThickMode()\n\nSwitch to / from thick mode\n"}, {"Reset", PyvtkResliceImageViewer_Reset, METH_VARARGS, "V.Reset()\nC++: virtual void Reset()\n\nReset all views back to initial state\n"}, {"GetPointPlacer", PyvtkResliceImageViewer_GetPointPlacer, METH_VARARGS, "V.GetPointPlacer() -> vtkBoundedPlanePointPlacer\nC++: virtual vtkBoundedPlanePointPlacer *GetPointPlacer()\n\nGet the point placer.\n"}, {"GetMeasurements", PyvtkResliceImageViewer_GetMeasurements, METH_VARARGS, "V.GetMeasurements() -> vtkResliceImageViewerMeasurements\nC++: virtual vtkResliceImageViewerMeasurements *GetMeasurements()\n\nGet the measurements manager\n"}, {"GetInteractor", PyvtkResliceImageViewer_GetInteractor, METH_VARARGS, "V.GetInteractor() -> vtkRenderWindowInteractor\nC++: virtual vtkRenderWindowInteractor *GetInteractor()\n\nGet the render window interactor\n"}, {"SetSliceScrollOnMouseWheel", PyvtkResliceImageViewer_SetSliceScrollOnMouseWheel, METH_VARARGS, "V.SetSliceScrollOnMouseWheel(int)\nC++: virtual void SetSliceScrollOnMouseWheel(int _arg)\n\nScroll slices on the mouse wheel ? In the case of MPR view, it\nmoves one \"normalized spacing\" in the direction of the normal to\nthe resliced plane, provided the new center will continue to lie\nwithin the volume.\n"}, {"GetSliceScrollOnMouseWheel", PyvtkResliceImageViewer_GetSliceScrollOnMouseWheel, METH_VARARGS, "V.GetSliceScrollOnMouseWheel() -> int\nC++: virtual int GetSliceScrollOnMouseWheel()\n\nScroll slices on the mouse wheel ? In the case of MPR view, it\nmoves one \"normalized spacing\" in the direction of the normal to\nthe resliced plane, provided the new center will continue to lie\nwithin the volume.\n"}, {"SliceScrollOnMouseWheelOn", PyvtkResliceImageViewer_SliceScrollOnMouseWheelOn, METH_VARARGS, "V.SliceScrollOnMouseWheelOn()\nC++: virtual void SliceScrollOnMouseWheelOn()\n\nScroll slices on the mouse wheel ? In the case of MPR view, it\nmoves one \"normalized spacing\" in the direction of the normal to\nthe resliced plane, provided the new center will continue to lie\nwithin the volume.\n"}, {"SliceScrollOnMouseWheelOff", PyvtkResliceImageViewer_SliceScrollOnMouseWheelOff, METH_VARARGS, "V.SliceScrollOnMouseWheelOff()\nC++: virtual void SliceScrollOnMouseWheelOff()\n\nScroll slices on the mouse wheel ? In the case of MPR view, it\nmoves one \"normalized spacing\" in the direction of the normal to\nthe resliced plane, provided the new center will continue to lie\nwithin the volume.\n"}, {"IncrementSlice", PyvtkResliceImageViewer_IncrementSlice, METH_VARARGS, "V.IncrementSlice(int)\nC++: virtual void IncrementSlice(int n)\n\nIncrement/Decrement slice by 'n' slices\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkResliceImageViewer_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkInteractionImagePython.vtkResliceImageViewer", // 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 PyvtkResliceImageViewer_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 *PyvtkResliceImageViewer_StaticNew() { return vtkResliceImageViewer::New(); } PyObject *PyvtkResliceImageViewer_ClassNew() { PyVTKClass_Add( &PyvtkResliceImageViewer_Type, PyvtkResliceImageViewer_Methods, "vtkResliceImageViewer", &PyvtkResliceImageViewer_StaticNew); PyTypeObject *pytype = &PyvtkResliceImageViewer_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 *)PyvtkImageViewer2_ClassNew(); PyObject *d = pytype->tp_dict; PyObject *o; for (int c = 0; c < 3; c++) { static const struct { const char *name; int value; } constants[3] = { { "RESLICE_AXIS_ALIGNED", vtkResliceImageViewer::RESLICE_AXIS_ALIGNED }, { "RESLICE_OBLIQUE", vtkResliceImageViewer::RESLICE_OBLIQUE }, { "SliceChangedEvent", vtkResliceImageViewer::SliceChangedEvent }, }; o = PyInt_FromLong(constants[c].value); if (o) { PyDict_SetItemString(d, constants[c].name, o); Py_DECREF(o); } } PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkResliceImageViewer( PyObject *dict) { PyObject *o; o = PyvtkResliceImageViewer_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkResliceImageViewer", o) != 0) { Py_DECREF(o); } }