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
mitkKinectDeviceFactory.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 __mitkKinectDeviceFactory_h
17
#define __mitkKinectDeviceFactory_h
18
19
#include <MitkKinectExports.h>
20
#include "
mitkKinectDevice.h
"
21
#include "
mitkAbstractToFDeviceFactory.h
"
22
#include <
mitkCameraIntrinsics.h
>
23
#include <
mitkCameraIntrinsicsProperty.h
>
24
25
// Microservices
26
#include <
usServiceRegistration.h
>
27
#include <
usModuleContext.h
>
28
#include <
usGetModuleContext.h
>
29
#include <
usModule.h
>
30
#include <
usModuleResource.h
>
31
#include <
usModuleResourceStream.h
>
32
33
namespace
mitk
34
{
41
class
MITKKINECT_EXPORT
KinectDeviceFactory
:
public
itk::LightObject,
public
AbstractToFDeviceFactory
{
42
43
public
:
44
49
KinectDeviceFactory
()
50
{
51
}
55
std::string
GetFactoryName
()
56
{
57
return
std::string(
"Kinect Factory"
);
58
}
59
63
std::string
GetDeviceNamePrefix
()
64
{
65
return
std::string(
"Kinect"
);
66
}
67
68
private
:
69
73
ToFCameraDevice::Pointer
CreateToFCameraDevice()
74
{
75
KinectDevice::Pointer
device =
KinectDevice::New
();
76
77
device->SetBoolProperty(
"HasRGBImage"
,
true
);
78
device->SetBoolProperty(
"HasAmplitudeImage"
,
false
);
79
device->SetBoolProperty(
"HasIntensityImage"
,
false
);
80
device->SetBoolProperty(
"KinectReconstructionMode"
,
true
);
81
82
return
device.GetPointer();
83
}
84
92
us::ModuleResource
GetIntrinsicsResource()
93
{
94
us::Module
* module =
us::GetModuleContext
()->
GetModule
();
95
return
module->
GetResource
(
"CalibrationFiles/Kinect_RGB_camera.xml"
);
96
}
97
};
98
}
99
#endif
usModuleResource.h
mitk::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkRenderingManager.h:389
mitk::KinectDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix()
GetDeviceNamePrefix Main part of a device name.
Definition:
mitkKinectDeviceFactory.h:63
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
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitkKinectDevice.h
mitkCameraIntrinsics.h
usModuleResourceStream.h
mitk::KinectDeviceFactory::KinectDeviceFactory
KinectDeviceFactory()
KinectDeviceFactory Default contructor. This factory internally counts all kinect devices starting at...
Definition:
mitkKinectDeviceFactory.h:49
us::ModuleResource
Definition:
usModuleResource.h:55
mitk::KinectDeviceFactory
KinectDeviceFactory is an implementation of the factory pattern to generate Microsoft Kinect devices...
Definition:
mitkKinectDeviceFactory.h:41
ModuleContext::GetModule
Module * GetModule() const
Definition:
usModuleContext.cpp:56
usServiceRegistration.h
usModule.h
mitkCameraIntrinsicsProperty.h
us::Module
Definition:
usModule.h:78
mitkAbstractToFDeviceFactory.h
mitk::KinectDeviceFactory::GetFactoryName
std::string GetFactoryName()
Get the name of the factory, here for the Kinect.
Definition:
mitkKinectDeviceFactory.h:55
mitk::KinectDevice::New
static Pointer New()
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
Kinect
mitkKinectDeviceFactory.h
Generated on Fri Feb 3 2017 20:52:02 for Medical Imaging Interaction Toolkit by
1.8.9.1