Slicer  4.11
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 createCursor (self, widget)
 
def createHistogramPipeline (self, sliceWidget)
 
def deactivate (self)
 
def getMasterVolumeLayerLogic (self, sliceWidget)
 
def helpText (self)
 
def icon (self)
 
def layoutChanged (self)
 
def masterVolumeNodeChanged (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 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
 
 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 6 of file SegmentEditorThresholdEffect.py.

Constructor & Destructor Documentation

◆ __init__()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.__init__ (   self,
  scriptedEffect 
)

Definition at line 15 of file SegmentEditorThresholdEffect.py.

Member Function Documentation

◆ activate()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.activate (   self)

Definition at line 75 of file SegmentEditorThresholdEffect.py.

◆ autoThreshold()

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

Definition at line 530 of file SegmentEditorThresholdEffect.py.

◆ clearHistogramDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clearHistogramDisplay (   self)

Definition at line 621 of file SegmentEditorThresholdEffect.py.

◆ clearPreviewDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clearPreviewDisplay (   self)

Definition at line 616 of file SegmentEditorThresholdEffect.py.

◆ clone()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clone (   self)

Definition at line 56 of file SegmentEditorThresholdEffect.py.

◆ createCursor()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.createCursor (   self,
  widget 
)

Definition at line 380 of file SegmentEditorThresholdEffect.py.

◆ createHistogramPipeline()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.createHistogramPipeline (   self,
  sliceWidget 
)

Definition at line 725 of file SegmentEditorThresholdEffect.py.

◆ deactivate()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.deactivate (   self)

Definition at line 85 of file SegmentEditorThresholdEffect.py.

◆ getMasterVolumeLayerLogic()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.getMasterVolumeLayerLogic (   self,
  sliceWidget 
)

Definition at line 762 of file SegmentEditorThresholdEffect.py.

◆ helpText()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.helpText (   self)

Definition at line 68 of file SegmentEditorThresholdEffect.py.

◆ icon()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.icon (   self)

Definition at line 62 of file SegmentEditorThresholdEffect.py.

◆ layoutChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.layoutChanged (   self)

Definition at line 397 of file SegmentEditorThresholdEffect.py.

◆ masterVolumeNodeChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.masterVolumeNodeChanged (   self)

Definition at line 384 of file SegmentEditorThresholdEffect.py.

◆ onApply()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onApply (   self)

Definition at line 579 of file SegmentEditorThresholdEffect.py.

◆ onAutoThreshold()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onAutoThreshold (   self)

Definition at line 525 of file SegmentEditorThresholdEffect.py.

◆ onHistogramMouseClick()

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

Definition at line 740 of file SegmentEditorThresholdEffect.py.

◆ onHistogramMouseMove()

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

Definition at line 750 of file SegmentEditorThresholdEffect.py.

◆ onHistogramMouseRelease()

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

Definition at line 756 of file SegmentEditorThresholdEffect.py.

◆ onSelectedAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectedAutoThresholdMethod (   self)

Definition at line 520 of file SegmentEditorThresholdEffect.py.

◆ onSelectNextAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectNextAutoThresholdMethod (   self)

Definition at line 515 of file SegmentEditorThresholdEffect.py.

◆ onSelectPreviousAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectPreviousAutoThresholdMethod (   self)

Definition at line 510 of file SegmentEditorThresholdEffect.py.

◆ onThresholdValuesChanged()

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

Definition at line 500 of file SegmentEditorThresholdEffect.py.

◆ onUseForPaint()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onUseForPaint (   self)

Definition at line 503 of file SegmentEditorThresholdEffect.py.

◆ preview()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.preview (   self)

Definition at line 652 of file SegmentEditorThresholdEffect.py.

◆ processInteractionEvents()

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

Definition at line 691 of file SegmentEditorThresholdEffect.py.

◆ processViewNodeEvents()

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

Definition at line 736 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 125 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 93 of file SegmentEditorThresholdEffect.py.

◆ setMRMLDefaults()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setMRMLDefaults (   self)

Definition at line 400 of file SegmentEditorThresholdEffect.py.

◆ setupOptionsFrame()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setupOptionsFrame (   self)

Definition at line 141 of file SegmentEditorThresholdEffect.py.

◆ setupPreviewDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setupPreviewDisplay (   self)

Definition at line 627 of file SegmentEditorThresholdEffect.py.

◆ updateGUIFromMRML()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateGUIFromMRML (   self)

Definition at line 409 of file SegmentEditorThresholdEffect.py.

◆ updateHistogram()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateHistogram (   self)

Definition at line 788 of file SegmentEditorThresholdEffect.py.

◆ updateHistogramBackground()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateHistogramBackground (   self)

Definition at line 894 of file SegmentEditorThresholdEffect.py.

◆ updateMRMLFromGUI()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateMRMLFromGUI (   self)

Definition at line 443 of file SegmentEditorThresholdEffect.py.

Member Data Documentation

◆ applyButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.applyButton

Definition at line 366 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdCalculator

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdCalculator

Definition at line 25 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdMethodSelectorComboBox

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdMethodSelectorComboBox

Definition at line 158 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdModeSelectorComboBox

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdModeSelectorComboBox

Definition at line 151 of file SegmentEditorThresholdEffect.py.

◆ averageFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.averageFunction

Definition at line 272 of file SegmentEditorThresholdEffect.py.

◆ averageFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.averageFunctionContainer

Definition at line 273 of file SegmentEditorThresholdEffect.py.

◆ averageFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.averageFunctionItem

Definition at line 275 of file SegmentEditorThresholdEffect.py.

◆ backgroundColor

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundColor

Definition at line 283 of file SegmentEditorThresholdEffect.py.

◆ backgroundFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundFunction

Definition at line 284 of file SegmentEditorThresholdEffect.py.

◆ backgroundFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundFunctionContainer

Definition at line 285 of file SegmentEditorThresholdEffect.py.

◆ backgroundFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.backgroundFunctionItem

Definition at line 287 of file SegmentEditorThresholdEffect.py.

◆ boxROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.boxROIButton

Definition at line 217 of file SegmentEditorThresholdEffect.py.

◆ circleROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.circleROIButton

Definition at line 224 of file SegmentEditorThresholdEffect.py.

◆ drawROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.drawROIButton

Definition at line 231 of file SegmentEditorThresholdEffect.py.

◆ histogramBrushButtonGroup

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramBrushButtonGroup

Definition at line 214 of file SegmentEditorThresholdEffect.py.

◆ histogramEventFilter

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramEventFilter

Definition at line 258 of file SegmentEditorThresholdEffect.py.

◆ histogramFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramFunction

Definition at line 249 of file SegmentEditorThresholdEffect.py.

◆ histogramFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramFunctionContainer

Definition at line 250 of file SegmentEditorThresholdEffect.py.

◆ histogramFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramFunctionItem

Definition at line 252 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerMethodButtonGroup

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerMethodButtonGroup

Lower histogram threshold buttons.

Definition at line 301 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerThresholdAverageButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerThresholdAverageButton

Definition at line 318 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerThresholdLowerButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerThresholdLowerButton

Definition at line 311 of file SegmentEditorThresholdEffect.py.

◆ histogramLowerThresholdMinimumButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramLowerThresholdMinimumButton

Definition at line 304 of file SegmentEditorThresholdEffect.py.

◆ histogramPipeline

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramPipeline

Definition at line 34 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperMethodButtonGroup

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperMethodButtonGroup

Upper histogram threshold buttons.

Definition at line 332 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperThresholdAverageButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperThresholdAverageButton

Definition at line 335 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperThresholdMaximumButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperThresholdMaximumButton

Definition at line 349 of file SegmentEditorThresholdEffect.py.

◆ histogramUpperThresholdUpperButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramUpperThresholdUpperButton

Definition at line 342 of file SegmentEditorThresholdEffect.py.

◆ histogramView

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.histogramView

Definition at line 245 of file SegmentEditorThresholdEffect.py.

◆ imageAccumulate

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.imageAccumulate

Definition at line 49 of file SegmentEditorThresholdEffect.py.

◆ lineROIButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.lineROIButton

Definition at line 238 of file SegmentEditorThresholdEffect.py.

◆ minMaxFunction

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.minMaxFunction

Definition at line 262 of file SegmentEditorThresholdEffect.py.

◆ minMaxFunctionContainer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.minMaxFunctionContainer

Definition at line 263 of file SegmentEditorThresholdEffect.py.

◆ minMaxFunctionItem

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.minMaxFunctionItem

Definition at line 265 of file SegmentEditorThresholdEffect.py.

◆ previewedSegmentID

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewedSegmentID

Definition at line 21 of file SegmentEditorThresholdEffect.py.

◆ previewPipelines

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewPipelines

Definition at line 33 of file SegmentEditorThresholdEffect.py.

◆ previewState

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewState

Definition at line 28 of file SegmentEditorThresholdEffect.py.

◆ previewStep

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewStep

Definition at line 29 of file SegmentEditorThresholdEffect.py.

◆ previewSteps

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.previewSteps

Definition at line 30 of file SegmentEditorThresholdEffect.py.

◆ reslice

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.reslice

Definition at line 41 of file SegmentEditorThresholdEffect.py.

◆ segment2DFillOpacity

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.segment2DFillOpacity

Definition at line 19 of file SegmentEditorThresholdEffect.py.

◆ segment2DOutlineOpacity

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.segment2DOutlineOpacity

Definition at line 20 of file SegmentEditorThresholdEffect.py.

◆ selectionEndPosition

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectionEndPosition

Definition at line 54 of file SegmentEditorThresholdEffect.py.

◆ selectionStartPosition

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectionStartPosition

Definition at line 53 of file SegmentEditorThresholdEffect.py.

◆ selectNextAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectNextAutoThresholdButton

Definition at line 182 of file SegmentEditorThresholdEffect.py.

◆ selectPreviousAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectPreviousAutoThresholdButton

Definition at line 177 of file SegmentEditorThresholdEffect.py.

◆ setAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setAutoThresholdButton

Definition at line 187 of file SegmentEditorThresholdEffect.py.

◆ stencil

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.stencil

Definition at line 38 of file SegmentEditorThresholdEffect.py.

◆ thresholdSlider

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.thresholdSlider

Definition at line 146 of file SegmentEditorThresholdEffect.py.

◆ thresholdSliderLabel

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.thresholdSliderLabel

Definition at line 142 of file SegmentEditorThresholdEffect.py.

◆ timer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.timer

Definition at line 27 of file SegmentEditorThresholdEffect.py.

◆ useForPaintButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.useForPaintButton

Definition at line 362 of file SegmentEditorThresholdEffect.py.


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