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());
IgstkTrackerThread(ToolFileParser::TrackerInternalStructure trackerStructure, std::vector< ToolFileParser::ToolInternalStructurePtr > toolStructures, ToolFileParser::ToolInternalStructurePtr referenceToolStructure)
virtual ~IgstkTrackerThread()
boost::shared_ptr< class IgstkTool > IgstkToolPtr
void initialize(bool on)
connects to the hardware. Threadsafe.
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.
Namespace for all CustusX production code.