Example #1
0
 def __init__(self, parent=None):
     DeviceWidget.__init__(self, parent)
     self.observedParameterNodeEvents = [
         vtk.vtkCommand.ModifiedEvent,
         CardiacDeviceBase.DEVICE_PROFILE_MODIFIED_EVENT
     ]
     self.setup()
Example #2
0
 def __init__(self, registeredDeviceClasses, parent=None):
   DeviceWidget.__init__(self, parent)
   self.registeredDeviceClasses = registeredDeviceClasses
   self.observedParameterNodeEvents = [CardiacDeviceBase.DEVICE_CLASS_MODIFIED_EVENT, CardiacDeviceBase.DEVICE_PARAMETER_VALUE_MODIFIED_EVENT]
   self.deviceWidgetFrames = dict()
   self.deviceWidgetFrame = None
   self.inUpdateGUIFromMRML = False
   self.setup()
Example #3
0
 def __init__(self, parent=None):
   DeviceWidget.__init__(self, parent)
   self.observedParameterNodeEvents = [vtk.vtkCommand.ModifiedEvent, CardiacDeviceBase.DEVICE_PROFILE_MODIFIED_EVENT]
   self.setup()
   resliceLogic = slicer.modules.volumereslicedriver.logic()
   self.resliceConfig = [
     ('vtkMRMLSliceNodeRed', resliceLogic.MODE_TRANSVERSE),
     ('vtkMRMLSliceNodeGreen', resliceLogic.MODE_CORONAL),
     ('vtkMRMLSliceNodeYellow', resliceLogic.MODE_SAGITTAL)]
Example #4
0
 def setParameterNode(self, parameterNode):
   DeviceWidget.setParameterNode(self, parameterNode)
   if parameterNode:
     shNode = slicer.vtkMRMLSubjectHierarchyNode.GetSubjectHierarchyNode(slicer.mrmlScene)
     parameterNodeShItem = shNode.GetItemByDataNode(parameterNode)
     self.measurementTree.setRootItem(parameterNodeShItem)
     self.measurementTree.setEnabled(True)
   else:
     self.measurementTree.setEnabled(False)
Example #5
0
 def setParameterNode(self, parameterNode):
     DeviceWidget.setParameterNode(self, parameterNode)
Example #6
0
 def __init__(self, parent=None):
     DeviceWidget.__init__(self, parent)
     self.observedParameterNodeEvents = [vtk.vtkCommand.ModifiedEvent]
     self.setup()
Example #7
0
 def setParameterNode(self, parameterNode):
   DeviceWidget.setParameterNode(self, parameterNode)
   if self.parameterNode:
     self.setupResliceDriver()
Example #8
0
 def setParameterNode(self, parameterNode):
     DeviceWidget.setParameterNode(self, parameterNode)
     if self.parameterNode:
         for deviceClass in self.registeredDeviceClasses:
             self.deviceWidgetFrames[deviceClass.ID].setParameterNode(
                 self.parameterNode)
Example #9
0
 def __init__(self, parent=None):
   DeviceWidget.__init__(self, parent)
   self.observedParameterNodeEvents = [CardiacDeviceBase.QUANTIFICATION_RESULT_UPDATED_EVENT]
   self.setup()