22 ToolImpl(base->getUid(),
"playback "+base->getName()), mBase(base),
26 connect(mTime.get(), SIGNAL(changed()),
this, SLOT(timeChangedSlot()));
36 void PlaybackTool::timeChangedSlot()
38 QDateTime time = mTime->getTime();
39 qint64 time_ms = time.toMSecsSinceEpoch();
42 if (positions->empty())
46 TimedTransformMap::iterator lastSample = positions->lower_bound(time_ms);
47 if (lastSample!=positions->begin())
52 bool visible = (lastSample!=positions->end()) && (fabs(time_ms - lastSample->first) < timeout);
55 if (mVisible!=visible)
64 m_rMpr = lastSample->second;
65 mTimestamp = lastSample->first;
72 return mBase->getTypes();
77 return mBase->getGraphicsPolyData();
102 return mBase->isCalibrated();
113 return mBase->getTooltipOffset();
119 mBase->setTooltipOffset(val);
124 return mBase->getCalibration_sMt();
129 return mBase->getReferencePoints();
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr