Medical Imaging Interaction Toolkit  2021.10.00
Medical Imaging Interaction Toolkit
mitkToFCameraPMDO3DeviceFactory.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 __mitkToFCameraPMDO3DeviceFactory_h
13 #define __mitkToFCameraPMDO3DeviceFactory_h
14 
15 #include <MitkPMDExports.h>
18 #include <mitkCameraIntrinsics.h>
20 #include <mitkToFConfig.h>
21 
22 
23 namespace mitk
24 {
32 class MITKPMD_EXPORT ToFCameraPMDO3DeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
33 
34 public:
36  {
37  }
38 
42  std::string GetFactoryName()
43  {
44  return std::string("PMD O3D Factory");
45  }
46 
50  std::string GetFactoryName()
51  {
52  return std::string("PMD O3");
53  }
54 
55 private:
59  ToFCameraDevice::Pointer createToFCameraDevice()
60  {
61  ToFCameraPMDO3Device::Pointer device = ToFCameraPMDO3Device::New();
62 
63  device->SetBoolProperty("HasRGBImage", false);
64  device->SetBoolProperty("HasAmplitudeImage", true);
65  device->SetBoolProperty("HasIntensityImage", true);
66 
67  return device.GetPointer();
68  }
69 };
70 }
71 #endif
std::string GetFactoryName()
Defining the Factories Name, here for the ToFPMDO3Device.
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
ToFCameraPMDO3DeviceFactory is an implementation of the factory pattern to generate Do3 Devices...
DataCollection - Class to facilitate loading/accessing structured data.