43 ToolImpl(base->getUid(),
"playback "+base->getName()), mBase(base),
47 connect(mTime.get(), SIGNAL(changed()),
this, SLOT(timeChangedSlot()));
57 void PlaybackTool::timeChangedSlot()
59 QDateTime time = mTime->getTime();
60 qint64 time_ms = time.toMSecsSinceEpoch();
63 if (positions->empty())
67 TimedTransformMap::iterator lastSample = positions->lower_bound(time_ms);
68 if (lastSample!=positions->begin())
73 bool visible = (lastSample!=positions->end()) && (fabs(time_ms - lastSample->first) < timeout);
76 if (mVisible!=visible)
85 m_rMpr = lastSample->second;
86 mTimestamp = lastSample->first;
93 return mBase->getTypes();
98 return mBase->getGraphicsPolyData();
123 return mBase->isCalibrated();
134 return mBase->getTooltipOffset();
140 mBase->setTooltipOffset(val);
145 return mBase->getCalibration_sMt();
150 return mBase->getReferencePoints();
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
vtkSmartPointer< class vtkPolyData > vtkPolyDataPtr
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
boost::shared_ptr< class Tool > ToolPtr