23 #ifndef __qSlicerSegmentEditorScriptedEffect_h 24 #define __qSlicerSegmentEditorScriptedEffect_h 29 #include "qSlicerSegmentationsEditorEffectsExport.h" 36 class qSlicerSegmentEditorScriptedEffectPrivate;
56 Q_INVOKABLE QString pythonSource()
const;
60 Q_INVOKABLE
bool setPythonSource(
const QString newPythonSource);
67 virtual void setName(QString name);
78 virtual const QString
helpText()
const;
127 QScopedPointer<qSlicerSegmentEditorScriptedEffectPrivate>
d_ptr;
virtual void setMRMLDefaults()=0
virtual void interactionNodeModified(vtkMRMLInteractionNode *interactionNode)
virtual bool processInteractionEvents(vtkRenderWindowInteractor *callerInteractor, unsigned long eid, qMRMLWidget *viewWidget)
virtual void updateGUIFromMRML()=0
virtual Q_INVOKABLE const QString helpText() const
Get help text for effect to be displayed in the help box.
Abstract class for segment editor effects.
virtual void masterVolumeNodeChanged()
qSlicerSegmentEditorAbstractEffect Superclass
virtual void referenceGeometryChanged()
virtual Q_INVOKABLE void deactivate()
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
virtual QCursor createCursor(qMRMLWidget *viewWidget)
Create a cursor customized for the given effect, potentially for each view.
virtual void setupOptionsFrame()
Scripted abstract effect for implementing segment editor effects in python.
virtual void updateMRMLFromGUI()=0
virtual void setPerSegment(bool perSegment)
virtual qSlicerSegmentEditorAbstractEffect * clone()=0
Clone editor effect. Override to return a new instance of the effect sub-class.
virtual void processViewNodeEvents(vtkMRMLAbstractViewNode *callerViewNode, unsigned long eid, qMRMLWidget *viewWidget)
virtual QIcon icon()
Get icon for effect to be displayed in segment editor.
virtual void setName(QString name)
virtual void layoutChanged()
Simple mechanism to let the effects know that the layout has changed.
virtual Q_INVOKABLE void activate()
QScopedPointer< qSlicerSegmentEditorScriptedEffectPrivate > d_ptr