12#ifndef __mitkKinectActivator_h
13#define __mitkKinectActivator_h
16#include <usServiceRegistration.h>
17#include <usModuleActivator.h>
18#include <usModuleContext.h>
22#include "mitkToFConfig.h"
38 void Load(us::ModuleContext* context)
42 us::ServiceProperties kinectFactoryProps;
43 kinectFactoryProps[
"ToFFactoryName"] =kinectFactory->
GetFactoryName();
47 m_Factories.push_back( kinectFactory );
63 if(m_Factories.size() > 0)
65 for(std::list< IToFDeviceFactory* >::iterator it = m_Factories.begin(); it != m_Factories.end(); ++it)
76 std::list< IToFDeviceFactory* > m_Factories;
The KinectActivator class This is the module activator for the "mitkKinectModule" module....
void Load(us::ModuleContext *context)
Load This method is automatically called, when the kinect module is activated. It will automatically ...
~KinectActivator()
Default destructor which deletes all registered factories. Usually, there should never be more than o...
void Unload(us::ModuleContext *)
Unload called when the module is unloaded.
KinectDeviceFactory is an implementation of the factory pattern to generate Microsoft Kinect devices....
std::string GetFactoryName()
Get the name of the factory, here for the Kinect.
ToFCameraDevice::Pointer ConnectToFDevice()
ConnectToFDevice Use this method to connect a device.
This is the base of class for all ToFDeviceFactories.