23 #ifndef __qSlicerSegmentEditorScriptedPaintEffect_h 24 #define __qSlicerSegmentEditorScriptedPaintEffect_h 29 #include "qSlicerSegmentationsEditorEffectsExport.h" 36 class qSlicerSegmentEditorScriptedPaintEffectPrivate;
59 Q_INVOKABLE QString pythonSource()
const;
63 Q_INVOKABLE
bool setPythonSource(
const QString newPythonSource);
70 void setName(QString name)
override;
75 QIcon
icon()
override;
78 const QString
helpText()
const override;
116 QScopedPointer<qSlicerSegmentEditorScriptedPaintEffectPrivate>
d_ptr;
QScopedPointer< qSlicerSegmentEditorScriptedPaintEffectPrivate > d_ptr
void setMRMLDefaults() override
Set default parameters in the parameter MRML node.
void referenceGeometryChanged() override
Perform actions needed on reference geometry change.
qSlicerSegmentEditorAbstractEffect * clone() override
Clone editor effect.
Scripted abstract effect for implementing paint effects in python.
Abstract class for segment editor effects.
virtual QCursor createCursor(qMRMLWidget *viewWidget)
Create a cursor customized for the given effect, potentially for each view.
qSlicerSegmentEditorPaintEffect Superclass
void updateMRMLFromGUI() override
Update parameter set node from user interface.
QIcon icon() override
Get icon for effect to be displayed in segment editor.
void setupOptionsFrame() override
Create options frame widgets, make connections, and add them to the main options frame using...
virtual Q_INVOKABLE void paintApply(qMRMLWidget *viewWidget)
Paint labelmap.
void masterVolumeNodeChanged() override
Perform actions needed on master volume change.
void deactivate() override
Perform actions to deactivate the effect (such as destroy actors, etc.)
void updateGUIFromMRML() override
Update user interface from parameter set node.
const QString helpText() const override
Get help text for effect to be displayed in the help box.
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()