コード例 #1
0
 def clone(self):
   import qSlicerSegmentationsEditorEffectsPythonQt as effects
   clonedEffect = effects.qSlicerSegmentEditorScriptedLabelEffect(None)
   clonedEffect.setPythonSource(__file__.replace('\\','/'))
   return clonedEffect
コード例 #2
0
 def clone(self):
     import qSlicerSegmentationsEditorEffectsPythonQt as effects
     clonedEffect = effects.qSlicerSegmentEditorScriptedLabelEffect(None)
     clonedEffect.setPythonSource(__file__.replace('\\', '/'))
     return clonedEffect
コード例 #3
0
 def clone(self):
   import qSlicerSegmentationsEditorEffectsPythonQt as effects
   clonedEffect = effects.qSlicerSegmentEditorScriptedLabelEffect(None)
   clonedEffect.setPythonSource(SegmentEditorDrawEffect.filePath)
   return clonedEffect