Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Access MITK core services. More...
#include <mitkCoreServices.h>
Access MITK core services.
This class can be used to conveniently access common MITK Core service objects. Some getter methods where implementations exist in the core library are guaranteed to return a non-NULL service object.
To ensure that CoreServices::Unget() is called after the caller has finished using a service object, you should use the CoreServicePointer helper class which calls Unget() when it goes out of scope:
Definition at line 60 of file mitkCoreServices.h.
|
static |
Get an IMimeTypeProvider instance.
context | The module context of the module getting the service. |
Definition at line 103 of file mitkCoreServices.cpp.
Referenced by mitk::FileReaderSelector::FileReaderSelector(), mitk::FileWriterSelector::FileWriterSelector(), QmitkIOUtil::GetFileOpenFilterString(), mitk::FileReaderRegistry::GetMimeTypeForFile(), mitk::FileReaderWriterBase::GetRegisteredMimeType(), mitk::IOUtil::Load(), mitk::FileReaderWriterBase::RegisterMimeType(), mitk::IOUtil::Save(), and mitk::USImageLoggingFilter::SetImageFilesExtension().
|
static |
Get an IPropertyAliases instance.
context | The module context of the module getting the service. |
Definition at line 78 of file mitkCoreServices.cpp.
Referenced by mitkPropertyAliasesTest(), mitk::PlaneGeometryDataMapper2D::SetDefaultProperties(), and mitk::SurfaceVtkMapper2D::SetDefaultProperties().
|
static |
Get an IPropertyDescriptions instance.
context | The module context of the module getting the service. |
Definition at line 83 of file mitkCoreServices.cpp.
Referenced by mitkPropertyDescriptionsTest(), and mitk::SurfaceVtkMapper3D::SetDefaultProperties().
|
static |
Get an IPropertyExtensions instance.
context | The module context of the module getting the service. |
Definition at line 88 of file mitkCoreServices.cpp.
Referenced by mitkPropertyExtensionsTest().
|
static |
Get an IPropertyFilters instance.
context | The module context of the module getting the service. |
Definition at line 93 of file mitkCoreServices.cpp.
Referenced by mitkPropertyFiltersTest(), and mitk::MultilabelObjectFactory::SetDefaultProperties().
|
static |
Get an IPropertyPersistence instance.
context | The module context of the module getting the service. |
Definition at line 98 of file mitkCoreServices.cpp.
Referenced by mitk::ItkImageIO::Read(), and mitk::ItkImageIO::Write().
|
static |
Get an IShaderRepository instance.
context | The module context of the module getting the service. |
Definition at line 71 of file mitkCoreServices.cpp.
References us::GetModuleContext(), us::ServiceTracker< S, TTT >::GetService(), and us::ServiceTracker< S, TTT >::Open().
Referenced by mitk::ShaderProperty::AddShaderTypes(), mitk::VtkMapper::ApplyShaderProperties(), mitk::FiberBundleMapper2D::SetDefaultProperties(), mitk::SurfaceVtkMapper3D::SetDefaultPropertiesForVtkProperty(), and mitk::VtkMapper::VtkMapperLocalStorage::VtkMapperLocalStorage().
|
inlinestatic |
Unget a previously acquired service instance.
service | The service instance to be released. |
true
if ungetting the service was successful, false
otherwise. Definition at line 118 of file mitkCoreServices.h.
Referenced by mitk::CoreServicePointer< S >::~CoreServicePointer().