23 #ifndef __qSlicerSegmentEditorScriptedLabelEffect_h 24 #define __qSlicerSegmentEditorScriptedLabelEffect_h 29 #include "qSlicerSegmentationsEditorEffectsExport.h" 36 class qSlicerSegmentEditorScriptedLabelEffectPrivate;
58 Q_INVOKABLE QString pythonSource()
const;
62 Q_INVOKABLE
bool setPythonSource(
const QString newPythonSource);
69 void setName(QString name)
override;
77 QIcon
icon()
override;
80 const QString
helpText()
const override;
129 QScopedPointer<qSlicerSegmentEditorScriptedLabelEffectPrivate>
d_ptr;
qSlicerSegmentEditorAbstractEffect * clone() override=0
virtual void interactionNodeModified(vtkMRMLInteractionNode *interactionNode)
virtual bool processInteractionEvents(vtkRenderWindowInteractor *callerInteractor, unsigned long eid, qMRMLWidget *viewWidget)
qSlicerSegmentEditorAbstractLabelEffect Superclass
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.
void updateMRMLFromGUI() override
Update parameter set node from user interface.
void referenceGeometryChanged() override
Perform actions needed on reference geometry change.
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.
Scripted abstract effect for implementing label effects in python.
QScopedPointer< qSlicerSegmentEditorScriptedLabelEffectPrivate > d_ptr
virtual void setPerSegment(bool perSegment)
void masterVolumeNodeChanged() override
Perform actions needed on master volume change.
void setupOptionsFrame() override
Create options frame widgets, make connections, and add them to the main options frame using...
Base class for all "label" effects.
virtual void processViewNodeEvents(vtkMRMLAbstractViewNode *callerViewNode, unsigned long eid, qMRMLWidget *viewWidget)
void setMRMLDefaults() override
Set default parameters in the parameter MRML node.
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()
void updateGUIFromMRML() override
Update user interface from parameter set node.