43 std::vector<IgstkTool::InternalStructure> toolStructures,
46 this->setObjectName(
"org.custusx.core.tracking.igstk");
47 mInitTrackerStructure = trackerStructure;
48 mInitToolStructures = toolStructures;
49 mInitReferenceToolStructure = referenceToolStructure;
58 return mManager->getTools();
63 return mManager->getRefereceTool();
76 void IgstkTrackerThread::run()
86 void IgstkTrackerThread::configure()
88 mManager.reset(
new IgstkToolManager(mInitTrackerStructure, mInitToolStructures, mInitReferenceToolStructure));
90 connect(mManager.get(), SIGNAL(
tracking(
bool)),
this, SIGNAL(
tracking(
bool)));
91 connect(mManager.get(), SIGNAL(
error()),
this, SIGNAL(
error()));
92 connect(
this, SIGNAL(
requestInitialize(
bool)), mManager.get(), SLOT(initializeSlot(
bool)));
93 connect(
this, SIGNAL(
requestTrack(
bool)), mManager.get(), SLOT(trackSlot(
bool)));
98 void IgstkTrackerThread::deconfigure()
100 QObject::disconnect(mManager.get());
virtual ~IgstkTrackerThread()
boost::shared_ptr< IgstkTool > IgstkToolPtr
void initialize(bool on)
connects to the hardware. Threadsafe.
IgstkTrackerThread(IgstkTracker::InternalStructure trackerStructure, std::vector< IgstkTool::InternalStructure > toolStructures, IgstkTool::InternalStructure referenceToolStructure)
void requestTrack(bool on)
internal signal
void track(bool on)
tracking on or off. Threadsafe.
IgstkToolPtr getRefereceTool()
ThreadSafe.
void initialized(bool on)
system is initialized
void requestInitialize(bool on)
internal signal
std::map< QString, IgstkToolPtr > getTools()
ThreadSafe.