16 #ifndef __mitkToFHardwareModuleActivator_h
17 #define __mitkToFHardwareModuleActivator_h
39 void Load(us::ModuleContext* context)
override
42 ToFCameraMITKPlayerDeviceFactory* toFCameraMITKPlayerDeviceFactory =
new ToFCameraMITKPlayerDeviceFactory();
44 mitkPlayerFactoryProps[
"ToFFactoryName"] = toFCameraMITKPlayerDeviceFactory->GetFactoryName();
45 context->RegisterService<IToFDeviceFactory>(toFCameraMITKPlayerDeviceFactory, mitkPlayerFactoryProps);
47 toFCameraMITKPlayerDeviceFactory->ConnectToFDevice();
49 m_Factories.push_back( toFCameraMITKPlayerDeviceFactory );
52 void Unload(us::ModuleContext* )
override
56 ~ToFHardwareActivator()
58 if(m_Factories.size() > 0)
60 for(std::list< IToFDeviceFactory* >::iterator it = m_Factories.begin(); it != m_Factories.end(); ++it)
69 std::list< IToFDeviceFactory* > m_Factories;
DataCollection - Class to facilitate loading/accessing structured data.
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)