16 #ifndef __mitkKinectV2Activator_h
17 #define __mitkKinectV2Activator_h
41 void Load(us::ModuleContext* context)
44 KinectV2DeviceFactory* KinectV2Factory =
new KinectV2DeviceFactory();
46 KinectV2FactoryProps[
"ToFFactoryName"] =KinectV2Factory->GetFactoryName();
47 context->RegisterService<IToFDeviceFactory>(KinectV2Factory, KinectV2FactoryProps);
48 KinectV2Factory->ConnectToFDevice();
50 m_Factories.push_back( KinectV2Factory );
53 void Unload(us::ModuleContext* )
59 if(m_Factories.size() > 0)
61 for(std::list< IToFDeviceFactory* >::iterator it = m_Factories.begin(); it != m_Factories.end(); ++it)
70 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)