Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Base class for DataStorage inspector provider. More...
#include <QmitkDataStorageInspectorProviderBase.h>
Public Types | |
using | InspectorIDType = mitk::IDataStorageInspectorProvider::InspectorIDType |
Public Types inherited from mitk::IDataStorageInspectorProvider | |
using | InspectorIDType = std::string |
Public Member Functions | |
QmitkAbstractDataStorageInspector * | CreateInspector () const override |
returns an inspector instance represented by the provider. More... | |
InspectorIDType | GetInspectorID () const override |
std::string | GetInspectorDisplayName () const override |
std::string | GetInspectorDescription () const override |
QIcon | GetInspectorIcon () const override |
us::ServiceRegistration< mitk::IDataStorageInspectorProvider > | RegisterService (us::ModuleContext *context=us::GetModuleContext()) |
void | UnregisterService () |
QmitkDataStorageInspectorProviderBase (const std::string &id) | |
QmitkDataStorageInspectorProviderBase (const std::string &id, const std::string &displayName, const std::string &desc="", const std::string &pathToIconSVG="") | |
~QmitkDataStorageInspectorProviderBase () override | |
Public Member Functions inherited from mitk::IDataStorageInspectorProvider | |
virtual | ~IDataStorageInspectorProvider () |
Protected Member Functions | |
QmitkDataStorageInspectorProviderBase (const QmitkDataStorageInspectorProviderBase &other) | |
QmitkDataStorageInspectorProviderBase & | operator= (const QmitkDataStorageInspectorProviderBase &other)=delete |
virtual us::ServiceProperties | GetServiceProperties () const |
void | SetRanking (int ranking) |
Set the service ranking for this file reader. More... | |
int | GetRanking () const |
Additional Inherited Members | |
Static Public Member Functions inherited from mitk::IDataStorageInspectorProvider | |
static std::string | PROP_INSPECTOR_ID () |
Service property name for the inspector ID. More... | |
Base class for DataStorage inspector provider.
This class is the default implementation for a inspector provider. You can template it with the respective inspector class to directly use it.
Definition at line 34 of file QmitkDataStorageInspectorProviderBase.h.
using QmitkDataStorageInspectorProviderBase< TInspector >::InspectorIDType = mitk::IDataStorageInspectorProvider::InspectorIDType |
Definition at line 39 of file QmitkDataStorageInspectorProviderBase.h.
QmitkDataStorageInspectorProviderBase< TInspector >::QmitkDataStorageInspectorProviderBase | ( | const std::string & | id | ) |
QmitkDataStorageInspectorProviderBase< TInspector >::QmitkDataStorageInspectorProviderBase | ( | const std::string & | id, |
const std::string & | displayName, | ||
const std::string & | desc = "" , |
||
const std::string & | pathToIconSVG = "" |
||
) |
|
override |
|
protected |
|
overridevirtual |
returns an inspector instance represented by the provider.
Implements mitk::IDataStorageInspectorProvider.
|
overridevirtual |
Returns a description of the inspector type provided.
Implements mitk::IDataStorageInspectorProvider.
|
overridevirtual |
Return the display name (e.g. used in the UI) for the inspector type provided.
Implements mitk::IDataStorageInspectorProvider.
|
overridevirtual |
Returns the svg data of the icon of the inspector. Empty array indicates that no icon is defined.
Implements mitk::IDataStorageInspectorProvider.
|
overridevirtual |
Return the unique ID for the inspector type provided.
Implements mitk::IDataStorageInspectorProvider.
|
protected |
|
protectedvirtual |
|
protecteddelete |
us::ServiceRegistration<mitk::IDataStorageInspectorProvider> QmitkDataStorageInspectorProviderBase< TInspector >::RegisterService | ( | us::ModuleContext * | context = us::GetModuleContext() | ) |
|
protected |
Set the service ranking for this file reader.
Default is zero and should only be chosen differently for a reason. The ranking is used to determine which provider to use if several equivalent providers have been found. It may be used to replace a default provider from MITK in your own project.
void QmitkDataStorageInspectorProviderBase< TInspector >::UnregisterService | ( | ) |