Пример #1
0
  def __init__(self, parent=None):
    AbstractInteractiveSegmentTubes.__init__(self)

    self.widget = None
    self.moduleName = 'Interactive Segment Tubes'
    self.logic = InteractiveSegmentTubesLogic()
    self.interactionNode = None

    self.linkIcon = qt.QIcon(os.path.join(ICON_DIR, 'Link.png'))
    self.brokenIcon = qt.QIcon(os.path.join(ICON_DIR, 'Broken.png'))

    if not parent:
      self.parent = slicer.qMRMLWidget()
      self.parent.setLayout(qt.QVBoxLayout())
      self.parent.setMRMLScene(slicer.mrmlScene)
    else:
      self.parent = parent
    self.layout = self.parent.layout()
    if not parent:
      self.setup()
      self.parent.show()