Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef __mitkToFCameraPMDPlayerDeviceFactory_h
13 #define __mitkToFCameraPMDPlayerDeviceFactory_h
14 
15 #include <MitkPMDExports.h>
18 #include <mitkCameraIntrinsics.h>
20 #include <mitkToFConfig.h>
21 
22 namespace mitk
23 {
30 class MITKPMD_EXPORT ToFCameraPMDPlayerDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
31 
32 public:
38  {
39  }
43  std::string GetFactoryName()
44  {
45  return std::string("PMD Player Factory");
46  }
47 
53  std::string GetDeviceNamePrefix()
54  {
55  return std::string("PMD Player");
56  }
57 
58 private:
62  ToFCameraDevice::Pointer CreateToFCameraDevice()
63  {
64  ToFCameraPMDPlayerDevice::Pointer device = ToFCameraPMDPlayerDevice::New();
65 
66  device->SetBoolProperty("HasRGBImage", false);
67  device->SetBoolProperty("HasAmplitudeImage", true);
68  device->SetBoolProperty("HasIntensityImage", true);
69 
70  return device.GetPointer();
71  }
72 };
73 }
74 #endif
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"...