Slicer  4.10
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 clearPreviewDisplay (self)
 
def clone (self)
 
def createCursor (self, widget)
 
def deactivate (self)
 
def helpText (self)
 
def icon (self)
 
def layoutChanged (self)
 
def masterVolumeNodeChanged (self)
 
def onApply (self)
 
def onAutoThreshold (self)
 
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 updateMRMLFromGUI (self)
 

Public Attributes

 applyButton
 
 autoThresholdCalculator
 
 autoThresholdMethodSelectorComboBox
 
 autoThresholdModeSelectorComboBox
 
 previewedSegmentID
 
 previewPipelines
 
 previewState
 
 previewStep
 
 previewSteps
 
 segment2DFillOpacity
 
 segment2DOutlineOpacity
 
 selectNextAutoThresholdButton
 
 selectPreviousAutoThresholdButton
 
 setAutoThresholdButton
 
 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 55 of file SegmentEditorThresholdEffect.py.

◆ autoThreshold()

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

Definition at line 294 of file SegmentEditorThresholdEffect.py.

◆ clearPreviewDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clearPreviewDisplay (   self)

Definition at line 377 of file SegmentEditorThresholdEffect.py.

◆ clone()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.clone (   self)

Definition at line 36 of file SegmentEditorThresholdEffect.py.

◆ createCursor()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.createCursor (   self,
  widget 
)

Definition at line 201 of file SegmentEditorThresholdEffect.py.

◆ deactivate()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.deactivate (   self)

Definition at line 65 of file SegmentEditorThresholdEffect.py.

◆ helpText()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.helpText (   self)

Definition at line 48 of file SegmentEditorThresholdEffect.py.

◆ icon()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.icon (   self)

Definition at line 42 of file SegmentEditorThresholdEffect.py.

◆ layoutChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.layoutChanged (   self)

Definition at line 218 of file SegmentEditorThresholdEffect.py.

◆ masterVolumeNodeChanged()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.masterVolumeNodeChanged (   self)

Definition at line 205 of file SegmentEditorThresholdEffect.py.

◆ onApply()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onApply (   self)

Definition at line 343 of file SegmentEditorThresholdEffect.py.

◆ onAutoThreshold()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onAutoThreshold (   self)

Definition at line 289 of file SegmentEditorThresholdEffect.py.

◆ onSelectedAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectedAutoThresholdMethod (   self)

Definition at line 284 of file SegmentEditorThresholdEffect.py.

◆ onSelectNextAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectNextAutoThresholdMethod (   self)

Definition at line 279 of file SegmentEditorThresholdEffect.py.

◆ onSelectPreviousAutoThresholdMethod()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onSelectPreviousAutoThresholdMethod (   self)

Definition at line 274 of file SegmentEditorThresholdEffect.py.

◆ onThresholdValuesChanged()

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

Definition at line 264 of file SegmentEditorThresholdEffect.py.

◆ onUseForPaint()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.onUseForPaint (   self)

Definition at line 267 of file SegmentEditorThresholdEffect.py.

◆ preview()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.preview (   self)

Definition at line 407 of file SegmentEditorThresholdEffect.py.

◆ processInteractionEvents()

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

Definition at line 221 of file SegmentEditorThresholdEffect.py.

◆ processViewNodeEvents()

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

Definition at line 224 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 104 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 72 of file SegmentEditorThresholdEffect.py.

◆ setMRMLDefaults()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setMRMLDefaults (   self)

Definition at line 227 of file SegmentEditorThresholdEffect.py.

◆ setupOptionsFrame()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setupOptionsFrame (   self)

Definition at line 120 of file SegmentEditorThresholdEffect.py.

◆ setupPreviewDisplay()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setupPreviewDisplay (   self)

Definition at line 382 of file SegmentEditorThresholdEffect.py.

◆ updateGUIFromMRML()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateGUIFromMRML (   self)

Definition at line 233 of file SegmentEditorThresholdEffect.py.

◆ updateMRMLFromGUI()

def SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.updateMRMLFromGUI (   self)

Definition at line 249 of file SegmentEditorThresholdEffect.py.

Member Data Documentation

◆ applyButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.applyButton

Definition at line 187 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdCalculator

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdCalculator

Definition at line 25 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdMethodSelectorComboBox

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdMethodSelectorComboBox

Definition at line 137 of file SegmentEditorThresholdEffect.py.

◆ autoThresholdModeSelectorComboBox

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.autoThresholdModeSelectorComboBox

Definition at line 130 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.

◆ segment2DFillOpacity

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.segment2DFillOpacity

Definition at line 19 of file SegmentEditorThresholdEffect.py.

◆ segment2DOutlineOpacity

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.segment2DOutlineOpacity

Definition at line 20 of file SegmentEditorThresholdEffect.py.

◆ selectNextAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectNextAutoThresholdButton

Definition at line 161 of file SegmentEditorThresholdEffect.py.

◆ selectPreviousAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.selectPreviousAutoThresholdButton

Definition at line 156 of file SegmentEditorThresholdEffect.py.

◆ setAutoThresholdButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.setAutoThresholdButton

Definition at line 166 of file SegmentEditorThresholdEffect.py.

◆ thresholdSlider

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.thresholdSlider

Definition at line 125 of file SegmentEditorThresholdEffect.py.

◆ thresholdSliderLabel

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.thresholdSliderLabel

Definition at line 121 of file SegmentEditorThresholdEffect.py.

◆ timer

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.timer

Definition at line 27 of file SegmentEditorThresholdEffect.py.

◆ useForPaintButton

SegmentEditorThresholdEffect.SegmentEditorThresholdEffect.useForPaintButton

Definition at line 183 of file SegmentEditorThresholdEffect.py.


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