12 #ifndef CXOPENIGTLINKTOOL_H
13 #define CXOPENIGTLINKTOOL_H
15 #include "org_custusx_core_openigtlink3_Export.h"
20 #include <boost/shared_ptr.hpp>
22 #include "igtlioBaseConverter.h"
61 virtual bool getVisible()
const;
62 virtual bool isInitialized()
const;
63 virtual QString getUid()
const;
64 virtual QString getName()
const;
66 virtual double getTimestamp()
const;
67 virtual double getTooltipOffset()
const;
68 virtual void setTooltipOffset(
double val);
70 virtual bool isCalibrated()
const;
75 virtual void setVisible(
bool vis);
77 bool doIdCorrespondToTool(QString openIGTLinkId);
79 bool applyReference();
83 void toolTransformAndTimestampSlot(
Transform3D prMs,
double timestampMS);
84 void calculateTpsSlot();
85 void toolVisibleSlot(
bool);
92 qint64 mLastReceivedPositionTime;
93 bool mPrintedWarningAboutTimeStampMismatch;
99 void calculateVisible();
100 void checkTimestampMismatch();
101 void printWarningAboutTimestampMismatch(
double diff);