18 mTrackingService(trackingService)
22 this->activeToolChanged();
25 void DoublePropertyTimeCalibration::activeToolChanged()
29 ToolPtr newTool = mTrackingService->getFirstProbe();
30 if (!newTool || !newTool->getProbe())
51 if (!mTool || !mTool->getProbe())
53 return mTool->getProbe()->getProbeDefinition().getTemporalCalibration();
58 return "Set a temporal shift to add to input probe frames (the frames will be stored with this shift applied).\n" 59 "Changes done here will NOT be saved.";
66 mTool->getProbe()->setTemporalCalibration(val);
DoublePropertyTimeCalibration(TrackingServicePtr trackingService)
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
boost::shared_ptr< class TrackingService > TrackingServicePtr
virtual double getValue() const
get the data value.
Utility class for describing a bounded numeric range.
static DoublePropertyBasePtr New(TrackingServicePtr trackingService)
DoubleRange getValueRange() const
void activeToolChanged(const QString &uId)
void sectorChanged()
< Return a ProbeSectorPtr for the given uid. Use 'active' to get the default.
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual bool setValue(double val)
set the data value.
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr