16 #ifndef __mitkKinectActivator_h
17 #define __mitkKinectActivator_h
42 void Load(us::ModuleContext* context)
45 KinectDeviceFactory* kinectFactory =
new KinectDeviceFactory();
47 kinectFactoryProps[
"ToFFactoryName"] =kinectFactory->GetFactoryName();
48 context->RegisterService<IToFDeviceFactory>(kinectFactory, kinectFactoryProps);
49 kinectFactory->ConnectToFDevice();
51 m_Factories.push_back( kinectFactory );
57 void Unload(us::ModuleContext* )
67 if(m_Factories.size() > 0)
69 for(std::list< IToFDeviceFactory* >::iterator it = m_Factories.begin(); it != m_Factories.end(); ++it)
80 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)