41 mTrackingService(trackingService)
46 if (mTrackingService->getActiveTool())
47 this->activeToolChangedSlot(mTrackingService->getActiveTool()->getUid());
50 void ActiveToolProxy::trackingStateChanged()
56 void ActiveToolProxy::activeToolChangedSlot(
const QString& uid)
58 if (mTool && mTool->getUid() == uid)
63 disconnect(mTool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this,
64 SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)));
73 mTool = mTrackingService->getActiveTool();
77 connect(mTool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this,
78 SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)));
84 emit activeToolChanged(mTool->getUid());
85 emit toolVisible(mTool->getVisible());
86 emit toolTransformAndTimestamp(mTool->get_prMt(), mTool->getTimestamp());
87 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.