CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::TrackingSystemService Class Referenceabstract

Tracking System Service. More...

#include <cxTrackingSystemService.h>

Inheritance diagram for cx::TrackingSystemService:
cx::OpenIGTLinkTrackingSystemService cx::TrackingSystemBronchoscopyService cx::TrackingSystemDummyService cx::TrackingSystemIGSTKService cx::TrackingSystemPlaybackService

Signals

void stateChanged ()
 Reset time synchronization. Used for resetting time synchronization of incoming timestamps in OpenIGTLinkTrackingSystemService. More...
 
void updateTrackingSystemImplementation (QString trackingSystemImplementation)
 

Public Member Functions

 TrackingSystemService ()
 
virtual ~TrackingSystemService ()
 
virtual QString getUid () const =0
 
virtual Tool::State getState () const
 
virtual void setState (const Tool::State val)=0
 asynchronously request a state. Wait for signal stateChanged() More...
 
virtual std::vector< ToolPtrgetTools ()=0
 
virtual TrackerConfigurationPtr getConfiguration ()=0
 
virtual ToolPtr getReference ()=0
 reference tool used by entire tracking service - NOTE: system fails if several TrackingSystemServices define this tool More...
 
virtual void setConfigurationFile (QString configurationFile)
 
virtual void setLoggingFolder (QString loggingFolder)
 
virtual void resetTimeSynchronization ()
 

Protected Slots

virtual void deconfigure ()
 deconfigures the software More...
 
virtual void configure ()
 sets up the software More...
 
virtual void initialize ()
 connects to the hardware More...
 
virtual void uninitialize ()
 disconnects from the hardware More...
 
virtual void startTracking ()
 starts tracking More...
 
virtual void stopTracking ()
 stops tracking More...
 

Protected Member Functions

virtual bool isConfigured () const
 
virtual bool isInitialized () const
 
virtual bool isTracking () const
 
void internalSetState (Tool::State val)
 

Protected Attributes

Tool::State mState
 
QString mConfigurationFilePath
 path to the configuration file More...
 
QString mLoggingFolder
 path to where logging should be saved More...
 

Detailed Description

Tracking System Service.

Represents one tracking system consisting of a collection of tools. Several such may exist.

Date
2014-09-30
Author
Christian Askeland, SINTEF

Definition at line 35 of file cxTrackingSystemService.h.

Constructor & Destructor Documentation

cx::TrackingSystemService::TrackingSystemService ( )

Definition at line 17 of file cxTrackingSystemService.cpp.

virtual cx::TrackingSystemService::~TrackingSystemService ( )
inlinevirtual

Definition at line 40 of file cxTrackingSystemService.h.

Member Function Documentation

virtual void cx::TrackingSystemService::configure ( )
inlineprotectedvirtualslot

sets up the software

Definition at line 60 of file cxTrackingSystemService.h.

virtual void cx::TrackingSystemService::deconfigure ( )
inlineprotectedvirtualslot

deconfigures the software

Definition at line 59 of file cxTrackingSystemService.h.

virtual ToolPtr cx::TrackingSystemService::getReference ( )
pure virtual

reference tool used by entire tracking service - NOTE: system fails if several TrackingSystemServices define this tool

Implemented in cx::TrackingSystemBronchoscopyService, cx::TrackingSystemIGSTKService, cx::OpenIGTLinkTrackingSystemService, cx::TrackingSystemPlaybackService, and cx::TrackingSystemDummyService.

Tool::State cx::TrackingSystemService::getState ( ) const
virtual
void cx::TrackingSystemService::initialize ( )
protectedvirtualslot

connects to the hardware

Definition at line 95 of file cxTrackingSystemService.cpp.

void cx::TrackingSystemService::internalSetState ( Tool::State  val)
protected

Definition at line 70 of file cxTrackingSystemService.cpp.

bool cx::TrackingSystemService::isConfigured ( ) const
protectedvirtual

Definition at line 29 of file cxTrackingSystemService.cpp.

bool cx::TrackingSystemService::isInitialized ( ) const
protectedvirtual

Definition at line 34 of file cxTrackingSystemService.cpp.

bool cx::TrackingSystemService::isTracking ( ) const
protectedvirtual

Definition at line 39 of file cxTrackingSystemService.cpp.

virtual void cx::TrackingSystemService::resetTimeSynchronization ( )
inlinevirtual

Reimplemented in cx::OpenIGTLinkTrackingSystemService.

Definition at line 52 of file cxTrackingSystemService.h.

void cx::TrackingSystemService::setConfigurationFile ( QString  configurationFile)
virtual

Definition at line 44 of file cxTrackingSystemService.cpp.

void cx::TrackingSystemService::setLoggingFolder ( QString  loggingFolder)
virtual
Parameters
loggingFolderpath to the folder where logs should be saved

Reimplemented in cx::TrackingSystemBronchoscopyService, cx::TrackingSystemIGSTKService, cx::TrackingSystemPlaybackService, and cx::TrackingSystemDummyService.

Definition at line 57 of file cxTrackingSystemService.cpp.

virtual void cx::TrackingSystemService::setState ( const Tool::State  val)
pure virtual
void cx::TrackingSystemService::startTracking ( )
protectedvirtualslot

starts tracking

Definition at line 104 of file cxTrackingSystemService.cpp.

void cx::TrackingSystemService::stateChanged ( )
signal

Reset time synchronization. Used for resetting time synchronization of incoming timestamps in OpenIGTLinkTrackingSystemService.

void cx::TrackingSystemService::stopTracking ( )
protectedvirtualslot

stops tracking

Definition at line 110 of file cxTrackingSystemService.cpp.

void cx::TrackingSystemService::uninitialize ( )
protectedvirtualslot

disconnects from the hardware

Definition at line 101 of file cxTrackingSystemService.cpp.

void cx::TrackingSystemService::updateTrackingSystemImplementation ( QString  trackingSystemImplementation)
signal

Member Data Documentation

QString cx::TrackingSystemService::mConfigurationFilePath
protected

path to the configuration file

Definition at line 68 of file cxTrackingSystemService.h.

QString cx::TrackingSystemService::mLoggingFolder
protected

path to where logging should be saved

Definition at line 69 of file cxTrackingSystemService.h.

Tool::State cx::TrackingSystemService::mState
protected

Definition at line 67 of file cxTrackingSystemService.h.


The documentation for this class was generated from the following files: