Fraxinus  18.10
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  return ToolPtr();
63 }
64 
66 {
67  this->printWarning();
68  return ToolPtr();
69 }
70 
72 {
73  this->printWarning();
74  return ToolPtr();
75 }
76 
78 {
79  return ToolMap();
80 }
81 
83 {
84  return false;
85 }
86 
88 {
89 
90 }
91 
93 {
94  return SessionToolHistoryMap();
95 }
96 
98 {
99 }
100 
102 {
104 }
105 
107 {
108 
109 }
110 
112 {
113 
114 }
115 
116 std::vector<TrackingSystemServicePtr> TrackingServiceNull::getTrackingSystems()
117 {
118  return std::vector<TrackingSystemServicePtr> ();
119 }
120 
121 } //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 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
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 unInstallTrackingSystem(TrackingSystemServicePtr system)
virtual ToolPtr getReferenceTool() const
tool used as patient reference
virtual SessionToolHistoryMap getSessionHistory(double startTime, double stopTime)
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr
boost::shared_ptr< class TrackingSystemService > TrackingSystemServicePtr