I want to use the parameters specifically the Rendering, Quality, and Interactive Speed for the 3D view of segmentations instead of volume rendering. I have managed to retrieve the Auto-release resources parameter from the code below; however, I am unable to fetch the other parameters:
viewNode = slicer.app.layoutManager().threeDWidget(0).mrmlViewNode()
autoRelease = viewNode.GetAutoReleaseGraphicsResources()
3D view of segmentations are based on surface rendering of polydata. It is a totally different mechanisms from the volume rendering. Those parameters do not apply?
Segmentations are shown in 3D using the closed surface mesh representation, but it (typically) also has a binary labelmap, which is used for editing and 2D visualization. In theory, you could export the segmentation labelmap to a volume node (Segmentations module Import/Export section, or Data module right-click), and show it with volume rendering with the Colorize volumes module. The problem is that currently multi-volume rendering does not really work well (this is why it says “experimental” in the option in the Volume rendering module). What this means is that if you use multi-volume rendering showing the CT and the segmentation at the same time, you won’t have access to features like cropping, rendering quality settings, lighting, etc, and if you use the default GPU ray casting then the rendering of the two volumes will not consider depth information, so one will always appear “on top of” the other.