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 void setName(QString name)
override;
78 QIcon
icon()
override;
81 const QString
helpText()
const override;
132 QScopedPointer<qSlicerSegmentEditorScriptedEffectPrivate>
d_ptr;
virtual void setMRMLDefaults()=0
virtual void interactionNodeModified(vtkMRMLInteractionNode *interactionNode)
virtual void sourceVolumeNodeChanged()
virtual bool processInteractionEvents(vtkRenderWindowInteractor *callerInteractor, unsigned long eid, qMRMLWidget *viewWidget)
virtual void updateGUIFromMRML()=0
virtual void setRequireSegments(bool requireSegments)
If this property is set to true then this effect is enabled only when the segmentation has segment(s)...
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()
Deprecated. Override sourceVolumeNodeChanged() method instead.
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