Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkToFCameraPMDPlayerDeviceFactory.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 __mitkToFCameraPMDPlayerDeviceFactory_h
17 #define __mitkToFCameraPMDPlayerDeviceFactory_h
18 
19 #include <MitkPMDExports.h>
22 #include <mitkCameraIntrinsics.h>
24 #include <mitkToFConfig.h>
25 
26 namespace mitk
27 {
34 class MITKPMD_EXPORT ToFCameraPMDPlayerDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
35 
36 public:
42  {
43  }
47  std::string GetFactoryName()
48  {
49  return std::string("PMD Player Factory");
50  }
51 
57  std::string GetDeviceNamePrefix()
58  {
59  return std::string("PMD Player");
60  }
61 
62 private:
66  ToFCameraDevice::Pointer CreateToFCameraDevice()
67  {
69 
70  device->SetBoolProperty("HasRGBImage", false);
71  device->SetBoolProperty("HasAmplitudeImage", true);
72  device->SetBoolProperty("HasIntensityImage", true);
73 
74  return device.GetPointer();
75  }
76 };
77 }
78 #endif
itk::SmartPointer< Self > Pointer
std::string GetFactoryName()
Get the name of the factory, here for the ToFPMDPlayer.
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
ToFPMDPlayerDeviceFactory is an implementation of the factory pattern to generate PMD Player Devices...
DataCollection - Class to facilitate loading/accessing structured data.
ToFCameraPMDPlayerDeviceFactory()
ToFCameraPMDPlayerDeviceFactory Default contructor. This factory internally counts all PMD Player dev...
std::string GetDeviceNamePrefix()
GetCurrentDeviceName Get the name of the current Cam Cube. First device is named "PMD Player"...