20 mTrackingService(trackingService)
25 if (mTrackingService->getActiveTool())
26 this->activeToolChangedSlot(mTrackingService->getActiveTool()->getUid());
29 void ActiveToolProxy::trackingStateChanged()
35 void ActiveToolProxy::activeToolChangedSlot(
const QString& uid)
37 if (mTool && mTool->getUid() == uid)
42 disconnect(mTool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this,
43 SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)));
52 mTool = mTrackingService->getActiveTool();
56 connect(mTool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this,
57 SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)));
63 emit activeToolChanged(mTool->getUid());
64 emit toolVisible(mTool->getVisible());
65 emit toolTransformAndTimestamp(mTool->get_prMt(), mTool->getTimestamp());
66 emit tooltipOffset(mTool->getTooltipOffset());
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class TrackingService > TrackingServicePtr
void activeToolChanged(const QString &uId)
Namespace for all CustusX production code.