Medical Imaging Interaction Toolkit  2022.10.99-122321bb
Medical Imaging Interaction Toolkit
mitkToFCameraPMDCamBoardDeviceFactory.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 __mitkToFCameraPMDCamBoardDeviceFactory_h
13 #define __mitkToFCameraPMDCamBoardDeviceFactory_h
14 
15 #include "mitkPMDModuleExports.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 ToFCameraPMDCamBoardDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
40 
41 public:
43  {
44  }
48  std::string GetFactoryName()
49  {
50  return std::string("PMD CamBoard Factory");
51  }
52 
56  std::string GetDeviceNamePrefix()
57  {
58  return std::string("PMD CamBoard");
59  }
60 
61 private:
62 
66  ToFCameraDevice::Pointer CreateToFCameraDevice()
67  {
68  ToFCameraPMDCamBoardDevice::Pointer device = ToFCameraPMDCamBoardDevice::New();
69 
70  device->SetBoolProperty("HasRGBImage", false);
71  device->SetBoolProperty("HasAmplitudeImage", true);
72  device->SetBoolProperty("HasIntensityImage", true);
73 
74  return device.GetPointer();
75  }
76 
77  us::ModuleResource GetIntrinsicsResource()
78  {
80  return module->GetResource("CalibrationFiles/PMDCamBoard_camera.xml");
81  }
82 };
83 }
84 #endif
usModule.h
mitkCameraIntrinsics.h
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition: usGetModuleContext.h:50
mitkToFCameraPMDCamBoardDevice.h
mitk::ToFCameraPMDCamBoardDeviceFactory
ToFPMDCamBoardDeviceFactory is an implementation of the factory pattern to generate CamBoard devices....
Definition: mitkToFCameraPMDCamBoardDeviceFactory.h:39
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
mitk::ToFCameraPMDCamBoardDeviceFactory::ToFCameraPMDCamBoardDeviceFactory
ToFCameraPMDCamBoardDeviceFactory()
Definition: mitkToFCameraPMDCamBoardDeviceFactory.h:42
us::Module
Definition: usModule.h:78
mitk::ToFCameraPMDCamBoardDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
GetDeviceNamePrefix Main part of the device name.
Definition: mitkToFCameraPMDCamBoardDeviceFactory.h:56
usServiceRegistration.h
us::ModuleResource
Definition: usModuleResource.h:55
usModuleContext.h
mitk::ToFCameraPMDCamBoardDeviceFactory::GetFactoryName
std::string GetFactoryName()
Defining the Factorie┬┤s Name, here for the ToFPMDCamBoard.
Definition: mitkToFCameraPMDCamBoardDeviceFactory.h:48
usGetModuleContext.h
usModuleResource.h
mitk::ToFCameraPMDCamBoardDevice::New
static Pointer New()
mitk::AbstractToFDeviceFactory
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
Definition: mitkAbstractToFDeviceFactory.h:32