17 class ctkPluginContext;
31 static ToolPtr create(
ToolPtr base, ctkPluginContext *pluginContext);
35 virtual std::set<Type> getTypes()
const;
39 virtual const std::map<double, ToolPositionMetadata>& getMetadataHistory();
41 virtual bool getVisible()
const;
42 virtual bool isInitialized()
const;
44 virtual QString getUid()
const;
45 virtual QString getName()
const;
47 virtual bool isCalibrated()
const;
49 virtual void setCalibration_sMt(
Transform3D calibration);
52 virtual double getTimestamp()
const;
53 virtual void printSelf(std::ostream &os,
Indent indent);
55 virtual double getTooltipOffset()
const;
56 virtual void setTooltipOffset(
double val);
57 virtual std::map<QString, Vector3D> getReferencePoints()
const;
58 virtual bool hasReferencePointWithId(QString
id);
65 virtual void set_prMt(
const Transform3D& prMt,
double timestamp);
66 virtual void setVisible(
bool vis);
70 virtual bool isNull();
73 void onStateChanged();
76 void initServiceListener();
79 void checkToolValidity();
81 ctkPluginContext *mPluginContext;
84 boost::shared_ptr<ServiceTrackerListener<TrackingService> > mServiceListener;
90 #endif // CXTOOLPROXY_H