Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Member Functions | Public Attributes
SegmentEditorThresholdEffect.SegmentEditorThresholdEffect Class Reference
Inheritance diagram for SegmentEditorThresholdEffect.SegmentEditorThresholdEffect:
Inheritance graph
[legend]
Collaboration diagram for SegmentEditorThresholdEffect.SegmentEditorThresholdEffect:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, scriptedEffect)
 
def activate (self)
 
def autoThreshold (self, autoThresholdMethod, autoThresholdMode)
 
def clearHistogramDisplay (self)
 
def clearPreviewDisplay (self)
 
def clone (self)
 
def createHistogramPipeline (self, sliceWidget)
 
def deactivate (self)
 
def getSourceVolumeLayerLogic (self, sliceWidget)
 
def helpText (self)
 
def icon (self)
 
def layoutChanged (self)
 
def onApply (self)
 
def onAutoThreshold (self)
 
def onHistogramMouseClick (self, pos, button)
 
def onHistogramMouseMove (self, pos, button)
 
def onHistogramMouseRelease (self, pos, button)
 
def onSelectedAutoThresholdMethod (self)
 
def onSelectNextAutoThresholdMethod (self)
 
def onSelectPreviousAutoThresholdMethod (self)
 
def onThresholdValuesChanged (self, min, max)
 
def onUseForPaint (self)
 
def preview (self)
 
def processInteractionEvents (self, callerInteractor, eventId, viewWidget)
 
def processViewNodeEvents (self, callerViewNode, eventId, viewWidget)
 
def restorePreviewedSegmentTransparency (self)
 
def setCurrentSegmentTransparent (self)
 
def setMRMLDefaults (self)
 
def setupOptionsFrame (self)
 
def setupPreviewDisplay (self)
 
def sourceVolumeNodeChanged (self)
 
def updateGUIFromMRML (self)
 
def updateHistogram (self)
 
def updateHistogramBackground (self)
 
def updateMRMLFromGUI (self)
 

Public Attributes

 applyButton
 
 autoThresholdCalculator
 
 autoThresholdMethodSelectorComboBox
 
 autoThresholdModeSelectorComboBox
 
 averageFunction
 
 averageFunctionContainer
 
 averageFunctionItem
 
 backgroundColor
 
 backgroundFunction
 
 backgroundFunctionContainer
 
 backgroundFunctionItem
 
 boxROIButton
 
 circleROIButton
 
 drawROIButton
 
 histogramBrushButtonGroup
 
 histogramEventFilter
 
 histogramFunction
 
 histogramFunctionContainer
 
 histogramFunctionItem
 
 histogramLowerMethodButtonGroup
 Lower histogram threshold buttons. More...
 
 histogramLowerThresholdAverageButton
 
 histogramLowerThresholdLowerButton
 
 histogramLowerThresholdMinimumButton
 
 histogramPipeline
 
 histogramUpperMethodButtonGroup
 Upper histogram threshold buttons. More...
 
 histogramUpperThresholdAverageButton
 
 histogramUpperThresholdMaximumButton
 
 histogramUpperThresholdUpperButton
 
 histogramView
 
 imageAccumulate
 
 lineROIButton
 
 minMaxFunction
 
 minMaxFunctionContainer
 
 minMaxFunctionItem
 
 previewedSegmentID
 
 previewPipelines
 
 previewState
 
 previewStep
 
 previewSteps
 
 regionLabel
 
 reslice
 
 segment2DFillOpacity
 
 segment2DOutlineOpacity
 
 selectionEndPosition
 
 selectionStartPosition
 
 selectNextAutoThresholdButton
 
 selectPreviousAutoThresholdButton
 
 setAutoThresholdButton
 
 stencil
 
 thresholdSlider
 
 thresholdSliderLabel
 
 timer
 
 useForPaintButton
 

Detailed Description

ThresholdEffect is an Effect implementing the global threshold
    operation in the segment editor

    This is also an example for scripted effects, and some methods have no
    function. The methods that are not needed (i.e. the default implementation in
    qSlicerSegmentEditorAbstractEffect is satisfactory) can simply be omitted.

Definition at line 12 of file SegmentEditorThresholdEffect.py.

Constructor & Destructor Documentation

◆ __init__()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.__init__ (   self,
  scriptedEffect 
)

Definition at line 21 of file SegmentEditorThresholdEffect.py.

Member Function Documentation

◆ activate()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.activate (   self)

Definition at line 81 of file SegmentEditorThresholdEffect.py.

◆ autoThreshold()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThreshold (   self,
  autoThresholdMethod,
  autoThresholdMode 
)

Definition at line 542 of file SegmentEditorThresholdEffect.py.

◆ clearHistogramDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clearHistogramDisplay (   self)

Definition at line 632 of file SegmentEditorThresholdEffect.py.

◆ clearPreviewDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clearPreviewDisplay (   self)

Definition at line 627 of file SegmentEditorThresholdEffect.py.

◆ clone()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clone (   self)

Definition at line 62 of file SegmentEditorThresholdEffect.py.

◆ createHistogramPipeline()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.createHistogramPipeline (   self,
  sliceWidget 
)

Definition at line 740 of file SegmentEditorThresholdEffect.py.

◆ deactivate()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.deactivate (   self)

Definition at line 91 of file SegmentEditorThresholdEffect.py.

◆ getSourceVolumeLayerLogic()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.getSourceVolumeLayerLogic (   self,
  sliceWidget 
)

Definition at line 777 of file SegmentEditorThresholdEffect.py.

◆ helpText()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.helpText (   self)

Definition at line 74 of file SegmentEditorThresholdEffect.py.

◆ icon()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.icon (   self)

Definition at line 68 of file SegmentEditorThresholdEffect.py.

◆ layoutChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.layoutChanged (   self)

Definition at line 409 of file SegmentEditorThresholdEffect.py.

◆ onApply()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onApply (   self)

Definition at line 591 of file SegmentEditorThresholdEffect.py.

◆ onAutoThreshold()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onAutoThreshold (   self)

Definition at line 537 of file SegmentEditorThresholdEffect.py.

◆ onHistogramMouseClick()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onHistogramMouseClick (   self,
  pos,
  button 
)

Definition at line 755 of file SegmentEditorThresholdEffect.py.

◆ onHistogramMouseMove()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onHistogramMouseMove (   self,
  pos,
  button 
)

Definition at line 765 of file SegmentEditorThresholdEffect.py.

◆ onHistogramMouseRelease()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onHistogramMouseRelease (   self,
  pos,
  button 
)

Definition at line 771 of file SegmentEditorThresholdEffect.py.

◆ onSelectedAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectedAutoThresholdMethod (   self)

Definition at line 532 of file SegmentEditorThresholdEffect.py.

◆ onSelectNextAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectNextAutoThresholdMethod (   self)

Definition at line 527 of file SegmentEditorThresholdEffect.py.

◆ onSelectPreviousAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectPreviousAutoThresholdMethod (   self)

Definition at line 522 of file SegmentEditorThresholdEffect.py.

◆ onThresholdValuesChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onThresholdValuesChanged (   self,
  min,
  max 
)

Definition at line 512 of file SegmentEditorThresholdEffect.py.

◆ onUseForPaint()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onUseForPaint (   self)

Definition at line 515 of file SegmentEditorThresholdEffect.py.

◆ preview()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.preview (   self)

Definition at line 663 of file SegmentEditorThresholdEffect.py.

◆ processInteractionEvents()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.processInteractionEvents (   self,
  callerInteractor,
  eventId,
  viewWidget 
)

Definition at line 702 of file SegmentEditorThresholdEffect.py.

◆ processViewNodeEvents()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.processViewNodeEvents (   self,
  callerViewNode,
  eventId,
  viewWidget 
)

Definition at line 751 of file SegmentEditorThresholdEffect.py.

◆ restorePreviewedSegmentTransparency()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.restorePreviewedSegmentTransparency (   self)
Restore previewed segment's opacity that was temporarily
made transparen by calling setCurrentSegmentTransparent().

Definition at line 131 of file SegmentEditorThresholdEffect.py.

◆ setCurrentSegmentTransparent()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setCurrentSegmentTransparent (   self)
Save current segment opacity and set it to zero
to temporarily hide the segment so that threshold preview
can be seen better.
It also restores opacity of previously previewed segment.
Call restorePreviewedSegmentTransparency() to restore original
opacity.

Definition at line 99 of file SegmentEditorThresholdEffect.py.

◆ setMRMLDefaults()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setMRMLDefaults (   self)

Definition at line 412 of file SegmentEditorThresholdEffect.py.

◆ setupOptionsFrame()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setupOptionsFrame (   self)

Definition at line 147 of file SegmentEditorThresholdEffect.py.

◆ setupPreviewDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setupPreviewDisplay (   self)

Definition at line 638 of file SegmentEditorThresholdEffect.py.

◆ sourceVolumeNodeChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.sourceVolumeNodeChanged (   self)

Definition at line 397 of file SegmentEditorThresholdEffect.py.

◆ updateGUIFromMRML()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateGUIFromMRML (   self)

Definition at line 421 of file SegmentEditorThresholdEffect.py.

◆ updateHistogram()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateHistogram (   self)

Definition at line 803 of file SegmentEditorThresholdEffect.py.

◆ updateHistogramBackground()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateHistogramBackground (   self)

Definition at line 909 of file SegmentEditorThresholdEffect.py.

◆ updateMRMLFromGUI()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateMRMLFromGUI (   self)

Definition at line 455 of file SegmentEditorThresholdEffect.py.

Member Data Documentation

◆ applyButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.applyButton

Definition at line 383 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdCalculator

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdCalculator

Definition at line 31 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdMethodSelectorComboBox

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdMethodSelectorComboBox

Definition at line 166 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdModeSelectorComboBox

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdModeSelectorComboBox

Definition at line 157 of file SegmentEditorThresholdEffect.py.

◆ averageFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.averageFunction

Definition at line 285 of file SegmentEditorThresholdEffect.py.

◆ averageFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.averageFunctionContainer

Definition at line 286 of file SegmentEditorThresholdEffect.py.

◆ averageFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.averageFunctionItem

Definition at line 288 of file SegmentEditorThresholdEffect.py.

◆ backgroundColor

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundColor

Definition at line 296 of file SegmentEditorThresholdEffect.py.

◆ backgroundFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundFunction

Definition at line 297 of file SegmentEditorThresholdEffect.py.

◆ backgroundFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundFunctionContainer

Definition at line 298 of file SegmentEditorThresholdEffect.py.

◆ backgroundFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundFunctionItem

Definition at line 300 of file SegmentEditorThresholdEffect.py.

◆ boxROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.boxROIButton

Definition at line 227 of file SegmentEditorThresholdEffect.py.

◆ circleROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.circleROIButton

Definition at line 234 of file SegmentEditorThresholdEffect.py.

◆ drawROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.drawROIButton

Definition at line 241 of file SegmentEditorThresholdEffect.py.

◆ histogramBrushButtonGroup

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramBrushButtonGroup

Definition at line 224 of file SegmentEditorThresholdEffect.py.

◆ histogramEventFilter

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramEventFilter

Definition at line 271 of file SegmentEditorThresholdEffect.py.

◆ histogramFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramFunction

Definition at line 262 of file SegmentEditorThresholdEffect.py.

◆ histogramFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramFunctionContainer

Definition at line 263 of file SegmentEditorThresholdEffect.py.

◆ histogramFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramFunctionItem

Definition at line 265 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerMethodButtonGroup

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerMethodButtonGroup

Lower histogram threshold buttons.

Definition at line 315 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerThresholdAverageButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerThresholdAverageButton

Definition at line 333 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerThresholdLowerButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerThresholdLowerButton

Definition at line 326 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerThresholdMinimumButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerThresholdMinimumButton

Definition at line 318 of file SegmentEditorThresholdEffect.py.

◆ histogramPipeline

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramPipeline

Definition at line 40 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperMethodButtonGroup

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperMethodButtonGroup

Upper histogram threshold buttons.

Definition at line 348 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperThresholdAverageButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperThresholdAverageButton

Definition at line 351 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperThresholdMaximumButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperThresholdMaximumButton

Definition at line 365 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperThresholdUpperButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperThresholdUpperButton

Definition at line 358 of file SegmentEditorThresholdEffect.py.

◆ histogramView

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramView

Definition at line 257 of file SegmentEditorThresholdEffect.py.

◆ imageAccumulate

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.imageAccumulate

Definition at line 55 of file SegmentEditorThresholdEffect.py.

◆ lineROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.lineROIButton

Definition at line 248 of file SegmentEditorThresholdEffect.py.

◆ minMaxFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.minMaxFunction

Definition at line 275 of file SegmentEditorThresholdEffect.py.

◆ minMaxFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.minMaxFunctionContainer

Definition at line 276 of file SegmentEditorThresholdEffect.py.

◆ minMaxFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.minMaxFunctionItem

Definition at line 278 of file SegmentEditorThresholdEffect.py.

◆ previewedSegmentID

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewedSegmentID

Definition at line 27 of file SegmentEditorThresholdEffect.py.

◆ previewPipelines

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewPipelines

Definition at line 39 of file SegmentEditorThresholdEffect.py.

◆ previewState

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewState

Definition at line 34 of file SegmentEditorThresholdEffect.py.

◆ previewStep

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewStep

Definition at line 35 of file SegmentEditorThresholdEffect.py.

◆ previewSteps

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewSteps

Definition at line 36 of file SegmentEditorThresholdEffect.py.

◆ regionLabel

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.regionLabel

Definition at line 221 of file SegmentEditorThresholdEffect.py.

◆ reslice

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.reslice

Definition at line 47 of file SegmentEditorThresholdEffect.py.

◆ segment2DFillOpacity

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.segment2DFillOpacity

Definition at line 25 of file SegmentEditorThresholdEffect.py.

◆ segment2DOutlineOpacity

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.segment2DOutlineOpacity

Definition at line 26 of file SegmentEditorThresholdEffect.py.

◆ selectionEndPosition

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectionEndPosition

Definition at line 60 of file SegmentEditorThresholdEffect.py.

◆ selectionStartPosition

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectionStartPosition

Definition at line 59 of file SegmentEditorThresholdEffect.py.

◆ selectNextAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectNextAutoThresholdButton

Definition at line 190 of file SegmentEditorThresholdEffect.py.

◆ selectPreviousAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectPreviousAutoThresholdButton

Definition at line 185 of file SegmentEditorThresholdEffect.py.

◆ setAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setAutoThresholdButton

Definition at line 195 of file SegmentEditorThresholdEffect.py.

◆ stencil

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.stencil

Definition at line 44 of file SegmentEditorThresholdEffect.py.

◆ thresholdSlider

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.thresholdSlider

Definition at line 152 of file SegmentEditorThresholdEffect.py.

◆ thresholdSliderLabel

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.thresholdSliderLabel

Definition at line 148 of file SegmentEditorThresholdEffect.py.

◆ timer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.timer

Definition at line 33 of file SegmentEditorThresholdEffect.py.

◆ useForPaintButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.useForPaintButton

Definition at line 379 of file SegmentEditorThresholdEffect.py.


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