Skip to content

Commit

Permalink
ENH: Use markups line node instead of annotations ruler node
Browse files Browse the repository at this point in the history
Re #10
  • Loading branch information
cpinter committed Oct 14, 2022
1 parent 2743db3 commit a63f8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GelDosimetryAnalysis/GelDosimetryAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def setup_StepT1_lineProfileCollapsibleButton(self):

# Input ruler selector
self.stepT1_inputRulerSelector = slicer.qMRMLNodeComboBox()
self.stepT1_inputRulerSelector.nodeTypes = ["vtkMRMLAnnotationRulerNode"]
self.stepT1_inputRulerSelector.nodeTypes = ["vtkMRMLMarkupsLineNode", "vtkMRMLAnnotationRulerNode"]
self.stepT1_inputRulerSelector.selectNodeUponCreation = True
self.stepT1_inputRulerSelector.addEnabled = False
self.stepT1_inputRulerSelector.removeEnabled = False
Expand Down Expand Up @@ -2029,7 +2029,7 @@ def onStepT1_LineProfileSelected(self, collapsed):

# Switch to place ruler mode
interactionNode.SwitchToSinglePlaceMode()
selectionNode.SetReferenceActivePlaceNodeClassName("vtkMRMLAnnotationRulerNode")
selectionNode.SetReferenceActivePlaceNodeClassName("vtkMRMLMarkupsLineNode")
else:
self.onViewSelect(self.currentLayoutIndex)

Expand Down

0 comments on commit a63f8de

Please sign in to comment.