1from .AbstractScriptedSegmentEditorEffect
import *
2from .AbstractScriptedSegmentEditorLabelEffect
import *
3from .AbstractScriptedSegmentEditorPaintEffect
import *
4from .AbstractScriptedSegmentEditorAutoCompleteEffect
import *
6from .SegmentEditorDrawEffect
import *
7from .SegmentEditorFillBetweenSlicesEffect
import *
8from .SegmentEditorGrowFromSeedsEffect
import *
9from .SegmentEditorHollowEffect
import *
10from .SegmentEditorIslandsEffect
import *
11from .SegmentEditorLevelTracingEffect
import *
12from .SegmentEditorLogicalEffect
import *
13from .SegmentEditorMarginEffect
import *
14from .SegmentEditorMaskVolumeEffect
import *
15from .SegmentEditorSmoothingEffect
import *
16from .SegmentEditorThresholdEffect
import *
18from SegmentEditorEffects
import *
25 "SegmentEditorDrawEffect",
26 "SegmentEditorFillBetweenSlicesEffect",
27 "SegmentEditorGrowFromSeedsEffect",
28 "SegmentEditorHollowEffect",
29 "SegmentEditorIslandsEffect",
30 "SegmentEditorLevelTracingEffect",
31 "SegmentEditorLogicalEffect",
32 "SegmentEditorMarginEffect",
33 "SegmentEditorMaskVolumeEffect",
34 "SegmentEditorSmoothingEffect",
35 "SegmentEditorThresholdEffect",
40 import SegmentEditorEffects
44 effectsPath = SegmentEditorEffects.__path__[0].replace(
"\\",
"/")
46 import qSlicerSegmentationsEditorEffectsPythonQt
as qSlicerSegmentationsEditorEffects
48 for editorEffectName
in SegmentEditorEffects.editorEffectNames:
50 instance = qSlicerSegmentationsEditorEffects.qSlicerSegmentEditorScriptedEffect(
None)
51 effectFilename = effectsPath +
"/" + editorEffectName +
".py"
52 instance.setPythonSource(effectFilename)
53 instance.self().register()
54 except Exception
as e:
55 logging.error(
"Error instantiating " + editorEffectName +
":\n" + traceback.format_exc())