MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::USNavigationCombinedModalityPersistence Class Reference

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>

Inheritance diagram for mitk::USNavigationCombinedModalityPersistence:

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().
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ USNavigationCombinedModalityPersistence()

mitk::USNavigationCombinedModalityPersistence::USNavigationCombinedModalityPersistence ( )
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.

◆ ~USNavigationCombinedModalityPersistence()

mitk::USNavigationCombinedModalityPersistence::~USNavigationCombinedModalityPersistence ( )
overrideprotected

The destructor stores combined modalities by calling mitk::USNavigationCombinedModalityPersistence::StoreCurrentDevices().

Definition at line 48 of file mitkUSNavigationCombinedModalityPersistence.cpp.

Member Function Documentation

◆ itkNewMacro()

mitk::USNavigationCombinedModalityPersistence::itkNewMacro ( Self )

◆ mitkClassMacroItkParent()

mitk::USNavigationCombinedModalityPersistence::mitkClassMacroItkParent ( USNavigationCombinedModalityPersistence ,
itk::Object  )

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