MITK-IGT
IGT Extension of MITK
|
Persistence for the mitk::CombinedModality micro services. The micro services are saved into QSettings on destruction of this objects and they are loaded again when their NavigationDataSource and USDevice will become registered as a micro service. More...
#include <mitkUSNavigationCombinedModalityPersistence.h>
Public Member Functions | |
mitkClassMacroItkParent (USNavigationCombinedModalityPersistence, itk::Object) | |
itkNewMacro (Self) | |
Protected Member Functions | |
USNavigationCombinedModalityPersistence () | |
Restores combined modality from QSettings and registers on service events. Combined modalities are registered as a micro service as soon as their NavigationDataSource and USDevice are available. The constructor adds mitk::USNavigationCombinedModalityPersistence::OnServiceEvent() as a listener to the module context to be notified when micro services become available. | |
~USNavigationCombinedModalityPersistence () override | |
The destructor stores combined modalities by calling mitk::USNavigationCombinedModalityPersistence::StoreCurrentDevices(). | |
Persistence for the mitk::CombinedModality micro services. The micro services are saved into QSettings on destruction of this objects and they are loaded again when their NavigationDataSource and USDevice will become registered as a micro service.
The NavigationDataSources are identified by their name and the USDevices are identified by their manufacturer, model and comment.
For using this persistence class for combined modalites an object of this class has to be created an held as long as newly created combined modalities should be made persistent.
Definition at line 39 of file mitkUSNavigationCombinedModalityPersistence.h.
|
protected |
Restores combined modality from QSettings and registers on service events. Combined modalities are registered as a micro service as soon as their NavigationDataSource and USDevice are available. The constructor adds mitk::USNavigationCombinedModalityPersistence::OnServiceEvent() as a listener to the module context to be notified when micro services become available.
Definition at line 30 of file mitkUSNavigationCombinedModalityPersistence.cpp.
|
overrideprotected |
The destructor stores combined modalities by calling mitk::USNavigationCombinedModalityPersistence::StoreCurrentDevices().
Definition at line 48 of file mitkUSNavigationCombinedModalityPersistence.cpp.
mitk::USNavigationCombinedModalityPersistence::itkNewMacro | ( | Self | ) |
mitk::USNavigationCombinedModalityPersistence::mitkClassMacroItkParent | ( | USNavigationCombinedModalityPersistence | , |
itk::Object | ) |