Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkToFCameraPMDRawDataCamBoardDeviceFactory.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 mitkToFCameraPMDRawDataCamBoardDeviceFactory_h
13 #define mitkToFCameraPMDRawDataCamBoardDeviceFactory_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 ToFCameraPMDRawDataCamBoardDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
40 
41 public:
42 
44  {
45  }
46 
50  std::string GetFactoryName()
51  {
52  return std::string("PMD Raw Data CamBoard Factory ");
53  }
54 
55  std::string GetDeviceNamePrefix()
56  {
57  return std::string("PMD Raw Data CamBoard Device");
58  }
59 
60 private:
64  ToFCameraDevice::Pointer CreateToFCameraDevice()
65  {
66  ToFCameraPMDRawDataCamBoardDevice::Pointer device = ToFCameraPMDRawDataCamBoardDevice::New();
67 
68  return device.GetPointer();
69  }
70 
71  us::ModuleResource GetIntrinsicsResource()
72  {
74  return module->GetResource("CalibrationFiles/PMDCamBoard_camera.xml");
75  }
76 };
77 }
78 #endif
usModule.h
mitk::ToFCameraPMDRawDataCamBoardDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
Definition: mitkToFCameraPMDRawDataCamBoardDeviceFactory.h:55
mitkCameraIntrinsics.h
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition: usGetModuleContext.h:50
mitkToFConfig.h
mitkCameraIntrinsicsProperty.h
us::Module::GetResource
ModuleResource GetResource(const std::string &path) const
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ToFCameraPMDRawDataCamBoardDeviceFactory::ToFCameraPMDRawDataCamBoardDeviceFactory
ToFCameraPMDRawDataCamBoardDeviceFactory()
Definition: mitkToFCameraPMDRawDataCamBoardDeviceFactory.h:43
mitkAbstractToFDeviceFactory.h
usModuleResourceStream.h
ModuleContext::GetModule
Module * GetModule() const
mitk::ToFCameraPMDRawDataCamBoardDeviceFactory
ToFPMDRawPlayerDeviceFactory is an implementation of the factory pattern to generate Raw Player Devic...
Definition: mitkToFCameraPMDRawDataCamBoardDeviceFactory.h:39
us::Module
Definition: usModule.h:78
usServiceRegistration.h
mitk::ToFCameraPMDRawDataCamBoardDeviceFactory::GetFactoryName
std::string GetFactoryName()
Defining the Factorie´s Name, here for the RawDataCamBoardDeviceFactory.
Definition: mitkToFCameraPMDRawDataCamBoardDeviceFactory.h:50
us::ModuleResource
Definition: usModuleResource.h:55
usModuleContext.h
usGetModuleContext.h
mitkToFCameraPMDRawDataCamBoardDevice.h
usModuleResource.h
mitk::ToFCameraPMDRawDataCamBoardDevice::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