CustusX  22.04-rc3
An IGT application
cxTrackingServiceNull.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxTrackingServiceNull.h"
13 
14 #include "cxTrackerConfiguration.h"
15 
16 
17 namespace cx
18 {
20 {
21 }
23 {
24  return true;
25 }
26 
27 void TrackingServiceNull::printWarning() const
28 {
29 // reportWarning("Trying to use TrackingServiceNull. Is TrackingService (org.custusx.core.tracking) disabled?");
30 }
31 
33 {
34  return Tool::tsNONE;
35 }
36 
38 {
39 
40 }
41 
43 {
44  this->printWarning();
45  return ToolPtr();
46 }
47 
49 {
50  this->printWarning();
51  return ToolPtr();
52 }
53 
54 void TrackingServiceNull::setActiveTool(const QString& uid)
55 {
56  this->printWarning();
57 }
58 
60 {
61  this->printWarning();
62 }
63 
65 {
66  this->printWarning();
67  return ToolPtr();
68 }
69 
71 {
72  this->printWarning();
73  return ToolPtr();
74 }
75 
77 {
78  this->printWarning();
79  return ToolPtr();
80 }
81 
83 {
84  return ToolMap();
85 }
86 
88 {
89  return false;
90 }
91 
93 {
94 
95 }
96 
98 {
99  return SessionToolHistoryMap();
100 }
101 
103 {
104 }
105 
106 std::vector<TrackerConfigurationPtr> TrackingServiceNull::getConfigurations()
107 {
108  std::vector<TrackerConfigurationPtr> retval;
109  retval.push_back(TrackerConfiguration::getNullObject());
110  return retval;
111 }
112 
113 /*TrackerConfigurationPtr TrackingServiceNull::getConfiguration(QString trackingSystemImplementation)
114 {
115  return TrackerConfiguration::getNullObject();
116 }*/
117 
119 {
121 }
122 
123 void TrackingServiceNull::setCurrentTrackingSystemImplementation(QString trackingSystemImplementation)
124 {
125 }
126 
128 {
129  return QString();
130 }
131 
133 {
134 
135 }
136 
138 {
139 
140 }
141 
142 std::vector<TrackingSystemServicePtr> TrackingServiceNull::getTrackingSystems()
143 {
144  return std::vector<TrackingSystemServicePtr> ();
145 }
146 
148 {
149 
150 }
151 
152 } //cx
virtual ToolPtr getFirstProbe()
get the active probe or any if none active
virtual Tool::State getState() const
virtual ToolPtr getTool(const QString &uid)
get a tool
std::map< ToolPtr, TimedTransformMap > SessionToolHistoryMap
virtual ToolPtr getManualTool()
a mouse-controllable virtual tool that is available even when not tracking.
virtual ToolMap getTools()
get configured and initialized tools
virtual void clearActiveTool()
Deselect active tool.
virtual void runDummyTool(DummyToolPtr tool)
virtual void installTrackingSystem(TrackingSystemServicePtr system)
virtual TrackerConfigurationPtr getConfiguration()
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
virtual void setPlaybackMode(PlaybackTimePtr controller)
boost::shared_ptr< class DummyTool > DummyToolPtr
boost::shared_ptr< class TrackerConfiguration > TrackerConfigurationPtr
virtual std::vector< TrackingSystemServicePtr > getTrackingSystems()
static TrackerConfigurationPtr getNullObject()
virtual ToolPtr getActiveTool()
get the tool that has higest priority when tracking
virtual std::vector< TrackerConfigurationPtr > getConfigurations()
not available
Definition: cxTool.h:74
std::map< QString, ToolPtr > ToolMap
virtual void setActiveTool(const QString &uid)
set a tool to be the active tool
virtual void setState(const Tool::State val)
virtual bool isPlaybackMode() const
virtual void resetTimeSynchronization()
Reset time synchronization. Used for resetting time synchronization of incoming timestamps in OpenIGT...
virtual void unInstallTrackingSystem(TrackingSystemServicePtr system)
virtual ToolPtr getReferenceTool() const
tool used as patient reference
virtual void setCurrentTrackingSystemImplementation(QString trackingSystemImplementation)
virtual SessionToolHistoryMap getSessionHistory(double startTime, double stopTime)
virtual QString getCurrentTrackingSystemImplementation()
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr
boost::shared_ptr< class TrackingSystemService > TrackingSystemServicePtr