Open tdowrick opened 3 years ago
In GitLab by @AnastasisGeorgoulas on Jun 27, 2019, 11:43
The locations could also be shown in their own separate view (superimposed on the CT/MRI), e.g. if we change the layout to 3x3.
In GitLab by @AnastasisGeorgoulas on Jul 5, 2019, 16:29
If we're displaying in a different 3D viewer, we need to be careful when setting up which volume is displayed in each viewer.
To display a volume with a known ID in only the second viewer:
# Get the volume ID
volume = slicer.mrmlScene.GetNodeByID("vtkMRMLScalarVolumeNode1")
# Get the viewer ID (here we take the second)
view_node = list(slicer.mrmlScene.GetNodesByClass("vtkMRMLViewNode")[1]
# Get the volume rendering node for that volume
# (there is a method `GetVolumeRenderingDisplayNodeForViewNode`, but it needs both a volume and a view)
for n in slicer.mrmlScene.GetNodesByClass("vtkMRMLVolumeRenderingDisplayNode"):
if n.GetVolumeNode() == view_node:
vr_node = n
break
# Add the volume to the viewer (by default, a volume is visible on all viewers,
# unless you specify which ones to show it on)
vr_node.AddViewNodeID(view_node.GetID())
In GitLab by @RolandGuichard on Jul 11, 2019, 09:01
This means:
In GitLab by @ThomasDowrick on Jun 27, 2019, 11:05
Need a button (or similar) to capture the location of the neurostimulation probe, and display a dot/model at that point in the 3D view.