MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFCameraPMDRawDataCamBoardDeviceFactory.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12#ifndef mitkToFCameraPMDRawDataCamBoardDeviceFactory_h
13#define mitkToFCameraPMDRawDataCamBoardDeviceFactory_h
14
15#include "mitkPMDModuleExports.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
30namespace mitk
31{
39class MITKPMD_EXPORT ToFCameraPMDRawDataCamBoardDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
40
41public:
42
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
60private:
64 ToFCameraDevice::Pointer CreateToFCameraDevice()
65 {
66 ToFCameraPMDRawDataCamBoardDevice::Pointer device = ToFCameraPMDRawDataCamBoardDevice::New();
67
68 return device.GetPointer();
69 }
70
71 us::ModuleResource GetIntrinsicsResource()
72 {
73 us::Module* module = us::GetModuleContext()->GetModule();
74 return module->GetResource("CalibrationFiles/PMDCamBoard_camera.xml");
75 }
76};
77}
78#endif
ToFPMDRawPlayerDeviceFactory is an implementation of the factory pattern to generate Raw Player Devic...
std::string GetFactoryName()
Defining the Factorie´s Name, here for the RawDataCamBoardDeviceFactory.
IGT Exceptions.
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...