|
Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|


Public Member Functions | |
| None | cleanup (self) |
| None | setup (self) |
Protected Member Functions | |
| _toggleVolumeDisplay (self, *_) | |
Protected Attributes | |
| _toggleVolumeDisplay = qt.QPushButton("Toggle display") | |
| _volumeNodeSelector = slicer.qMRMLNodeComboBox(widget) | |
In this example, we will display a custom volume rendering and use VTK compute shader for processing the volume.
Definition at line 60 of file CustomVR.py.
|
protected |
Definition at line 92 of file CustomVR.py.
| None CustomVR.CustomVRWidget.cleanup | ( | self | ) |
Called when the module is about to be unloaded and by slicer.util.reloadScriptedModule before the widget is rebuilt (module Reload button). Here, we disconnect the pipelines from the scene (unregister the pipeline creator from the factory singleton and remove the scene observer). Without this, every reload would add a duplicate creator and observer, and the previously registered creator would keep instantiating pipelines from the pre-reload class.
Definition at line 101 of file CustomVR.py.
| None CustomVR.CustomVRWidget.setup | ( | self | ) |
Definition at line 63 of file CustomVR.py.
|
protected |
Definition at line 86 of file CustomVR.py.
|
protected |
Definition at line 74 of file CustomVR.py.