Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Base/QTGUI/qSlicerAbstractModule.h>
Public Types | |
typedef qSlicerAbstractCoreModule | Superclass |
Public Types inherited from qSlicerAbstractCoreModule | |
typedef QObject | Superclass |
Properties | |
QIcon | icon |
QImage | logo |
Properties inherited from qSlicerAbstractCoreModule | |
QString | name |
QString | title |
QStringList | categories |
int | index |
bool | hidden |
bool | widgetRepresentationCreationEnabled |
QString | helpText |
QString | acknowledgementText |
QStringList | contributors |
QString | slicerWikiUrl |
QString | defaultDocumentationLink |
QStringList | dependencies |
QString | path |
bool | isInstalled |
bool | isBuiltIn |
QStringList | associatedNodeTypes |
Public Member Functions | |
Q_INVOKABLE QAction * | action () |
virtual QIcon | icon () const |
virtual QImage | logo () const |
The logo of the module, the credits given by the grants or instution. More... | |
qSlicerAbstractModule (QObject *parent=nullptr) | |
~qSlicerAbstractModule () override | |
Public Member Functions inherited from qSlicerAbstractCoreModule | |
qSlicerAbstractCoreModule (QObject *parent=nullptr) | |
~qSlicerAbstractCoreModule () override | |
virtual void | printAdditionalInfo () |
QString | slicerWikiUrl () const |
Convenience method to return slicer wiki URL. More... | |
QString | defaultDocumentationLink () const |
void | initialize (vtkSlicerApplicationLogic *appLogic) |
virtual QString | name () const |
virtual void | setName (const QString &name) |
virtual QString | title () const =0 |
virtual QStringList | categories () const |
virtual int | index () const |
Return the category index of the module. More... | |
virtual bool | isHidden () const |
virtual QStringList | contributors () const |
Return the contributors of the module. More... | |
virtual QString | helpText () const |
virtual QString | acknowledgementText () const |
bool | isWidgetRepresentationCreationEnabled () const |
void | setWidgetRepresentationCreationEnabled (bool value) |
qSlicerAbstractModuleRepresentation * | widgetRepresentation () |
qSlicerAbstractModuleRepresentation * | createNewWidgetRepresentation () |
void | setAppLogic (vtkSlicerApplicationLogic *appLogic) |
vtkSlicerApplicationLogic * | appLogic () const |
vtkMRMLAbstractLogic * | moduleLogic (const QString &moduleName) const |
Convenience method for getting another module's logic from appLogic. More... | |
Q_INVOKABLE vtkMRMLAbstractLogic * | logic () |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
Return a pointer on the MRML scene. More... | |
virtual QStringList | dependencies () const |
QString | path () const |
void | setPath (const QString &newPath) |
bool | isInstalled () const |
void | setInstalled (bool value) |
bool | isBuiltIn () const |
void | setBuiltIn (bool value) |
virtual QStringList | associatedNodeTypes () const |
Return node types associated with this module (e.g., node types this module can edit) More... | |
Protected Attributes | |
QScopedPointer< qSlicerAbstractModulePrivate > | d_ptr |
Protected Attributes inherited from qSlicerAbstractCoreModule | |
QScopedPointer< qSlicerAbstractCoreModulePrivate > | d_ptr |
Additional Inherited Members | |
Public Slots inherited from qSlicerAbstractCoreModule | |
virtual void | setMRMLScene (vtkMRMLScene *) |
Protected Member Functions inherited from qSlicerAbstractCoreModule | |
virtual void | setup ()=0 |
All initialization code should be done in the setup. More... | |
virtual qSlicerAbstractModuleRepresentation * | createWidgetRepresentation ()=0 |
Create and return a widget representation for the module. More... | |
virtual vtkMRMLAbstractLogic * | createLogic ()=0 |
Overrides qSlicerAbstractCoreModule and adds an icon property to the module and associates a QAction to it.
Definition at line 40 of file qSlicerAbstractModule.h.
Definition at line 50 of file qSlicerAbstractModule.h.
|
read |
This property holds the module's icon. It is also the icon of the module QAction (see action()).
Definition at line 46 of file qSlicerAbstractModule.h.
|
read |
Definition at line 47 of file qSlicerAbstractModule.h.
qSlicerAbstractModule::qSlicerAbstractModule | ( | QObject * | parent = nullptr | ) |
|
override |
Q_INVOKABLE QAction* qSlicerAbstractModule::action | ( | ) |
Returns then associated QAction of the module. It contains all the information relative to the module. The text (QAction::text()) and icon (QAction::icon()) are the module title and icon; the name of the module is saved in the QAction's data (QAction::data().toString()) and the module index is the QAction property "index" (QAction::property("index").toInt()). It is typically used in the module selector menu; triggering the QAction will make the module current.
|
virtual |
Icon of the module. Anytime a graphical representation of the module is needed, the icon is used. It's the icon shown in the module selector as well as in the frequently used module toolbar (if any).
Reimplemented in qSlicerScriptedLoadableModule, qSlicerMarkupsModule, qSlicerSequencesModule, qSlicerSegmentationsModule, qSlicerSubjectHierarchyModule, qSlicerVolumeRenderingModule, qSlicerModelsModule, qSlicerReformatModule, qSlicerUnitsModule, qSlicerViewControllersModule, qSlicerWelcomeModule, qSlicerPlotsModule, qSlicerTablesModule, qSlicerVolumesModule, qSlicerTransformsModule, qSlicerCamerasModule, qSlicerColorsModule, qSlicerDataModule, qSlicerTextsModule, qSlicerAnnotationsModule, qSlicerSceneViewsModule, and qSlicerCropVolumeModule.
|
virtual |
The logo of the module, the credits given by the grants or instution.
Reimplemented in qSlicerCLIModule.
|
protected |
Definition at line 72 of file qSlicerAbstractModule.h.