def __init__(self, parent=None): DeviceWidget.__init__(self, parent) self.observedParameterNodeEvents = [ vtk.vtkCommand.ModifiedEvent, CardiacDeviceBase.DEVICE_PROFILE_MODIFIED_EVENT ] self.setup()
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()
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)]
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)
def setParameterNode(self, parameterNode): DeviceWidget.setParameterNode(self, parameterNode)
def __init__(self, parent=None): DeviceWidget.__init__(self, parent) self.observedParameterNodeEvents = [vtk.vtkCommand.ModifiedEvent] self.setup()
def setParameterNode(self, parameterNode): DeviceWidget.setParameterNode(self, parameterNode) if self.parameterNode: self.setupResliceDriver()
def setParameterNode(self, parameterNode): DeviceWidget.setParameterNode(self, parameterNode) if self.parameterNode: for deviceClass in self.registeredDeviceClasses: self.deviceWidgetFrames[deviceClass.ID].setParameterNode( self.parameterNode)
def __init__(self, parent=None): DeviceWidget.__init__(self, parent) self.observedParameterNodeEvents = [CardiacDeviceBase.QUANTIFICATION_RESULT_UPDATED_EVENT] self.setup()