Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkToFCameraPMDCamCubeDeviceFactory.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 mitkToFCameraPMDCamCubeDeviceFactory_h
13 #define mitkToFCameraPMDCamCubeDeviceFactory_h
14 
15 #include <MitkPMDExports.h>
18 #include <mitkCameraIntrinsics.h>
20 #include <mitkToFConfig.h>
21 
22 // Microservices
23 #include <usServiceRegistration.h>
24 #include <usModuleContext.h>
25 #include <usGetModuleContext.h>
26 #include <usModule.h>
27 #include <usModuleResource.h>
28 #include <usModuleResourceStream.h>
29 
30 namespace mitk
31 {
39 class MITKPMD_EXPORT ToFCameraPMDCamCubeDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
40 
41 public:
47  {
48  }
54  std::string GetFactoryName()
55  {
56  return std::string("PMD Camcube 2.0/3.0 Factory ");
57  }
58 
62  std::string GetDeviceNamePrefix()
63  {
64  return std::string("PMD CamCube 2.0/3.0");
65  }
66 
67 private:
71  ToFCameraDevice::Pointer CreateToFCameraDevice()
72  {
73  ToFCameraPMDCamCubeDevice::Pointer device = ToFCameraPMDCamCubeDevice::New();
74 
75  device->SetBoolProperty("HasRGBImage", false);
76  device->SetBoolProperty("HasAmplitudeImage", true);
77  device->SetBoolProperty("HasIntensityImage", true);
78 
79  return device.GetPointer();
80  }
81 
87  us::ModuleResource GetIntrinsicsResource()
88  {
90  return module->GetResource("CalibrationFiles/PMDCamCube3_camera.xml");
91  }
92 
96  int m_DeviceNumber;
97 };
98 }
99 #endif
usModule.h
mitk::ToFCameraPMDCamCubeDeviceFactory
ToFPMDCamBoardDeviceFactory is an implementation of the factory pattern to generate Cam Cube Devices....
Definition: mitkToFCameraPMDCamCubeDeviceFactory.h:39
mitkToFCameraPMDCamCubeDevice.h
mitk::ToFCameraPMDCamCubeDevice::New
static Pointer New()
mitkCameraIntrinsics.h
mitk::ToFCameraPMDCamCubeDeviceFactory::GetFactoryName
std::string GetFactoryName()
GetCurrentDeviceName Get the name of the current Cam Cube. First device is named "PMD CamCube 2....
Definition: mitkToFCameraPMDCamCubeDeviceFactory.h:54
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition: usGetModuleContext.h:50
mitk::ToFCameraPMDCamCubeDeviceFactory::ToFCameraPMDCamCubeDeviceFactory
ToFCameraPMDCamCubeDeviceFactory()
ToFCameraPMDCamCubeDeviceFactory Default contructor. This factory internally counts all Cam Cube devi...
Definition: mitkToFCameraPMDCamCubeDeviceFactory.h:46
mitkToFConfig.h
mitkCameraIntrinsicsProperty.h
us::Module::GetResource
ModuleResource GetResource(const std::string &path) const
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkAbstractToFDeviceFactory.h
usModuleResourceStream.h
ModuleContext::GetModule
Module * GetModule() const
us::Module
Definition: usModule.h:78
usServiceRegistration.h
us::ModuleResource
Definition: usModuleResource.h:55
usModuleContext.h
usGetModuleContext.h
usModuleResource.h
mitk::ToFCameraPMDCamCubeDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
GetDeviceNamePrefix Main part of the device name.
Definition: mitkToFCameraPMDCamCubeDeviceFactory.h:62
mitk::AbstractToFDeviceFactory
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
Definition: mitkAbstractToFDeviceFactory.h:32