Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::TrackingDeviceTypeCollection Class Reference

This class is a collection for information of all Tracking Device Types (derived from abstract TrackingDeviceTypeInformation) The Collection is avaiable via Microservice. If you want to add your own tracking device (e.g. to the Tracking Toolbox), you should register information about your tracking device in this collection using the RegisterTrackingDeviceType function. More...

#include <mitkTrackingDeviceTypeCollection.h>

Public Member Functions

 TrackingDeviceTypeCollection ()
 
 ~TrackingDeviceTypeCollection ()
 
virtual void RegisterAsMicroservice ()
 Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice(). More...
 
virtual void UnRegisterMicroservice ()
 Registers this object as a Microservice, making it available to every module and/or plugin. More...
 
void RegisterTrackingDeviceType (TrackingDeviceTypeInformation *typeInformation)
 
TrackingDeviceTypeInformationGetTrackingDeviceTypeInformation (TrackingDeviceType type)
 
std::vector< std::string > GetTrackingDeviceTypeNames ()
 
std::vector< TrackingDeviceDataGetDeviceDataForLine (TrackingDeviceType type)
 
TrackingDeviceData GetFirstCompatibleDeviceDataForLine (TrackingDeviceType type)
 
TrackingDeviceData GetDeviceDataByName (const std::string &modelName)
 

Detailed Description

This class is a collection for information of all Tracking Device Types (derived from abstract TrackingDeviceTypeInformation) The Collection is avaiable via Microservice. If you want to add your own tracking device (e.g. to the Tracking Toolbox), you should register information about your tracking device in this collection using the RegisterTrackingDeviceType function.

Documentation: The Microservice provides all compatible TrackingDeviceDatas for a requested tracking device type or a list of all available Tracking Devices.

Definition at line 39 of file mitkTrackingDeviceTypeCollection.h.

Constructor & Destructor Documentation

mitk::TrackingDeviceTypeCollection::TrackingDeviceTypeCollection ( )

Definition at line 26 of file mitkTrackingDeviceTypeCollection.cpp.

mitk::TrackingDeviceTypeCollection::~TrackingDeviceTypeCollection ( )

Definition at line 32 of file mitkTrackingDeviceTypeCollection.cpp.

Member Function Documentation

mitk::TrackingDeviceData mitk::TrackingDeviceTypeCollection::GetDeviceDataByName ( const std::string &  modelName)

/brief Returns the device Data set matching the model name or the invalid device, if none was found.

Definition at line 101 of file mitkTrackingDeviceTypeCollection.cpp.

References mitk::UnspecifiedTrackingTypeInformation::GetDeviceDataInvalid().

std::vector< mitk::TrackingDeviceData > mitk::TrackingDeviceTypeCollection::GetDeviceDataForLine ( TrackingDeviceType  type)

/brief Returns all devices compatibel to the given Line of Devices

Definition at line 78 of file mitkTrackingDeviceTypeCollection.cpp.

mitk::TrackingDeviceData mitk::TrackingDeviceTypeCollection::GetFirstCompatibleDeviceDataForLine ( TrackingDeviceType  type)

/brief Returns the first TrackingDeviceData matching a given line. Useful for backward compatibility with the old way to manage devices.

Definition at line 91 of file mitkTrackingDeviceTypeCollection.cpp.

References mitk::UnspecifiedTrackingTypeInformation::GetDeviceDataInvalid().

Referenced by mitk::TrackingVolumeGenerator::SetTrackingDevice(), mitk::TrackingVolumeGenerator::SetTrackingDeviceType(), and mitk::TrackingDevice::SetType().

mitk::TrackingDeviceTypeInformation * mitk::TrackingDeviceTypeCollection::GetTrackingDeviceTypeInformation ( mitk::TrackingDeviceType  type)
std::vector< std::string > mitk::TrackingDeviceTypeCollection::GetTrackingDeviceTypeNames ( )
void mitk::TrackingDeviceTypeCollection::RegisterAsMicroservice ( )
virtual

Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice().

Definition at line 44 of file mitkTrackingDeviceTypeCollection.cpp.

References us::GetModuleContext().

Referenced by mitk::IGTActivator::Load().

void mitk::TrackingDeviceTypeCollection::RegisterTrackingDeviceType ( TrackingDeviceTypeInformation typeInformation)

Definition at line 57 of file mitkTrackingDeviceTypeCollection.cpp.

Referenced by mitk::IGTActivator::Load().

void mitk::TrackingDeviceTypeCollection::UnRegisterMicroservice ( )
virtual

Registers this object as a Microservice, making it available to every module and/or plugin.

Definition at line 51 of file mitkTrackingDeviceTypeCollection.cpp.

Referenced by mitk::IGTActivator::Unload().


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