本文整理汇总了Python中slicer.qMRMLWidget函数的典型用法代码示例。如果您正苦于以下问题:Python qMRMLWidget函数的具体用法?Python qMRMLWidget怎么用?Python qMRMLWidget使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了qMRMLWidget函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: setupEditorWidget
def setupEditorWidget(self):
editorWidgetParent = slicer.qMRMLWidget()
editorWidgetParent.setLayout(qt.QVBoxLayout())
editorWidgetParent.setMRMLScene(slicer.mrmlScene)
self.editorWidget = EditorWidget(parent=editorWidgetParent)
self.editorWidget.setup()
self.segmentationGroupBoxLayout.addWidget(self.editorWidget.parent)
开发者ID:naucoin,项目名称:SlicerPathology,代码行数:7,代码来源:SlicerPathology.py
示例2: __init__
def __init__(self, parent=None):
VTKObservationMixin.__init__(self)
self.editUtil = EditUtil() # Kept for backward compatibility
# mrml volume node instances
self.master = None
self.masterWhenMergeWasSet = None
# Editor color LUT
self.colorNodeID = None
# string
self.createMergeOptions = ""
self.mergeVolumePostfix = "-label"
# slicer helper class
self.volumesLogic = slicer.modules.volumes.logic()
# widgets that are dynamically created on demand
# pseudo signals
# - python callable that gets True or False
self.selectCommand = None
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.create()
self.parent.show()
else:
self.parent = parent
self.create()
开发者ID:BRAINSia,项目名称:Slicer,代码行数:29,代码来源:HelperBox.py
示例3: setupEditorWidget
def setupEditorWidget(self):
self.editorWidgetParent = slicer.qMRMLWidget()
self.editorWidgetParent.setLayout(qt.QVBoxLayout())
self.editorWidgetParent.setMRMLScene(slicer.mrmlScene)
self.editUtil = EditorLib.EditUtil.EditUtil()
self.editorWidget = EditorWidget(parent=self.editorWidgetParent, showVolumesFrame=False)
self.editorWidget.setup()
self.editorParameterNode = self.editUtil.getParameterNode()
开发者ID:che85,项目名称:SliceTracker,代码行数:8,代码来源:SliceTrackerZFrameRegistration.py
示例4: create
def create(self):
if not self.parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.parent.show()
self.frame = qt.QFrame(self.parent)
self.frame.setLayout(qt.QVBoxLayout())
self.parent.layout().addWidget(self.frame)
self.widgets.append(self.frame)
开发者ID:LJWilliams,项目名称:Neuroimaging,代码行数:10,代码来源:EditOptions.py
示例5: __init__
def __init__(self, parent = None):
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()
开发者ID:KitwareMedical,项目名称:Slicer,代码行数:11,代码来源:fiber_visibility_crash2438.py
示例6: __init__
def __init__(self, parent = 0):
self.observerTags = []
self.parameterNode = None
self.parameterNodeTag = None
if parent == 0:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.create()
self.parent.show()
else:
self.parent = parent
self.create()
开发者ID:ArashAkbarinia,项目名称:Slicer,代码行数:13,代码来源:SelectDirection.py
示例7: __init__
def __init__(self, parent=None):
self.observerTags = []
self.logic = SampleDataLogic(self.logMessage)
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.layout = self.parent.layout()
self.setup()
self.parent.show()
else:
self.parent = parent
self.layout = parent.layout()
开发者ID:kingofpanda,项目名称:Slicer,代码行数:14,代码来源:SampleData.py
示例8: __init__
def __init__(self, parent=None):
self.logic = SelfTestsLogic(slicer.selfTests)
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.layout = self.parent.layout()
self.setup()
self.parent.show()
else:
self.parent = parent
self.layout = parent.layout()
globals()['selfTests'] = self
开发者ID:kanampalli,项目名称:Slicer,代码行数:15,代码来源:SelfTests.py
示例9: __init__
def __init__(self, parent = None):
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()
self.logic = SteeredPolyAffineRegistrationLogic()
self.interaction = False
开发者ID:prastawa,项目名称:SteeredDeformableRegistration,代码行数:15,代码来源:SteeredPolyAffineRegistration.py
示例10: __init__
def __init__(self, parent=0, parameter='label',colorNode=None):
VTKObservationMixin.__init__(self)
self.parameterNode = None
self.parameterNodeTag = None
self.parameter = parameter
self.colorBox = None
self.colorNode = colorNode
if parent == 0:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.create()
self.parent.show()
else:
self.parent = parent
self.create()
开发者ID:BRAINSia,项目名称:Slicer,代码行数:16,代码来源:EditColor.py
示例11: __init__
def __init__(self, parent=0, parameter='label'):
self.observerTags = []
self.parameterNode = None
self.parameterNodeTag = None
self.parameter = parameter
self.editUtil = EditUtil.EditUtil()
self.colorBox = None
if parent == 0:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.create()
self.parent.show()
else:
self.parent = parent
self.create()
开发者ID:151706061,项目名称:Slicer,代码行数:16,代码来源:EditColor.py
示例12: __init__
def __init__(self, parent = None):
# Get module name by stripping 'Widget' from the class name
self.moduleName = self.__class__.__name__
if self.moduleName.endswith('Widget'):
self.moduleName = self.moduleName[:-6]
settings = qt.QSettings()
self.developerMode = settings.value('Developer/DeveloperMode').lower() == 'true'
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()
开发者ID:SlicerRt,项目名称:Slicer,代码行数:17,代码来源:ScriptedLoadableModule.py
示例13: __init__
def __init__(self, parent=None):
self.chartOptions = ("Count", "Volume mm^3", "Volume cc", "Min", "Max", "Mean", "StdDev")
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
else:
self.parent = parent
self.logic = None
self.grayscaleNode = None
self.labelNode = None
self.fileName = None
self.fileDialog = None
if not parent:
self.setup()
self.grayscaleSelector.setMRMLScene(slicer.mrmlScene)
self.labelSelector.setMRMLScene(slicer.mrmlScene)
self.parent.show()
开发者ID:kingofpanda,项目名称:Slicer,代码行数:18,代码来源:LabelStatistics.py
示例14: create
def create(self,registrationState):
"""Call this method from your subclass to manage dynamic layout
and widget deleting
- registrationState is a callable object that will give you an instance
of a RegistrationState object that you can use to determine the current
state of the fixed, moving, and other parameters of the parent gui.
"""
self.registrationState = registrationState
if not self.parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.parent.show()
self.frame = qt.QFrame(self.parent)
self.frame.objectName = 'EditOptionsFrame'
self.frame.setLayout(qt.QVBoxLayout())
self.parent.layout().addWidget(self.frame)
self.widgets.append(self.frame)
开发者ID:pieper,项目名称:LandmarkRegistration,代码行数:18,代码来源:RegistrationPlugin.py
示例15: __init__
def __init__(self, parent=None, parameterNode=None, parameter=None, colorNode=None, selectCommand=None):
self.colorNode = colorNode
self.parameterNode = parameterNode
self.parameter = parameter
self.selectCommand = selectCommand
self.recents = []
self.label = None
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setObjectName('EditMRMLWidget')
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.create()
p = qt.QCursor().pos()
self.parent.setGeometry(p.x(), p.y(), 300, 700)
self.parent.show()
self.parent.raise_()
else:
self.parent = parent
self.create()
开发者ID:BRAINSia,项目名称:Slicer,代码行数:20,代码来源:ColorBox.py
示例16: __init__
def __init__(self, parent=None, showVolumesFrame=True):
VTKObservationMixin.__init__(self)
self.shortcuts = []
self.toolsBox = None
# set attributes from ctor parameters
self.showVolumesFrame = showVolumesFrame
self.editUtil = EditUtil() # Kept for backward compatibility
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.layout = self.parent.layout()
else:
self.parent = parent
self.layout = parent.layout()
ScriptedLoadableModuleWidget.__init__(self, parent)
开发者ID:andrewfzheng,项目名称:Slicer,代码行数:20,代码来源:Editor.py
示例17: __init__
def __init__(self, parent = None):
"""If parent widget is not specified: a top-level widget is created automatically;
the application has to delete this widget (by calling widget.parent.deleteLater() to avoid memory leaks.
"""
# Get module name by stripping 'Widget' from the class name
self.moduleName = self.__class__.__name__
if self.moduleName.endswith('Widget'):
self.moduleName = self.moduleName[:-6]
self.developerMode = slicer.util.settingsValue('Developer/DeveloperMode', False, converter=slicer.util.toBool)
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()
slicer.app.moduleManager().connect(
'moduleAboutToBeUnloaded(QString)', self._onModuleAboutToBeUnloaded)
开发者ID:BRAINSia,项目名称:Slicer,代码行数:21,代码来源:ScriptedLoadableModule.py
示例18: __init__
def __init__(self, parent=None):
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()
self.cameraNode = None
self.cameraNodeObserverTag = None
self.cameraObserverTag= None
# Flythough variables
self.transform = None
self.path = None
self.camera = None
self.skip = 0
self.timer = qt.QTimer()
self.timer.setInterval(20)
self.timer.connect('timeout()', self.flyToNext)
if not parent:
self.setup()
self.cameraNodeSelector.setMRMLScene(slicer.mrmlScene)
self.inputFiducialsNodeSelector.setMRMLScene(slicer.mrmlScene)
self.parent.show()
开发者ID:kingofpanda,项目名称:Slicer,代码行数:24,代码来源:Endoscopy.py
示例19: __init__
def __init__(self, parent=None):
self.testingServer = None
# state management for compressing events
# - each time an update is requested, start the singleShot timer
# - if the update is requested before the timeout, the call to timer.start() resets it
# - the actual update only happens when the the full time elapses since the last request
self.updateRecentActivityTimer = qt.QTimer()
self.updateRecentActivityTimer.singleShot = True
self.updateRecentActivityTimer.interval = 500
self.updateRecentActivityTimer.connect('timeout()', self.onUpateRecentActivityRequestTimeout)
if not parent:
self.parent = slicer.qMRMLWidget()
self.parent.setLayout(qt.QVBoxLayout())
self.parent.setMRMLScene(slicer.mrmlScene)
self.layout = self.parent.layout()
self.setup()
self.parent.show()
else:
self.parent = parent
self.layout = parent.layout()
globals()['d'] = self
开发者ID:LucasGandel,项目名称:Slicer,代码行数:24,代码来源:DICOM.py
注:本文中的slicer.qMRMLWidget函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论