Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkToFCameraPMDRawDataCamCubeDeviceFactory.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 mitkToFCameraPMDRawDataCamCubeDeviceFactory_h
13
#define mitkToFCameraPMDRawDataCamCubeDeviceFactory_h
14
15
#include <MitkPMDExports.h>
16
#include "
mitkToFCameraPMDRawDataCamCubeDevice.h
"
17
#include "
mitkAbstractToFDeviceFactory.h
"
18
#include <
mitkCameraIntrinsics.h
>
19
#include <
mitkCameraIntrinsicsProperty.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
{
32
39
class
MITKPMD_EXPORT
ToFCameraPMDRawDataCamCubeDeviceFactory
:
public
itk::LightObject,
public
AbstractToFDeviceFactory
{
40
41
public
:
42
43
ToFCameraPMDRawDataCamCubeDeviceFactory
()
44
{
45
}
49
std::string
GetFactoryName
()
50
{
51
return
std::string(
"PMD RAW Data Camcube Factory "
);
52
}
53
57
std::string
GetDeviceNamePrefix
()
58
{
59
return
std::string(
"PMD Raw Data CamCube 2.0/3.0"
);
60
}
61
62
private
:
66
ToFCameraDevice::Pointer CreateToFCameraDevice()
67
{
68
ToFCameraPMDRawDataCamCubeDevice::Pointer device =
ToFCameraPMDRawDataCamCubeDevice::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
{
79
us::Module
* module =
us::GetModuleContext
()->
GetModule
();
80
return
module->
GetResource
(
"CalibrationFiles/PMDCamCube3_camera.xml"
);
81
}
82
};
83
}
84
#endif
mitkToFCameraPMDRawDataCamCubeDevice.h
usModule.h
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
GetDeviceNamePrefix Main part of the device name.
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:57
mitk::ToFCameraPMDRawDataCamCubeDevice::New
static Pointer New()
mitkCameraIntrinsics.h
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory::GetFactoryName
std::string GetFactoryName()
Get the name of the factory, here for the ToFPMDRawDataCamCube.
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:49
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition:
usGetModuleContext.h:50
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory
ToFPMDRawPlayerDeviceFactory is an implementation of the factory pattern to generate Raw Player Devic...
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:39
mitkToFConfig.h
mitkCameraIntrinsicsProperty.h
us::Module::GetResource
ModuleResource GetResource(const std::string &path) const
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory::ToFCameraPMDRawDataCamCubeDeviceFactory
ToFCameraPMDRawDataCamCubeDeviceFactory()
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:43
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::AbstractToFDeviceFactory
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
Definition:
mitkAbstractToFDeviceFactory.h:32
src
MITK
Modules
ToFHardware
PMD
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h
Generated on Wed May 17 2023 16:26:12 for Medical Imaging Interaction Toolkit by
1.8.17