Hello Slicer community! I am trying to make a simple Slicer (5.6.2) extension that requires the user to select a markup line from a dropdown list. I use the Qt designer to create a qMRMLNodeComboBox and set nodeTypes to vtkMRMLMarkupsLineNode. The example extension .py file created by the Extension Wizard includes a section for “Parameter Node” specification (wrapped with @parameterNodeWrapper) that type checks input parameters. I specify that the inputVolume is of type vtkMRMLScalarVolumeNode with inputVolume: vtkMRMLScalarVolumeNode
. The vtkMRMLScalarVolumeNode type is imported from slicer with from slicer import vtkMRMLScalarVolumeNode
. This works as expected.
However, when I try to specify the type of another parameter inputLine of type vtkMRMLMarkupsLineNode with inputLine: vtkMRMLMarkupsLineNode
and add vtkMRMLMarkupsLineNode to the slicer import statement, I get an error upon launching Slicer that says Cannot import name 'vtkMRMLMarkupsLineNode' from 'slicer'
. What am I missing here?