Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
CustomVR.CustomVRWidget Class Reference
Inheritance diagram for CustomVR.CustomVRWidget:
Collaboration diagram for CustomVR.CustomVRWidget:

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)
 

Detailed Description

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.

Member Function Documentation

◆ _toggleVolumeDisplay()

CustomVR.CustomVRWidget._toggleVolumeDisplay ( self,
* _ )
protected

Definition at line 92 of file CustomVR.py.

◆ cleanup()

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.

◆ setup()

None CustomVR.CustomVRWidget.setup ( self)

Definition at line 63 of file CustomVR.py.

Member Data Documentation

◆ _toggleVolumeDisplay

CustomVR.CustomVRWidget._toggleVolumeDisplay = qt.QPushButton("Toggle display")
protected

Definition at line 86 of file CustomVR.py.

◆ _volumeNodeSelector

CustomVR.CustomVRWidget._volumeNodeSelector = slicer.qMRMLNodeComboBox(widget)
protected

Definition at line 74 of file CustomVR.py.


The documentation for this class was generated from the following file: