|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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();
Namespace for all CustusX production code.
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
boost::shared_ptr< class Tool > ToolPtr