Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Member Functions | Protected Member Functions | Protected Attributes
qSlicerScriptedLoadableModuleWidget Class Reference

#include <Base/QTGUI/qSlicerScriptedLoadableModuleWidget.h>

Inheritance diagram for qSlicerScriptedLoadableModuleWidget:
Inheritance graph
[legend]
Collaboration diagram for qSlicerScriptedLoadableModuleWidget:
Collaboration graph
[legend]

Public Types

typedef qSlicerScriptedLoadableModuleWidgetPrivate Pimpl
 
typedef qSlicerAbstractModuleWidget Superclass
 
- Public Types inherited from qSlicerAbstractModuleRepresentation
typedef qSlicerObject Superclass
 

Properties

QString moduleName
 
- Properties inherited from qSlicerAbstractModuleWidget
bool isEntered
 

Public Member Functions

virtual void enter ()
 
virtual void exit ()
 
virtual double nodeEditable (vtkMRMLNode *node)
 
QString pythonSource () const
 
 qSlicerScriptedLoadableModuleWidget (QWidget *parentWidget=0)
 
Q_INVOKABLE PyObjectself () const
 Convenience method allowing to retrieve the associated scripted instance. More...
 
virtual bool setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString())
 Node editing. More...
 
bool setPythonSource (const QString &newPythonSource, const QString &className=QLatin1String(""))
 
virtual ~qSlicerScriptedLoadableModuleWidget ()
 
- Public Member Functions inherited from qSlicerAbstractModuleWidget
bool isEntered () const
 
 qSlicerAbstractModuleWidget (QWidget *parent=0)
 
virtual ~qSlicerAbstractModuleWidget ()
 
- Public Member Functions inherited from qSlicerWidget
 qSlicerWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~qSlicerWidget ()
 
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene. More...
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
 
virtual ~qSlicerObject ()
 
- Public Member Functions inherited from qSlicerAbstractModuleRepresentation
qSlicerAbstractCoreModulemodule () const
 
QString moduleName () const
 Set/Get module name. More...
 
 qSlicerAbstractModuleRepresentation ()
 
virtual ~qSlicerAbstractModuleRepresentation ()
 

Protected Member Functions

virtual void setup ()
 
- Protected Member Functions inherited from qSlicerAbstractModuleRepresentation
vtkMRMLAbstractLogiclogic () const
 

Protected Attributes

QScopedPointer< qSlicerScriptedLoadableModuleWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerAbstractModuleWidget
QScopedPointer< qSlicerAbstractModuleWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerWidget
QScopedPointer< qSlicerWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerAbstractModuleRepresentation
QScopedPointer< qSlicerAbstractModuleRepresentationPrivate > d_ptr
 

Additional Inherited Members

- Public Slots inherited from qSlicerWidget
virtual void setMRMLScene (vtkMRMLScene *scene)
 
- Signals inherited from qSlicerWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Detailed Description

Definition at line 36 of file qSlicerScriptedLoadableModuleWidget.h.

Member Typedef Documentation

◆ Pimpl

typedef qSlicerScriptedLoadableModuleWidgetPrivate qSlicerScriptedLoadableModuleWidget::Pimpl

Definition at line 43 of file qSlicerScriptedLoadableModuleWidget.h.

◆ Superclass

Definition at line 42 of file qSlicerScriptedLoadableModuleWidget.h.

Property Documentation

◆ moduleName

QString qSlicerScriptedLoadableModuleWidget::moduleName
read

Definition at line 40 of file qSlicerScriptedLoadableModuleWidget.h.

Constructor & Destructor Documentation

◆ qSlicerScriptedLoadableModuleWidget()

qSlicerScriptedLoadableModuleWidget::qSlicerScriptedLoadableModuleWidget ( QWidget *  parentWidget = 0)

◆ ~qSlicerScriptedLoadableModuleWidget()

virtual qSlicerScriptedLoadableModuleWidget::~qSlicerScriptedLoadableModuleWidget ( )
virtual

Member Function Documentation

◆ enter()

virtual void qSlicerScriptedLoadableModuleWidget::enter ( )
virtual

The enter and exit methods are called when the module panel changes. These give the module a chance to do any setup or shutdown operations as it becomes active and inactive. It is the responsibility of the module's manager to call the methods. enter() and exit() must be called when reimplementing these methods in order to have isEntered() valid.

Reimplemented from qSlicerAbstractModuleWidget.

◆ exit()

virtual void qSlicerScriptedLoadableModuleWidget::exit ( )
virtual

Reimplemented from qSlicerAbstractModuleWidget.

◆ nodeEditable()

virtual double qSlicerScriptedLoadableModuleWidget::nodeEditable ( vtkMRMLNode node)
virtual

Returns a confidence value (between 0.0 and 1.0) that defines how much this widget is suitable for editing the provided node. In general value of 0.5 should be used. If the returned value is 0 then it means the node should not be attempted to set as edited node. This node has to be overridden in child classes that want to use a non-default confidence value (for example, they look into the node contents and decide based on that if the node belongs to this module).

Reimplemented from qSlicerAbstractModuleWidget.

◆ pythonSource()

QString qSlicerScriptedLoadableModuleWidget::pythonSource ( ) const

◆ self()

Q_INVOKABLE PyObject* qSlicerScriptedLoadableModuleWidget::self ( ) const

Convenience method allowing to retrieve the associated scripted instance.

◆ setEditedNode()

virtual bool qSlicerScriptedLoadableModuleWidget::setEditedNode ( vtkMRMLNode node,
QString  role = QString(),
QString  context = QString() 
)
virtual

Node editing.

Reimplemented from qSlicerAbstractModuleWidget.

◆ setPythonSource()

bool qSlicerScriptedLoadableModuleWidget::setPythonSource ( const QString &  newPythonSource,
const QString &  className = QLatin1String("") 
)

◆ setup()

virtual void qSlicerScriptedLoadableModuleWidget::setup ( )
protectedvirtual

All initialization code (typically setupUi()) must be done in setup() The module and the logic are accessible.

Reimplemented from qSlicerAbstractModuleWidget.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerScriptedLoadableModuleWidgetPrivate> qSlicerScriptedLoadableModuleWidget::d_ptr
protected

Definition at line 63 of file qSlicerScriptedLoadableModuleWidget.h.


The documentation for this class was generated from the following file: