diff --git a/Modules/IGT/DataManagement/mitkTrackingDeviceTypeCollection.h b/Modules/IGT/DataManagement/mitkTrackingDeviceTypeCollection.h index 724034e860..fb4c505249 100644 --- a/Modules/IGT/DataManagement/mitkTrackingDeviceTypeCollection.h +++ b/Modules/IGT/DataManagement/mitkTrackingDeviceTypeCollection.h @@ -1,90 +1,88 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef TRACKINGDEVICETYPECOLLECTION_H_INCLUDED #define TRACKINGDEVICETYPECOLLECTION_H_INCLUDED #include #include "mitkTrackingTypes.h" #include "mitkTrackingDeviceTypeInformation.h" // Microservices #include #include namespace mitk { /** Documentation: * \brief 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. * * The Microservice provides all compatible TrackingDeviceDatas for a requested tracking device type or a list of all available Tracking Devices. * * \ingroup IGTUI */ class MITKIGT_EXPORT TrackingDeviceTypeCollection { public: TrackingDeviceTypeCollection(); ~TrackingDeviceTypeCollection(); /** *\brief Registers this object as a Microservice, making it available to every module and/or plugin. * To unregister, call UnregisterMicroservice(). */ virtual void RegisterAsMicroservice(); /** *\brief Registers this object as a Microservice, making it available to every module and/or plugin. */ virtual void UnRegisterMicroservice(); void RegisterTrackingDeviceType(TrackingDeviceTypeInformation* typeInformation); TrackingDeviceTypeInformation* GetTrackingDeviceTypeInformation(TrackingDeviceType type); std::vector GetTrackingDeviceTypeNames(); /** * /brief Returns all devices compatibel to the given Line of Devices */ std::vector GetDeviceDataForLine(TrackingDeviceType type); /** * /brief Returns the first TrackingDeviceData matching a given line. Useful for backward compatibility * with the old way to manage devices. */ TrackingDeviceData GetFirstCompatibleDeviceDataForLine(TrackingDeviceType type); /** * /brief Returns the device Data set matching the model name or the invalid device, if none was found. */ TrackingDeviceData GetDeviceDataByName(const std::string& modelName); private: - std::string m_Name; - us::ServiceRegistration m_ServiceRegistration; std::vector m_TrackingDeviceTypeInformations; }; } // namespace mitk MITK_DECLARE_SERVICE_INTERFACE(mitk::TrackingDeviceTypeCollection, "org.mitk.services.TrackingDeviceTypeCollection") #endif //TRACKINGDEVICETYPECOLLECTION_H_INCLUDED