Medical Imaging Interaction Toolkit  2022.10.99-efe2ad43
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
mitkToFCameraPMDPlayerDevice.h
mitk::ToFCameraPMDPlayerDeviceFactory::GetFactoryName
std::string GetFactoryName()
Get the name of the factory, here for the ToFPMDPlayer.
Definition: mitkToFCameraPMDPlayerDeviceFactory.h:43
mitkCameraIntrinsics.h
mitk::ToFCameraPMDPlayerDevice::New
static Pointer New()
mitkToFConfig.h
mitkCameraIntrinsicsProperty.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::ToFCameraPMDPlayerDeviceFactory::ToFCameraPMDPlayerDeviceFactory
ToFCameraPMDPlayerDeviceFactory()
ToFCameraPMDPlayerDeviceFactory Default contructor. This factory internally counts all PMD Player dev...
Definition: mitkToFCameraPMDPlayerDeviceFactory.h:37
mitkAbstractToFDeviceFactory.h
mitk::ToFCameraPMDPlayerDeviceFactory
ToFPMDPlayerDeviceFactory is an implementation of the factory pattern to generate PMD Player Devices....
Definition: mitkToFCameraPMDPlayerDeviceFactory.h:30
mitk::ToFCameraPMDPlayerDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
GetCurrentDeviceName Get the name of the current Cam Cube. First device is named "PMD Player",...
Definition: mitkToFCameraPMDPlayerDeviceFactory.h:53
mitk::AbstractToFDeviceFactory
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
Definition: mitkAbstractToFDeviceFactory.h:32