21#ifndef __qSlicerModuleFactoryManager_h
22#define __qSlicerModuleFactoryManager_h
29class qSlicerModuleFactoryManagerPrivate;
68 Q_INVOKABLE
bool isLoaded(
const QString& name)
const;
111 QScopedPointer<qSlicerModuleFactoryManagerPrivate>
d_ptr;
113 bool loadModule(
const QString& name,
const QString& dependee);
qSlicerAbstractCoreModule is the base class of any module in Slicer.
qSlicerAbstractModuleFactoryManager(QObject *newParent=nullptr)
void moduleLoaded(const QString &moduleName)
qSlicerModuleFactoryManager(QObject *newParent=nullptr)
Q_INVOKABLE bool isLoaded(const QString &name) const
Return true if module name has been loaded, false otherwise.
Q_INVOKABLE bool loadModules(const QStringList &modules)
void uninstantiateModule(const QString &moduleName) override
Uninstantiate a module given its moduleName.
void setAppLogic(vtkSlicerApplicationLogic *applicationLogic)
Set the application logic to pass to modules at "load" time.
void moduleUnloaded(const QString &moduleName)
Q_INVOKABLE QStringList loadedModuleNames() const
Return the list of all the loaded modules.
void setMRMLScene(vtkMRMLScene *mrmlScene)
Set the MRML scene to pass to modules at "load" time.
virtual void uninstantiateModules()
Reimplemented to ensure order.
void modulesLoaded(const QStringList &modulesNames)
bool loadModule(const QString &name)
Q_INVOKABLE qSlicerAbstractCoreModule * loadedModule(const QString &name) const
QStringList modulePaths(const QString &basePath)
Return all module paths that are direct child of basePath.
vtkSlicerApplicationLogic * appLogic() const
bool loadModule(const QString &name, const QString &dependee)
void unloadModule(const QString &name)
Unload module identified by name.
void mrmlSceneChanged(vtkMRMLScene *newScene)
void moduleAboutToBeUnloaded(const QString &moduleName)
QScopedPointer< qSlicerModuleFactoryManagerPrivate > d_ptr
qSlicerAbstractModuleFactoryManager Superclass
Q_INVOKABLE int loadModules()
void modulesUnloaded(const QStringList &modulesNames)
void modulesAboutToBeUnloaded(const QStringList &modulesNames)
~qSlicerModuleFactoryManager() override
Unloads all the modules previously loaded.
Q_INVOKABLE void unloadModules()
vtkMRMLScene * mrmlScene() const
Return the mrml scene passed to loaded modules.
void printAdditionalInfo() override
Print internal state using qDebug()
A set of MRML Nodes that supports serialization and undo/redo.