Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFDeviceFactoryManager.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkToFDeviceListener_h
17 #define __mitkToFDeviceListener_h
18 
19 #include <MitkToFHardwareExports.h>
20 #include "mitkToFCameraDevice.h"
21 
22 //Microservices
23 #include <usServiceReference.h>
24 
25 namespace mitk
26 {
27  struct IToFDeviceFactory;
28 
34  class MITKTOFHARDWARE_EXPORT ToFDeviceFactoryManager: public itk::Object
35  {
36  public:
37 
39 
40  itkFactorylessNewMacro(Self)
41  itkCloneMacro(Self)
42 
43  std::vector<std::string> GetRegisteredDeviceFactories();
44 
45  std::vector<std::string> GetConnectedDevices();
46 
47  ToFCameraDevice* GetInstanceOfDevice(int index);
48 
49 
50 
51  protected:
52 
54 
56 
57  std::vector<std::string> m_RegisteredFactoryNames;
58  std::vector<us::ServiceReference<IToFDeviceFactory> > m_RegisteredFactoryRefs;
59 
60 
61  private:
62 
63  };
64 } //END mitk namespace
65 #endif
Virtual interface and base class for all Time-of-Flight devices.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
std::vector< us::ServiceReference< IToFDeviceFactory > > m_RegisteredFactoryRefs
std::vector< std::string > m_RegisteredFactoryNames