Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
us::ModuleRegistry Class Reference

#include <usModuleRegistry.h>

Static Public Member Functions

static ModuleGetModule (long id)
 
static ModuleGetModule (const std::string &name)
 
static std::vector< Module * > GetModules ()
 
static std::vector< Module * > GetLoadedModules ()
 
static void Register (ModuleInfo *info)
 
static void UnRegister (const ModuleInfo *info)
 

Detailed Description

Here we handle all the modules that are loaded in the framework.

Definition at line 41 of file usModuleRegistry.h.

Member Function Documentation

std::vector< Module * > us::ModuleRegistry::GetLoadedModules ( )
static

Get all modules currently in module state LOADED.

Returns
A list which is filled with all modules in state LOADED

Definition at line 188 of file usModuleRegistry.cpp.

Module * us::ModuleRegistry::GetModule ( long  id)
static

Get the module that has the specified module identifier.

Parameters
idThe identifier of the module to get.
Returns
Module or null if the module was not found.

Definition at line 145 of file usModuleRegistry.cpp.

Referenced by mitk::Gizmo::AddGizmoToNode(), mitk::BindDispatcherInteractor::BindDispatcherInteractor(), QmitkFreeSurferParcellationHandler::QmitkFreeSurferParcellationHandler(), and QmitkBoundingObjectWidget::SelectionChanged().

Module * us::ModuleRegistry::GetModule ( const std::string &  name)
static

Get the module that has specified module name.

Parameters
nameThe name of the module to get.
Returns
Module or null.

Definition at line 161 of file usModuleRegistry.cpp.

std::vector< Module * > us::ModuleRegistry::GetModules ( )
static

Get all known modules.

Returns
A list which is filled with all known modules.

Definition at line 173 of file usModuleRegistry.cpp.

void us::ModuleRegistry::Register ( ModuleInfo info)
static

Table of all installed modules in this framework. Key is the module id. Lock for protecting the modules object Lock for protecting the register count

Definition at line 75 of file usModuleRegistry.cpp.

References us::Module::GetModuleId().

void us::ModuleRegistry::UnRegister ( const ModuleInfo info)
static

Definition at line 131 of file usModuleRegistry.cpp.

References us::ModuleInfo::id, and us::ModuleInfo::name.


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