Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
#ifndef __mitkToFCameraPMDRawDataCamCubeDeviceFactory_h
17
#define __mitkToFCameraPMDRawDataCamCubeDeviceFactory_h
18
19
#include <MitkPMDExports.h>
20
#include "
mitkToFCameraPMDRawDataCamCubeDevice.h
"
21
#include "
mitkAbstractToFDeviceFactory.h
"
22
#include <
mitkCameraIntrinsics.h
>
23
#include <
mitkCameraIntrinsicsProperty.h
>
24
#include <
mitkToFConfig.h
>
25
26
// Microservices
27
#include <
usServiceRegistration.h
>
28
#include <
usModuleContext.h
>
29
#include <
usGetModuleContext.h
>
30
#include <
usModule.h
>
31
#include <
usModuleResource.h
>
32
#include <
usModuleResourceStream.h
>
33
34
namespace
mitk
35
{
36
43
class
MITKPMD_EXPORT
ToFCameraPMDRawDataCamCubeDeviceFactory
:
public
itk::LightObject,
public
AbstractToFDeviceFactory
{
44
45
public
:
46
47
ToFCameraPMDRawDataCamCubeDeviceFactory
()
48
{
49
}
53
std::string
GetFactoryName
()
54
{
55
return
std::string(
"PMD RAW Data Camcube Factory "
);
56
}
57
61
std::string
GetDeviceNamePrefix
()
62
{
63
return
std::string(
"PMD Raw Data CamCube 2.0/3.0"
);
64
}
65
66
private
:
70
ToFCameraDevice::Pointer
CreateToFCameraDevice()
71
{
72
ToFCameraPMDRawDataCamCubeDevice::Pointer
device =
ToFCameraPMDRawDataCamCubeDevice::New
();
73
74
device->SetBoolProperty(
"HasRGBImage"
,
false
);
75
device->SetBoolProperty(
"HasAmplitudeImage"
,
true
);
76
device->SetBoolProperty(
"HasIntensityImage"
,
true
);
77
78
return
device.GetPointer();
79
}
80
81
us::ModuleResource
GetIntrinsicsResource()
82
{
83
us::Module
* module =
us::GetModuleContext
()->
GetModule
();
84
return
module->
GetResource
(
"CalibrationFiles/PMDCamCube3_camera.xml"
);
85
}
86
};
87
}
88
#endif
usModuleResource.h
mitk::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkRenderingManager.h:389
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory::GetFactoryName
std::string GetFactoryName()
Get the name of the factory, here for the ToFPMDRawDataCamCube.
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:53
mitk::AbstractToFDeviceFactory
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
Definition:
mitkAbstractToFDeviceFactory.h:36
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
GetDeviceNamePrefix Main part of the device name.
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:61
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory
ToFPMDRawPlayerDeviceFactory is an implementation of the factory pattern to generate Raw Player Devic...
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:43
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitkCameraIntrinsics.h
usModuleResourceStream.h
us::ModuleResource
Definition:
usModuleResource.h:55
mitkToFConfig.h
mitk::ToFCameraPMDRawDataCamCubeDevice::New
static Pointer New()
ModuleContext::GetModule
Module * GetModule() const
Definition:
usModuleContext.cpp:56
usServiceRegistration.h
usModule.h
mitkCameraIntrinsicsProperty.h
us::Module
Definition:
usModule.h:78
mitk::ToFCameraPMDRawDataCamCubeDeviceFactory::ToFCameraPMDRawDataCamCubeDeviceFactory
ToFCameraPMDRawDataCamCubeDeviceFactory()
Definition:
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h:47
mitkAbstractToFDeviceFactory.h
mitkToFCameraPMDRawDataCamCubeDevice.h
us::Module::GetResource
ModuleResource GetResource(const std::string &path) const
Definition:
usModule.cpp:267
usGetModuleContext.h
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition:
usGetModuleContext.h:50
usModuleContext.h
git
MITK
Modules
ToFHardware
PMD
mitkToFCameraPMDRawDataCamCubeDeviceFactory.h
Generated on Fri Feb 3 2017 20:52:10 for Medical Imaging Interaction Toolkit by
1.8.9.1