NorMIT-nav  22.09
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
cx::TrackingServiceNull::isPlaybackMode
virtual bool isPlaybackMode() const
Definition: cxTrackingServiceNull.cpp:87
cx::TrackingServiceNull::getConfiguration
virtual TrackerConfigurationPtr getConfiguration()
Definition: cxTrackingServiceNull.cpp:118
cx::TrackingServiceNull::setPlaybackMode
virtual void setPlaybackMode(PlaybackTimePtr controller)
Definition: cxTrackingServiceNull.cpp:92
cx::TrackingServiceNull::setActiveTool
virtual void setActiveTool(const QString &uid)
set a tool to be the active tool
Definition: cxTrackingServiceNull.cpp:54
cxTrackingServiceNull.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::TrackingServiceNull::setState
virtual void setState(const Tool::State val)
Definition: cxTrackingServiceNull.cpp:37
cx::TrackerConfiguration::getNullObject
static TrackerConfigurationPtr getNullObject()
Definition: cxTrackerConfiguration.cpp:21
cx::TrackingServiceNull::unInstallTrackingSystem
virtual void unInstallTrackingSystem(TrackingSystemServicePtr system)
Definition: cxTrackingServiceNull.cpp:137
cx::TrackerConfigurationPtr
boost::shared_ptr< class TrackerConfiguration > TrackerConfigurationPtr
Definition: cxTrackerConfiguration.h:24
cx::TrackingServiceNull::getSessionHistory
virtual SessionToolHistoryMap getSessionHistory(double startTime, double stopTime)
Definition: cxTrackingServiceNull.cpp:97
cx::TrackingServiceNull::getActiveTool
virtual ToolPtr getActiveTool()
get the tool that has higest priority when tracking
Definition: cxTrackingServiceNull.cpp:48
cx::TrackingServiceNull::getConfigurations
virtual std::vector< TrackerConfigurationPtr > getConfigurations()
Definition: cxTrackingServiceNull.cpp:106
cx::TrackingServiceNull::setCurrentTrackingSystemImplementation
virtual void setCurrentTrackingSystemImplementation(QString trackingSystemImplementation)
Definition: cxTrackingServiceNull.cpp:123
cx::PlaybackTimePtr
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
Definition: cxTrackingSystemBronchoscopyService.h:42
cx::SessionToolHistoryMap
std::map< ToolPtr, TimedTransformMap > SessionToolHistoryMap
Definition: cxTrackingService.h:31
cx::TrackingServiceNull::resetTimeSynchronization
virtual void resetTimeSynchronization()
Reset time synchronization. Used for resetting time synchronization of incoming timestamps in OpenIGT...
Definition: cxTrackingServiceNull.cpp:147
cx::TrackingServiceNull::getManualTool
virtual ToolPtr getManualTool()
a mouse-controllable virtual tool that is available even when not tracking.
Definition: cxTrackingServiceNull.cpp:76
cx::TrackingSystemServicePtr
boost::shared_ptr< class TrackingSystemService > TrackingSystemServicePtr
Definition: cxTrackingImplService.h:36
cx::TrackingServiceNull::clearActiveTool
virtual void clearActiveTool()
Deselect active tool.
Definition: cxTrackingServiceNull.cpp:59
cx::TrackingServiceNull::TrackingServiceNull
TrackingServiceNull()
Definition: cxTrackingServiceNull.cpp:19
cx::TrackingServiceNull::installTrackingSystem
virtual void installTrackingSystem(TrackingSystemServicePtr system)
Definition: cxTrackingServiceNull.cpp:132
cx::Tool::tsNONE
@ tsNONE
not available
Definition: cxTool.h:74
cx::Tool::State
State
Definition: cxTool.h:72
cx::TrackingServiceNull::isNull
virtual bool isNull()
Definition: cxTrackingServiceNull.cpp:22
cx::TrackingServiceNull::getCurrentTrackingSystemImplementation
virtual QString getCurrentTrackingSystemImplementation()
Definition: cxTrackingServiceNull.cpp:127
cx::TrackingServiceNull::getFirstProbe
virtual ToolPtr getFirstProbe()
get the active probe or any if none active
Definition: cxTrackingServiceNull.cpp:64
cx::ToolPtr
boost::shared_ptr< class Tool > ToolPtr
Definition: cxVideoConnectionWidget.h:43
cxTrackerConfiguration.h
cx::TrackingServiceNull::getReferenceTool
virtual ToolPtr getReferenceTool() const
tool used as patient reference
Definition: cxTrackingServiceNull.cpp:70
cx::TrackingServiceNull::getTrackingSystems
virtual std::vector< TrackingSystemServicePtr > getTrackingSystems()
Definition: cxTrackingServiceNull.cpp:142
cx::TrackingServiceNull::getTool
virtual ToolPtr getTool(const QString &uid)
get a tool
Definition: cxTrackingServiceNull.cpp:42
cx::TrackingServiceNull::getState
virtual Tool::State getState() const
Definition: cxTrackingServiceNull.cpp:32
cx::TrackingServiceNull::runDummyTool
virtual void runDummyTool(DummyToolPtr tool)
Definition: cxTrackingServiceNull.cpp:102
cx::DummyToolPtr
boost::shared_ptr< class DummyTool > DummyToolPtr
Definition: cxForwardDeclarations.h:44
cx::TrackingService::ToolMap
std::map< QString, ToolPtr > ToolMap
Definition: cxTrackingService.h:54
cx::TrackingServiceNull::getTools
virtual ToolMap getTools()
get configured and initialized tools
Definition: cxTrackingServiceNull.cpp:82