33 #ifndef CXTRACKINGIMPLSERVICE_H_ 34 #define CXTRACKINGIMPLSERVICE_H_ 36 #include "org_custusx_core_tracking_Export.h" 48 class ctkPluginContext;
100 virtual bool isPlaybackMode()
const;
103 virtual ToolPtr getTool(
const QString& uid);
105 virtual ToolPtr getActiveTool();
106 virtual void setActiveTool(
const QString& uid);
108 virtual ToolPtr getReferenceTool()
const;
110 virtual ToolPtr getManualTool();
115 virtual ToolPtr getFirstProbe();
117 virtual void setPlaybackMode(PlaybackTimePtr controller);
120 virtual void installTrackingSystem(TrackingSystemServicePtr system);
121 virtual void unInstallTrackingSystem(TrackingSystemServicePtr system);
122 virtual std::vector<TrackingSystemServicePtr> getTrackingSystems();
127 void globalConfigurationFileChangedSlot(QString key);
128 void onSystemStateChanged();
129 void activeCheckSlot();
130 void onTooltipOffset(
double val);
132 void onSessionChanged();
133 void onSessionCleared();
134 void onSessionLoad(QDomElement& node);
135 void onSessionSave(QDomElement& node);
138 void listenForTrackingSystemServices(ctkPluginContext *context);
144 void rebuildCachedTools();
145 void initializeManualTool();
146 void setConfigurationFile(QString configurationFile);
147 void resetTrackingPositionFilters();
149 void imbueManualToolWithRealProperties();
150 void addToolsFrom(TrackingSystemServicePtr system);
151 bool manualToolHasMostRecentTimestamp();
152 std::vector<ToolPtr> getVisibleTools();
154 void addXml(QDomNode& parentNode);
155 void parseXml(QDomNode& dataNode);
156 virtual void savePositionHistory();
157 virtual void loadPositionHistory();
159 QString getLoggingFolder();
164 ManualToolAdapterPtr mManualTool;
166 double mLastLoadPositionHistory;
168 std::vector<TrackingSystemServicePtr> mTrackingSystems;
169 TrackingSystemPlaybackServicePtr mPlaybackSystem;
170 ctkPluginContext *mContext;
171 SessionStorageServicePtr mSession;
173 double mToolTipOffset;
175 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