14 #include <boost/bind.hpp>
15 #include <ctkPluginContext.h>
28 mPluginContext(pluginContext),
31 this->initServiceListener();
34 void TrackingServiceProxy::initServiceListener()
38 boost::bind(&TrackingServiceProxy::onServiceAdded,
this, _1),
40 boost::bind(&TrackingServiceProxy::onServiceRemoved,
this, _1)
42 mServiceListener->open();
44 void TrackingServiceProxy::onServiceAdded(TrackingService* service)
46 mTrackingService.reset(service, null_deleter());
55 void TrackingServiceProxy::onServiceRemoved(TrackingService *service)
68 return mTrackingService->isNull();
73 return mTrackingService->getState();
78 mTrackingService->setState(val);
83 return mTrackingService->getTool(uid);
88 return mTrackingService->getActiveTool();
93 mTrackingService->setActiveTool(uid);
98 mTrackingService->clearActiveTool();
103 return mTrackingService->getFirstProbe();
108 return mTrackingService->getReferenceTool();
113 return mTrackingService->getManualTool();
118 return mTrackingService->getTools();
123 return mTrackingService->isPlaybackMode();
128 mTrackingService->setPlaybackMode(controller);
133 return mTrackingService->getSessionHistory(startTime, stopTime);
138 mTrackingService->runDummyTool(tool);
143 return mTrackingService->getConfigurations();
153 return mTrackingService->getConfiguration();
158 mTrackingService->setCurrentTrackingSystemImplementation(trackingSystemImplementation);
163 return mTrackingService->getCurrentTrackingSystemImplementation();
168 mTrackingService->installTrackingSystem(system);
173 mTrackingService->unInstallTrackingSystem(system);
178 return mTrackingService->getTrackingSystems();
183 return mTrackingService->resetTimeSynchronization();