Fraxinus  18.10
An IGT application
cxToolNull.cpp
Go to the documentation of this file.
1 #include "cxToolNull.h"
2 
3 namespace cx
4 {
5 
6 std::set<Tool::Type> ToolNull::getTypes() const
7 {
8  return std::set<Type>();
9 }
10 
12 {
13  return vtkPolyDataPtr();
14 }
15 
17 {
18  return TimedTransformMapPtr();
19 }
20 
22 {
23  return ToolPositionMetadata();
24 }
25 
26 const std::map<double, ToolPositionMetadata>& ToolNull::getMetadataHistory()
27 {
28  return mMetadata;
29 }
30 
32 {
33  return false;
34 }
35 
37 {
38  return false;
39 }
40 
41 QString ToolNull::getUid() const
42 {
43  return "";
44 }
45 
46 
47 QString ToolNull::getName() const
48 {
49  return "";
50 }
51 
53 {
54  return false;
55 }
57 {
58  return Transform3D::Identity();
59 }
60 
62 {
63  Q_UNUSED(calibration);
64 }
65 
67 {
68  return ProbePtr();
69 }
70 
71 double ToolNull::getTimestamp() const
72 {
73  return 0;
74 }
75 
76 void ToolNull::printSelf(std::ostream &os, Indent indent)
77 {
78  os << indent << "null tool" << std::endl;
79 }
80 
82 {
83  return 0;
84 }
85 
87 {
88  Q_UNUSED(val);
89 }
90 
91 std::map<int, Vector3D> ToolNull::getReferencePoints() const
92 {
93  return std::map<int, Vector3D>();
94 }
95 
97 {
98  Q_UNUSED(id);
99  return false;
100 }
101 
102 TimedTransformMap ToolNull::getSessionHistory(double startTime, double stopTime)
103 {
104  return TimedTransformMap();
105 }
106 
108 {
109  return Transform3D::Identity();
110 }
111 
113 {
114  Q_UNUSED(filter);
115 }
116 
117 void ToolNull::set_prMt(const Transform3D& prMt, double timestamp)
118 {
119  Q_UNUSED(prMt);
120  Q_UNUSED(timestamp);
121 }
122 
123 void ToolNull::setVisible(bool vis)
124 {
125  Q_UNUSED(vis);
126 }
127 
129 {
130  return true;
131 }
132 
133 
134 }
virtual std::map< int, Vector3D > getReferencePoints() const
Get the optional reference points from this tool.
Definition: cxToolNull.cpp:91
virtual QString getName() const
Definition: cxToolNull.cpp:47
virtual void setVisible(bool vis)
if available for this type, set visibility
Definition: cxToolNull.cpp:123
virtual std::set< Type > getTypes() const
Definition: cxToolNull.cpp:6
virtual double getTooltipOffset() const
get a virtual offset extending from the tool tip.
Definition: cxToolNull.cpp:81
virtual Transform3D getCalibration_sMt() const
get the calibration transform from tool space to sensor space (where the spheres or similar live) ...
Definition: cxToolNull.cpp:56
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual bool isInitialized() const
Definition: cxToolNull.cpp:36
virtual Transform3D get_prMt() const
Definition: cxToolNull.cpp:107
virtual bool isCalibrated() const
a tool may not be calibrated, then no tracking is allowed
Definition: cxToolNull.cpp:52
virtual void printSelf(std::ostream &os, Indent indent)
dump internal debug data
Definition: cxToolNull.cpp:76
virtual ProbePtr getProbe() const
additional information if the tool represents an US Probe. Extends getProbeSector() ...
Definition: cxToolNull.cpp:66
virtual void set_prMt(const Transform3D &prMt, double timestamp)
if available for this type, set pos, ts<0 means use current time
Definition: cxToolNull.cpp:117
boost::shared_ptr< Probe > ProbePtr
Definition: cxProbe.h:72
virtual TimedTransformMap getSessionHistory(double startTime, double stopTime)
Definition: cxToolNull.cpp:102
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
Definition: cxTool.h:36
virtual ToolPositionMetadata getMetadata() const
Definition: cxToolNull.cpp:21
Formatting class for debug printing of the ssc library.
Definition: cxIndent.h:28
virtual vtkPolyDataPtr getGraphicsPolyData() const
get geometric 3D description
Definition: cxToolNull.cpp:11
virtual void setTooltipOffset(double val)
set a virtual offset extending from the tool tip.
Definition: cxToolNull.cpp:86
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
virtual void resetTrackingPositionFilter(TrackingPositionFilterPtr filter)
Definition: cxToolNull.cpp:112
virtual void setCalibration_sMt(Transform3D calibration)
requests to use the calibration and replaces the tools calibration file
Definition: cxToolNull.cpp:61
virtual bool isNull()
Definition: cxToolNull.cpp:128
virtual bool getVisible() const
Definition: cxToolNull.cpp:31
boost::shared_ptr< class TrackingPositionFilter > TrackingPositionFilterPtr
Definition: cxTool.h:37
virtual const std::map< double, ToolPositionMetadata > & getMetadataHistory()
Definition: cxToolNull.cpp:26
virtual bool hasReferencePointWithId(int id)
Definition: cxToolNull.cpp:96
virtual TimedTransformMapPtr getPositionHistory()
get historical positions
Definition: cxToolNull.cpp:16
virtual double getTimestamp() const
latest valid timestamp for the position matrix. 0 means indeterminate (for f.ex. manual tools) ...
Definition: cxToolNull.cpp:71
virtual QString getUid() const
Definition: cxToolNull.cpp:41
std::map< double, Transform3D > TimedTransformMap
Namespace for all CustusX production code.