16 #include "cxResourceExport.h" 21 #include <boost/shared_ptr.hpp> 33 typedef boost::shared_ptr<class Tool>
ToolPtr;
34 typedef std::map<QString, ToolPtr>
ToolMap;
61 class cxResource_EXPORT
Tool:
public QObject
67 Tool(
const QString& uid=
"",
const QString& name =
"");
92 virtual const std::map<double, ToolPositionMetadata>& getMetadataHistory() = 0;
94 virtual std::set<Type> getTypes()
const = 0;
100 return this->getTypes().count(type);
103 virtual TimedTransformMapPtr getPositionHistory() = 0;
105 virtual bool getVisible()
const = 0;
108 virtual QString getUid()
const = 0;
109 virtual QString getName()
const = 0;
111 virtual bool isCalibrated()
const = 0;
112 virtual Transform3D getCalibration_sMt()
const = 0;
116 virtual double getTimestamp()
const = 0;
117 virtual void printSelf(std::ostream &os,
Indent indent) { Q_UNUSED(os); Q_UNUSED(indent); }
124 virtual TimedTransformMap getSessionHistory(
double startTime,
double stopTime) = 0;
127 virtual void resetTrackingPositionFilter(TrackingPositionFilterPtr filter) = 0;
129 virtual void set_prMt(
const Transform3D& prMt,
double timestamp=-1) = 0;
130 virtual void setVisible(
bool vis) = 0;
132 virtual bool isNull() = 0;
133 static ToolPtr getNullObject();
140 void toolTransformAndTimestamp(Transform3D matrix,
double timestamp);
141 void toolVisible(
bool visible);
142 void tooltipOffset(
double offset);
143 void toolProbeSector();
std::string toString(T const &value)
converts any type to a string
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< Probe > ProbePtr
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
std::map< QString, ToolPtr > ToolMap
Formatting class for debug printing of the ssc library.
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
boost::shared_ptr< class TrackingPositionFilter > TrackingPositionFilterPtr
std::map< double, Transform3D > TimedTransformMap
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr