27 mTrackingService = trackingService;
28 mDataManager = dataManager;
43 void SpaceListenerImpl::reconnect()
55 void SpaceListenerImpl::doConnect()
66 if (data && !data->getSpace().isEmpty())
68 connect(data.get(), SIGNAL(transformChanged()),
this, SIGNAL(
changed()));
69 connect(mDataManager.get(), SIGNAL(dataAddedOrRemoved()),
this, SIGNAL(
changed()));
78 connect(mActiveTool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this, SIGNAL(
changed()));
79 connect(mActiveTool.get(), SIGNAL(tooltipOffset(
double)),
this, SIGNAL(
changed()));
86 connect(tool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this, SIGNAL(
changed()));
87 connect(tool.get(), SIGNAL(tooltipOffset(
double)),
this, SIGNAL(
changed()));
90 connect(mDataManager.get(), SIGNAL(rMprChanged()),
this, SIGNAL(
changed()));
95 connect(mDataManager.get(), SIGNAL(rMprChanged()),
this, SIGNAL(
changed()));
99 void SpaceListenerImpl::doDisconnect()
110 disconnect(data.get(), SIGNAL(transformChanged()),
this, SIGNAL(
changed()));
111 disconnect(mDataManager.get(), SIGNAL(dataAddedOrRemoved()),
this, SIGNAL(
changed()));
119 disconnect(mActiveTool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this, SIGNAL(
changed()));
120 disconnect(mActiveTool.get(), SIGNAL(tooltipOffset(
double)),
this, SIGNAL(
changed()));
128 disconnect(tool.get(), SIGNAL(toolTransformAndTimestamp(
Transform3D,
double)),
this, SIGNAL(
changed()));
129 disconnect(tool.get(), SIGNAL(tooltipOffset(
double)),
this, SIGNAL(
changed()));
132 disconnect(mDataManager.get(), SIGNAL(rMprChanged()),
this, SIGNAL(
changed()));
137 disconnect(mDataManager.get(), SIGNAL(rMprChanged()),
this, SIGNAL(
changed()));