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 virtual void setName(QString name);
80 virtual const QString
helpText()
const;
129 QScopedPointer<qSlicerSegmentEditorScriptedLabelEffectPrivate>
d_ptr;
virtual void setupOptionsFrame()
Create options frame widgets, make connections, and add them to the main options frame using...
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.
virtual void updateMRMLFromGUI()
Update parameter set node from user interface.
virtual Q_INVOKABLE void deactivate()
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
virtual void masterVolumeNodeChanged()
Perform actions needed on master volume change.
virtual void referenceGeometryChanged()
Perform actions needed on reference geometry change.
virtual QCursor createCursor(qMRMLWidget *viewWidget)
Create a cursor customized for the given effect, potentially for each view.
virtual void setMRMLDefaults()
Set default parameters in the parameter MRML node.
Scripted abstract effect for implementing label effects in python.
QScopedPointer< qSlicerSegmentEditorScriptedLabelEffectPrivate > d_ptr
virtual void setPerSegment(bool perSegment)
Base class for all "label" effects.
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()
virtual qSlicerSegmentEditorAbstractEffect * clone()=0
virtual void updateGUIFromMRML()
Update user interface from parameter set node.