NorMIT-nav  22.09
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<QString, Vector3D> ToolNull::getReferencePoints() const
92 {
93  return std::map<QString, 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 ToolPtr();
131 }
132 
134 {
135  return true;
136 }
137 
138 
139 }
cx::ToolNull::getTypes
virtual std::set< Type > getTypes() const
Definition: cxToolNull.cpp:6
cx::ToolNull::resetTrackingPositionFilter
virtual void resetTrackingPositionFilter(TrackingPositionFilterPtr filter)
Definition: cxToolNull.cpp:112
cx::ToolNull::isInitialized
virtual bool isInitialized() const
Definition: cxToolNull.cpp:36
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::ToolNull::getReferencePoints
virtual std::map< QString, Vector3D > getReferencePoints() const
Definition: cxToolNull.cpp:91
cx::ToolNull::getMetadataHistory
virtual const std::map< double, ToolPositionMetadata > & getMetadataHistory()
Definition: cxToolNull.cpp:26
cx::ToolNull::isNull
virtual bool isNull()
Definition: cxToolNull.cpp:133
cx::TrackingPositionFilterPtr
boost::shared_ptr< class TrackingPositionFilter > TrackingPositionFilterPtr
Definition: cxTool.h:37
cx::ToolNull::setCalibration_sMt
virtual void setCalibration_sMt(Transform3D calibration)
Definition: cxToolNull.cpp:61
cx::ToolNull::getUid
virtual QString getUid() const
Definition: cxToolNull.cpp:41
cx::ToolNull::getMetadata
virtual ToolPositionMetadata getMetadata() const
Definition: cxToolNull.cpp:21
cx::ToolNull::isCalibrated
virtual bool isCalibrated() const
a tool may not be calibrated, then no tracking is allowed
Definition: cxToolNull.cpp:52
cx::ToolNull::getName
virtual QString getName() const
Definition: cxToolNull.cpp:47
cx::ToolNull::hasReferencePointWithId
virtual bool hasReferencePointWithId(int id)
Definition: cxToolNull.cpp:96
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::ToolNull::getPositionHistory
virtual TimedTransformMapPtr getPositionHistory()
get historical positions
Definition: cxToolNull.cpp:16
cx::TimedTransformMap
std::map< double, Transform3D > TimedTransformMap
Definition: cxRecordSession.h:36
cxToolNull.h
cx::TimedTransformMapPtr
boost::shared_ptr< TimedTransformMap > TimedTransformMapPtr
Definition: cxTool.h:36
cx::vtkPolyDataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Definition: cxCenterlineRegistration.h:42
cx::ToolNull::getBaseTool
virtual ToolPtr getBaseTool()
Definition: cxToolNull.cpp:128
cx::ToolNull::printSelf
virtual void printSelf(std::ostream &os, Indent indent)
Definition: cxToolNull.cpp:76
cx::ToolNull::getTimestamp
virtual double getTimestamp() const
latest valid timestamp for the position matrix. 0 means indeterminate (for f.ex. manual tools)
Definition: cxToolNull.cpp:71
cx::ToolPositionMetadata
Definition: cxTool.h:43
cx::ToolPtr
boost::shared_ptr< class Tool > ToolPtr
Definition: cxVideoConnectionWidget.h:43
cx::ToolNull::get_prMt
virtual Transform3D get_prMt() const
Definition: cxToolNull.cpp:107
cx::ToolNull::getTooltipOffset
virtual double getTooltipOffset() const
Definition: cxToolNull.cpp:81
cx::ToolNull::setVisible
virtual void setVisible(bool vis)
if available for this type, set visibility
Definition: cxToolNull.cpp:123
cx::Indent
Formatting class for debug printing of the ssc library.
Definition: cxIndent.h:28
cx::ToolNull::getGraphicsPolyData
virtual vtkPolyDataPtr getGraphicsPolyData() const
get geometric 3D description
Definition: cxToolNull.cpp:11
cx::ToolNull::set_prMt
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
cx::ProbePtr
boost::shared_ptr< Probe > ProbePtr
Definition: cxProbe.h:72
cx::ToolNull::getCalibration_sMt
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
cx::ToolNull::getSessionHistory
virtual TimedTransformMap getSessionHistory(double startTime, double stopTime)
Definition: cxToolNull.cpp:102
cx::ToolNull::setTooltipOffset
virtual void setTooltipOffset(double val)
Definition: cxToolNull.cpp:86
cx::ToolNull::getVisible
virtual bool getVisible() const
Definition: cxToolNull.cpp:31
cx::ToolNull::getProbe
virtual ProbePtr getProbe() const
Definition: cxToolNull.cpp:66