Exemple #1
0
 def section_SetupPathsAndNames(self):
   # Set constants
   self.invalidItemID = slicer.vtkMRMLSubjectHierarchyNode.GetInvalidItemID()
   self.sampleMarkupName = 'SampleMarkup'
   self.sampleChartName = 'SampleChart'
   self.studyItemID = self.invalidItemID
   self.cloneNodeNamePostfix = slicer.qSlicerSubjectHierarchyCloneNodePlugin().getCloneNodeNamePostfix()
Exemple #2
0
  def section_SetupPathsAndNames(self):
    # Set constants
    self.invalidItemID = slicer.vtkMRMLSubjectHierarchyNode.GetInvalidItemID()
    self.sampleMarkupName = 'SampleMarkup'
    self.studyItemID = self.invalidItemID
    self.cloneNodeNamePostfix = slicer.qSlicerSubjectHierarchyCloneNodePlugin().getCloneNodeNamePostfix()

    # Test printing of all context menu actions and their section numbers
    pluginHandler = slicer.qSlicerSubjectHierarchyPluginHandler().instance();
    print(pluginHandler.dumpContextMenuActions())
  def section_SetupPathsAndNames(self):
    # Make sure subject hierarchy auto-creation is on for this test
    subjectHierarchyWidget = slicer.modules.subjecthierarchy.widgetRepresentation()
    subjectHierarchyPluginLogic = subjectHierarchyWidget.pluginLogic()
    self.assertIsNotNone( subjectHierarchyWidget )
    self.assertIsNotNone( subjectHierarchyPluginLogic )
    subjectHierarchyPluginLogic.autoCreateSubjectHierarchy = True

    # Set constants
    self.sampleMarkupName = 'SampleMarkup'
    self.sampleChartName = 'SampleChart'
    self.studyName = 'Study'
    self.cloneNodeNamePostfix = slicer.qSlicerSubjectHierarchyCloneNodePlugin().getCloneNodeNamePostfix()