CustusX  15.4.0-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 false;
24 }
25 
27 {
28  return false;
29 }
30 
31 QString ToolNull::getUid() const
32 {
33  return "";
34 }
35 
36 
37 QString ToolNull::getName() const
38 {
39  return "";
40 }
41 
43 {
44  return false;
45 }
47 {
48  return Transform3D::Identity();
49 }
50 
52 {
53  Q_UNUSED(calibration);
54 }
55 
57 {
58  return ProbePtr();
59 }
60 
61 double ToolNull::getTimestamp() const
62 {
63  return 0;
64 }
65 
66 void ToolNull::printSelf(std::ostream &os, Indent indent)
67 {
68  os << indent << "null tool" << std::endl;
69 }
70 
72 {
73  return 0;
74 }
75 
77 {
78  Q_UNUSED(val);
79 }
80 
81 std::map<int, Vector3D> ToolNull::getReferencePoints() const
82 {
83  return std::map<int, Vector3D>();
84 }
85 
87 {
88  Q_UNUSED(id);
89  return false;
90 }
91 
92 TimedTransformMap ToolNull::getSessionHistory(double startTime, double stopTime)
93 {
94  return TimedTransformMap();
95 }
96 
98 {
99  return Transform3D::Identity();
100 }
101 
103 {
104  Q_UNUSED(filter);
105 }
106 
107 void ToolNull::set_prMt(const Transform3D& prMt, double timestamp)
108 {
109  Q_UNUSED(prMt);
110  Q_UNUSED(timestamp);
111 }
112 
113 void ToolNull::setVisible(bool vis)
114 {
115  Q_UNUSED(vis);
116 }
117 
119 {
120  return true;
121 }
122 
123 
124 }
virtual std::map< int, Vector3D > getReferencePoints() const
Get the optional reference points from this tool.
Definition: cxToolNull.cpp:81
virtual QString getName() const
Definition: cxToolNull.cpp:37
virtual void setVisible(bool vis)
if available for this type, set visibility
Definition: cxToolNull.cpp:113
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:71
virtual Transform3D getCalibration_sMt() const
get the calibration transform from tool space to sensor space (where the spheres or similar live) ...
Definition: cxToolNull.cpp:46
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual bool isInitialized() const
Definition: cxToolNull.cpp:26
virtual Transform3D get_prMt() const
Definition: cxToolNull.cpp:97
virtual bool isCalibrated() const
a tool may not be calibrated, then no tracking i allowed
Definition: cxToolNull.cpp:42
virtual void printSelf(std::ostream &os, Indent indent)
dump internal debug data
Definition: cxToolNull.cpp:66
vtkSmartPointer< class vtkPolyData > vtkPolyDataPtr
Definition: cxProbeSector.h:47
virtual ProbePtr getProbe() const
additional information if the tool represents an US Probe. Extends getProbeSector() ...
Definition: cxToolNull.cpp:56
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:107
boost::shared_ptr< Probe > ProbePtr
Definition: cxProbe.h:93
virtual TimedTransformMap getSessionHistory(double startTime, double stopTime)
Definition: cxToolNull.cpp:92
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
Definition: cxTool.h:54
Formatting class for debug printing of the ssc library.
Definition: cxIndent.h:49
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:76
virtual void resetTrackingPositionFilter(TrackingPositionFilterPtr filter)
Definition: cxToolNull.cpp:102
virtual void setCalibration_sMt(Transform3D calibration)
requests to use the calibration and replaces the tools calibration file
Definition: cxToolNull.cpp:51
virtual bool isNull()
Definition: cxToolNull.cpp:118
virtual bool getVisible() const
Definition: cxToolNull.cpp:21
boost::shared_ptr< class TrackingPositionFilter > TrackingPositionFilterPtr
Definition: cxTool.h:55
virtual bool hasReferencePointWithId(int id)
Definition: cxToolNull.cpp:86
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:61
virtual QString getUid() const
Definition: cxToolNull.cpp:31
std::map< double, Transform3D > TimedTransformMap