12 #ifndef CXTRACKINGIMPLSERVICE_H_ 13 #define CXTRACKINGIMPLSERVICE_H_ 15 #include "org_custusx_core_tracking_Export.h" 27 class ctkPluginContext;
79 virtual bool isPlaybackMode()
const;
82 virtual ToolPtr getTool(
const QString& uid);
84 virtual ToolPtr getActiveTool();
85 virtual void setActiveTool(
const QString& uid);
87 virtual ToolPtr getReferenceTool()
const;
89 virtual ToolPtr getManualTool();
94 virtual ToolPtr getFirstProbe();
96 virtual void setPlaybackMode(PlaybackTimePtr controller);
99 virtual void installTrackingSystem(TrackingSystemServicePtr system);
100 virtual void unInstallTrackingSystem(TrackingSystemServicePtr system);
101 virtual std::vector<TrackingSystemServicePtr> getTrackingSystems();
106 void globalConfigurationFileChangedSlot(QString key);
107 void onSystemStateChanged();
108 void activeCheckSlot();
109 void onTooltipOffset(
double val);
111 void onSessionChanged();
112 void onSessionCleared();
113 void onSessionLoad(QDomElement& node);
114 void onSessionSave(QDomElement& node);
117 void listenForTrackingSystemServices(ctkPluginContext *context);
123 void rebuildCachedTools();
124 void initializeManualTool();
125 void setConfigurationFile(QString configurationFile);
126 void resetTrackingPositionFilters();
128 void imbueManualToolWithRealProperties();
129 void addToolsFrom(TrackingSystemServicePtr system);
130 bool manualToolHasMostRecentTimestamp();
131 std::vector<ToolPtr> getVisibleTools();
133 void addXml(QDomNode& parentNode);
134 void parseXml(QDomNode& dataNode);
135 virtual void savePositionHistory();
136 virtual void loadPositionHistory();
138 QString getLoggingFolder();
143 ManualToolAdapterPtr mManualTool;
145 double mLastLoadPositionHistory;
147 std::vector<TrackingSystemServicePtr> mTrackingSystems;
148 TrackingSystemPlaybackServicePtr mPlaybackSystem;
149 ctkPluginContext *mContext;
150 SessionStorageServicePtr mSession;
152 double mToolTipOffset;
154 boost::shared_ptr<ServiceTrackerListener<TrackingSystemService> > mServiceListener;
std::map< ToolPtr, TimedTransformMap > SessionToolHistoryMap
boost::shared_ptr< class TrackingSystemPlaybackService > TrackingSystemPlaybackServicePtr
bool toolTypeSort(const ToolPtr tool1, const ToolPtr tool2)
function for sorting tools by type
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
boost::shared_ptr< class DummyTool > DummyToolPtr
boost::shared_ptr< class TrackerConfiguration > TrackerConfigurationPtr
Service providing tools and tracking systems.
std::map< QString, ToolPtr > ToolMap
boost::shared_ptr< class TrackingImplService > TrackingImplServicePtr
boost::shared_ptr< class ManualToolAdapter > ManualToolAdapterPtr
boost::shared_ptr< class SessionStorageService > SessionStorageServicePtr
Interface towards the navigation system.
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr
boost::shared_ptr< class TrackingSystemService > TrackingSystemServicePtr