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.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect Class Reference
Inheritance diagram for SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect:
Collaboration diagram for SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect:

Public Member Functions

 __init__ (self, scriptedEffect)
 
 activate (self)
 
 clone (self)
 
 createCursor (self, widget)
 
 deactivate (self)
 
 fillValueChanged (self)
 
 getInputVolume (self)
 
 helpText (self)
 
 icon (self)
 
 isVolumeVisible (self, volumeNode)
 
 onApply (self)
 
 onInputVisibilityButtonClicked (self)
 
 onInputVolumeChanged (self)
 
 onOperationSelectionChanged (self, operationName, toggle)
 
 onOutputVisibilityButtonClicked (self)
 
 onOutputVolumeChanged (self)
 
 setMRMLDefaults (self)
 
 setupOptionsFrame (self)
 
 softEdgeMmChanged (self, edgeMm)
 
 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)
 

Static Public Member Functions

 maskVolumeWithSegment (segmentationNode, segmentID, operationMode, fillValues, inputVolumeNode, outputVolumeNode, maskExtent=None, softEdgeMm=0.0)
 

Public Attributes

 applyButton = qt.QPushButton(_("Apply"))
 
 binaryMaskFillButton = qt.QRadioButton(_("Fill inside and outside"))
 
 binaryMaskFillInsideEdit = ctk.ctkDoubleSpinBox()
 
 binaryMaskFillOutsideEdit = ctk.ctkDoubleSpinBox()
 
dict buttonToOperationNameMap = {}
 
 fillInsideButton = qt.QRadioButton(_("Fill inside"))
 
 fillInsideLabel = qt.QLabel(_(" Inside fill value: "))
 
 fillOutsideButton = qt.QRadioButton(_("Fill outside"))
 
 fillOutsideLabel = qt.QLabel(_("Outside fill value: "))
 
 fillValueChanged = vtk.vtkDoubleArray().GetDataTypeMax(vtk.VTK_DOUBLE)
 
 fillValueEdit = ctk.ctkDoubleSpinBox()
 
 fillValueLabel = qt.QLabel(_("Fill value: "))
 
 inputVisibilityButton = qt.QToolButton()
 
 inputVolumeSelector = slicer.qMRMLNodeComboBox()
 
 invisibleIcon = qt.QIcon(":/Icons/Small/SlicerInvisible.png")
 
 onApply
 
 onInputVisibilityButtonClicked
 
 onInputVolumeChanged = False
 
 onOutputVisibilityButtonClicked
 
 onOutputVolumeChanged = False
 
list operationRadioButtons = []
 
 outputVisibilityButton = qt.QToolButton()
 
 outputVolumeSelector = slicer.qMRMLNodeComboBox()
 
 softEdgeMmChanged
 
 softEdgeMmLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Soft edge:"), self.softEdgeMmSpinBox)
 
 softEdgeMmSpinBox = slicer.qMRMLSpinBox()
 
bool updatingGUIFromMRML = False
 
 visibleIcon = qt.QIcon(":/Icons/Small/SlicerVisible.png")
 
- Public Attributes inherited from SegmentEditorEffects.AbstractScriptedSegmentEditorEffect.AbstractScriptedSegmentEditorEffect
 scriptedEffect = scriptedEffect
 

Detailed Description

This effect fills a selected volume node inside and/or outside a segment with a chosen value.

Definition at line 9 of file SegmentEditorMaskVolumeEffect.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 12 of file SegmentEditorMaskVolumeEffect.py.

Member Function Documentation

◆ activate()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.activate ( self)

Definition at line 256 of file SegmentEditorMaskVolumeEffect.py.

◆ clone()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.clone ( self)

Definition at line 21 of file SegmentEditorMaskVolumeEffect.py.

◆ createCursor()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.createCursor ( self,
widget )

Definition at line 174 of file SegmentEditorMaskVolumeEffect.py.

◆ deactivate()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.deactivate ( self)

Definition at line 259 of file SegmentEditorMaskVolumeEffect.py.

◆ fillValueChanged()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillValueChanged ( self)

Definition at line 301 of file SegmentEditorMaskVolumeEffect.py.

◆ getInputVolume()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.getInputVolume ( self)

Definition at line 272 of file SegmentEditorMaskVolumeEffect.py.

◆ helpText()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.helpText ( self)

Definition at line 36 of file SegmentEditorMaskVolumeEffect.py.

◆ icon()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.icon ( self)

Definition at line 29 of file SegmentEditorMaskVolumeEffect.py.

◆ isVolumeVisible()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.isVolumeVisible ( self,
volumeNode )

Definition at line 185 of file SegmentEditorMaskVolumeEffect.py.

◆ maskVolumeWithSegment()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.maskVolumeWithSegment ( segmentationNode,
segmentID,
operationMode,
fillValues,
inputVolumeNode,
outputVolumeNode,
maskExtent = None,
softEdgeMm = 0.0 )
static
Fill voxels of the input volume inside/outside the masking model with the provided fill value maskExtent: optional output to return computed mask extent (expected input is a 6-element list) fillValues: list containing one or two fill values. If fill mode is inside or outside then only one value is specified in the list. If fill mode is inside&outside then the list must contain two values: first is the inside fill, second is the outside fill value.

Definition at line 339 of file SegmentEditorMaskVolumeEffect.py.

◆ onApply()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onApply ( self)

Definition at line 304 of file SegmentEditorMaskVolumeEffect.py.

◆ onInputVisibilityButtonClicked()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onInputVisibilityButtonClicked ( self)

Definition at line 278 of file SegmentEditorMaskVolumeEffect.py.

◆ onInputVolumeChanged()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onInputVolumeChanged ( self)

Definition at line 293 of file SegmentEditorMaskVolumeEffect.py.

◆ onOperationSelectionChanged()

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

Definition at line 264 of file SegmentEditorMaskVolumeEffect.py.

◆ onOutputVisibilityButtonClicked()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onOutputVisibilityButtonClicked ( self)

Definition at line 287 of file SegmentEditorMaskVolumeEffect.py.

◆ onOutputVolumeChanged()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onOutputVolumeChanged ( self)

Definition at line 297 of file SegmentEditorMaskVolumeEffect.py.

◆ setMRMLDefaults()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.setMRMLDefaults ( self)

Definition at line 178 of file SegmentEditorMaskVolumeEffect.py.

◆ setupOptionsFrame()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.setupOptionsFrame ( self)

Definition at line 42 of file SegmentEditorMaskVolumeEffect.py.

◆ softEdgeMmChanged()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.softEdgeMmChanged ( self,
edgeMm )

Definition at line 269 of file SegmentEditorMaskVolumeEffect.py.

◆ updateGUIFromMRML()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.updateGUIFromMRML ( self)

Definition at line 197 of file SegmentEditorMaskVolumeEffect.py.

◆ updateMRMLFromGUI()

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.updateMRMLFromGUI ( self)

Definition at line 246 of file SegmentEditorMaskVolumeEffect.py.

Member Data Documentation

◆ applyButton

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

Definition at line 164 of file SegmentEditorMaskVolumeEffect.py.

◆ binaryMaskFillButton

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.binaryMaskFillButton = qt.QRadioButton(_("Fill inside and outside"))

Definition at line 57 of file SegmentEditorMaskVolumeEffect.py.

◆ binaryMaskFillInsideEdit

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.binaryMaskFillInsideEdit = ctk.ctkDoubleSpinBox()

Definition at line 80 of file SegmentEditorMaskVolumeEffect.py.

◆ binaryMaskFillOutsideEdit

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.binaryMaskFillOutsideEdit = ctk.ctkDoubleSpinBox()

Definition at line 75 of file SegmentEditorMaskVolumeEffect.py.

◆ buttonToOperationNameMap

dict SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.buttonToOperationNameMap = {}

Definition at line 19 of file SegmentEditorMaskVolumeEffect.py.

◆ fillInsideButton

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillInsideButton = qt.QRadioButton(_("Fill inside"))

Definition at line 49 of file SegmentEditorMaskVolumeEffect.py.

◆ fillInsideLabel

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillInsideLabel = qt.QLabel(_(" Inside fill value: "))

Definition at line 82 of file SegmentEditorMaskVolumeEffect.py.

◆ fillOutsideButton

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillOutsideButton = qt.QRadioButton(_("Fill outside"))

Definition at line 53 of file SegmentEditorMaskVolumeEffect.py.

◆ fillOutsideLabel

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillOutsideLabel = qt.QLabel(_("Outside fill value: "))

Definition at line 77 of file SegmentEditorMaskVolumeEffect.py.

◆ fillValueChanged

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillValueChanged = vtk.vtkDoubleArray().GetDataTypeMax(vtk.VTK_DOUBLE)

Definition at line 88 of file SegmentEditorMaskVolumeEffect.py.

◆ fillValueEdit

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillValueEdit = ctk.ctkDoubleSpinBox()

Definition at line 70 of file SegmentEditorMaskVolumeEffect.py.

◆ fillValueLabel

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.fillValueLabel = qt.QLabel(_("Fill value: "))

Definition at line 72 of file SegmentEditorMaskVolumeEffect.py.

◆ inputVisibilityButton

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.inputVisibilityButton = qt.QToolButton()

Definition at line 133 of file SegmentEditorMaskVolumeEffect.py.

◆ inputVolumeSelector

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.inputVolumeSelector = slicer.qMRMLNodeComboBox()

Definition at line 121 of file SegmentEditorMaskVolumeEffect.py.

◆ invisibleIcon

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.invisibleIcon = qt.QIcon(":/Icons/Small/SlicerInvisible.png")

Definition at line 46 of file SegmentEditorMaskVolumeEffect.py.

◆ onApply

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onApply

Definition at line 168 of file SegmentEditorMaskVolumeEffect.py.

◆ onInputVisibilityButtonClicked

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onInputVisibilityButtonClicked

Definition at line 135 of file SegmentEditorMaskVolumeEffect.py.

◆ onInputVolumeChanged

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onInputVolumeChanged = False

Definition at line 131 of file SegmentEditorMaskVolumeEffect.py.

◆ onOutputVisibilityButtonClicked

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onOutputVisibilityButtonClicked

Definition at line 157 of file SegmentEditorMaskVolumeEffect.py.

◆ onOutputVolumeChanged

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.onOutputVolumeChanged = False

Definition at line 153 of file SegmentEditorMaskVolumeEffect.py.

◆ operationRadioButtons

list SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.operationRadioButtons = []

Definition at line 43 of file SegmentEditorMaskVolumeEffect.py.

◆ outputVisibilityButton

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.outputVisibilityButton = qt.QToolButton()

Definition at line 155 of file SegmentEditorMaskVolumeEffect.py.

◆ outputVolumeSelector

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.outputVolumeSelector = slicer.qMRMLNodeComboBox()

Definition at line 142 of file SegmentEditorMaskVolumeEffect.py.

◆ softEdgeMmChanged

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.softEdgeMmChanged

Definition at line 118 of file SegmentEditorMaskVolumeEffect.py.

◆ softEdgeMmLabel

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.softEdgeMmLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Soft edge:"), self.softEdgeMmSpinBox)

Definition at line 117 of file SegmentEditorMaskVolumeEffect.py.

◆ softEdgeMmSpinBox

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.softEdgeMmSpinBox = slicer.qMRMLSpinBox()

Definition at line 109 of file SegmentEditorMaskVolumeEffect.py.

◆ updatingGUIFromMRML

bool SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.updatingGUIFromMRML = False

Definition at line 44 of file SegmentEditorMaskVolumeEffect.py.

◆ visibleIcon

SegmentEditorEffects.SegmentEditorMaskVolumeEffect.SegmentEditorMaskVolumeEffect.visibleIcon = qt.QIcon(":/Icons/Small/SlicerVisible.png")

Definition at line 45 of file SegmentEditorMaskVolumeEffect.py.


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