Esempio n. 1
0
 def __init__(self, parent=None):
     DeviceWidget.__init__(self, parent)
     self.observedParameterNodeEvents = [
         vtk.vtkCommand.ModifiedEvent,
         CardiacDeviceBase.DEVICE_PROFILE_MODIFIED_EVENT
     ]
     self.setup()
Esempio n. 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()
Esempio n. 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)]
Esempio n. 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)
Esempio n. 5
0
 def setParameterNode(self, parameterNode):
     DeviceWidget.setParameterNode(self, parameterNode)
Esempio n. 6
0
 def __init__(self, parent=None):
     DeviceWidget.__init__(self, parent)
     self.observedParameterNodeEvents = [vtk.vtkCommand.ModifiedEvent]
     self.setup()
Esempio n. 7
0
 def setParameterNode(self, parameterNode):
   DeviceWidget.setParameterNode(self, parameterNode)
   if self.parameterNode:
     self.setupResliceDriver()
Esempio n. 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)
Esempio n. 9
0
 def __init__(self, parent=None):
   DeviceWidget.__init__(self, parent)
   self.observedParameterNodeEvents = [CardiacDeviceBase.QUANTIFICATION_RESULT_UPDATED_EVENT]
   self.setup()