22 std::vector<ToolFileParser::ToolInternalStructurePtr> toolStructures,
25 this->setObjectName(
"org.custusx.core.tracking.igstk");
26 mInitTrackerStructure = trackerStructure;
27 mInitToolStructures = toolStructures;
28 mInitReferenceToolStructure = referenceToolStructure;
37 return mManager->getTools();
42 return mManager->getRefereceTool();
55 void IgstkTrackerThread::run()
65 void IgstkTrackerThread::configure()
67 mManager.reset(
new IgstkToolManager(mInitTrackerStructure, mInitToolStructures, mInitReferenceToolStructure));
69 connect(mManager.get(), SIGNAL(
tracking(
bool)),
this, SIGNAL(
tracking(
bool)));
70 connect(mManager.get(), SIGNAL(
error()),
this, SIGNAL(
error()));
71 connect(
this, SIGNAL(
requestInitialize(
bool)), mManager.get(), SLOT(initializeSlot(
bool)));
72 connect(
this, SIGNAL(
requestTrack(
bool)), mManager.get(), SLOT(trackSlot(
bool)));
77 void IgstkTrackerThread::deconfigure()
79 QObject::disconnect(mManager.get());