Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect Class Reference
Inheritance diagram for SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect:
Collaboration diagram for SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect:

Public Member Functions

 __init__ (self, scriptedEffect)
 
 clone (self)
 
 currentOperationRequiresSegmentSelection (self)
 
 helpText (self)
 
 icon (self)
 
 onApply (self)
 
 onOperationSelectionChanged (self, operationName, toggle)
 
 processInteractionEvents (self, callerInteractor, eventId, viewWidget)
 
 processViewNodeEvents (self, callerViewNode, eventId, viewWidget)
 
 setMRMLDefaults (self)
 
 setupOptionsFrame (self)
 
 splitSegments (self, minimumSize=0, maxNumberOfSegments=0, split=True)
 
 updateGUIFromMRML (self)
 
 updateMRMLFromGUI (self)
 
- Public Member Functions inherited from SegmentEditorEffects.AbstractScriptedSegmentEditorEffect.AbstractScriptedSegmentEditorEffect
 __init__ (self, scriptedEffect)
 
 cleanup (self)
 
 rasToXy (self, ras, viewWidget)
 
 register (self)
 
 setWidgetMinMaxStepFromImageSpacing (self, spinbox, imageData)
 
 xyToIjk (self, xy, viewWidget, image, parentTransformNode=None)
 
 xyToRas (self, xy, viewWidget)
 
 xyzToIjk (self, xyz, viewWidget, image, parentTransformNode=None)
 
 xyzToRas (self, xyz, viewWidget)
 

Public Attributes

 addSelectedOptionRadioButton = qt.QRadioButton(_("Add selected island"))
 
 applyButton = qt.QPushButton(_("Apply"))
 
 keepLargestOptionRadioButton = qt.QRadioButton(_("Keep largest island"))
 
 keepSelectedOptionRadioButton = qt.QRadioButton(_("Keep selected island"))
 
 minimumSizeLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Minimum size:"), self.minimumSizeSpinBox)
 
 minimumSizeSpinBox = qt.QSpinBox()
 
 onApply
 
list operationRadioButtons = []
 
 removeSelectedOptionRadioButton = qt.QRadioButton(_("Remove selected island"))
 
 removeSmallOptionRadioButton = qt.QRadioButton(_("Remove small islands"))
 
 splitAllOptionRadioButton = qt.QRadioButton(_("Split islands to segments"))
 
 updateMRMLFromGUI
 
dict widgetToOperationNameMap = {}
 
- Public Attributes inherited from SegmentEditorEffects.AbstractScriptedSegmentEditorEffect.AbstractScriptedSegmentEditorEffect
 scriptedEffect = scriptedEffect
 

Detailed Description

Operate on connected components (islands) within a segment

Definition at line 14 of file SegmentEditorIslandsEffect.py.

Constructor & Destructor Documentation

◆ __init__()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.__init__ ( self,
scriptedEffect )

Definition at line 17 of file SegmentEditorIslandsEffect.py.

Member Function Documentation

◆ clone()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.clone ( self)

Definition at line 23 of file SegmentEditorIslandsEffect.py.

◆ currentOperationRequiresSegmentSelection()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.currentOperationRequiresSegmentSelection ( self)

Definition at line 117 of file SegmentEditorIslandsEffect.py.

◆ helpText()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.helpText ( self)

Definition at line 36 of file SegmentEditorIslandsEffect.py.

◆ icon()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.icon ( self)

Definition at line 30 of file SegmentEditorIslandsEffect.py.

◆ onApply()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.onApply ( self)

Definition at line 121 of file SegmentEditorIslandsEffect.py.

◆ onOperationSelectionChanged()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.onOperationSelectionChanged ( self,
operationName,
toggle )

Definition at line 112 of file SegmentEditorIslandsEffect.py.

◆ processInteractionEvents()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.processInteractionEvents ( self,
callerInteractor,
eventId,
viewWidget )

Definition at line 252 of file SegmentEditorIslandsEffect.py.

◆ processViewNodeEvents()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.processViewNodeEvents ( self,
callerViewNode,
eventId,
viewWidget )

Definition at line 380 of file SegmentEditorIslandsEffect.py.

◆ setMRMLDefaults()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.setMRMLDefaults ( self)

Definition at line 383 of file SegmentEditorIslandsEffect.py.

◆ setupOptionsFrame()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.setupOptionsFrame ( self)

Definition at line 40 of file SegmentEditorIslandsEffect.py.

◆ splitSegments()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.splitSegments ( self,
minimumSize = 0,
maxNumberOfSegments = 0,
split = True )
minimumSize: if 0 then it means that all islands are kept, regardless of size maxNumberOfSegments: if 0 then it means that all islands are kept, regardless of how many

Definition at line 134 of file SegmentEditorIslandsEffect.py.

◆ updateGUIFromMRML()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.updateGUIFromMRML ( self)

Definition at line 387 of file SegmentEditorIslandsEffect.py.

◆ updateMRMLFromGUI()

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.updateMRMLFromGUI ( self)

Definition at line 415 of file SegmentEditorIslandsEffect.py.

Member Data Documentation

◆ addSelectedOptionRadioButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.addSelectedOptionRadioButton = qt.QRadioButton(_("Add selected island"))

Definition at line 67 of file SegmentEditorIslandsEffect.py.

◆ applyButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.applyButton = qt.QPushButton(_("Apply"))

Definition at line 99 of file SegmentEditorIslandsEffect.py.

◆ keepLargestOptionRadioButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.keepLargestOptionRadioButton = qt.QRadioButton(_("Keep largest island"))

Definition at line 43 of file SegmentEditorIslandsEffect.py.

◆ keepSelectedOptionRadioButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.keepSelectedOptionRadioButton = qt.QRadioButton(_("Keep selected island"))

Definition at line 49 of file SegmentEditorIslandsEffect.py.

◆ minimumSizeLabel

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.minimumSizeLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Minimum size:"), self.minimumSizeSpinBox)

Definition at line 97 of file SegmentEditorIslandsEffect.py.

◆ minimumSizeSpinBox

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.minimumSizeSpinBox = qt.QSpinBox()

Definition at line 91 of file SegmentEditorIslandsEffect.py.

◆ onApply

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.onApply

Definition at line 110 of file SegmentEditorIslandsEffect.py.

◆ operationRadioButtons

list SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.operationRadioButtons = []

Definition at line 41 of file SegmentEditorIslandsEffect.py.

◆ removeSelectedOptionRadioButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.removeSelectedOptionRadioButton = qt.QRadioButton(_("Remove selected island"))

Definition at line 61 of file SegmentEditorIslandsEffect.py.

◆ removeSmallOptionRadioButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.removeSmallOptionRadioButton = qt.QRadioButton(_("Remove small islands"))

Definition at line 55 of file SegmentEditorIslandsEffect.py.

◆ splitAllOptionRadioButton

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.splitAllOptionRadioButton = qt.QRadioButton(_("Split islands to segments"))

Definition at line 73 of file SegmentEditorIslandsEffect.py.

◆ updateMRMLFromGUI

SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.updateMRMLFromGUI

Definition at line 108 of file SegmentEditorIslandsEffect.py.

◆ widgetToOperationNameMap

dict SegmentEditorEffects.SegmentEditorIslandsEffect.SegmentEditorIslandsEffect.widgetToOperationNameMap = {}

Definition at line 21 of file SegmentEditorIslandsEffect.py.


The documentation for this class was generated from the following file: