I want to design a python script module in which there is a widget showing all the loaded volumes.When I select a particular volume,I can get its voxels and make some changes.
@vtk.calldata_type(vtk.VTK_OBJECT)
def onNodeAdded(caller, event, calldata):
node = calldata
if isinstance(node, slicer.vtkMRMLVolumeNode):
# Call showVolumeRendering using a timer instead of calling it directly
# to allow the volume loading to fully complete.
qt.QTimer.singleShot(0, lambda: showVolumeRendering(node))
It would be more inclusive if all conversation happened in English. My native language is not English either (and I’d venture that it’s true for the majority of the forum users), but we always write in English so any conversation is potentially useful to the whole community. Bottom line: please stick to English. Thanks.