Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkToFCameraMITKPlayerDeviceFactory.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 mitkToFCameraMITKPlayerDeviceFactory_h
13
#define mitkToFCameraMITKPlayerDeviceFactory_h
14
15
#include <MitkToFHardwareExports.h>
16
#include "
mitkToFCameraMITKPlayerDevice.h
"
17
#include "
mitkAbstractToFDeviceFactory.h
"
18
#include <
mitkCameraIntrinsics.h
>
19
#include <
mitkCameraIntrinsicsProperty.h
>
20
#include <
mitkToFConfig.h
>
21
22
namespace
mitk
23
{
31
class
MITKTOFHARDWARE_EXPORT
ToFCameraMITKPlayerDeviceFactory
:
public
AbstractToFDeviceFactory
{
32
33
public
:
34
35
36
ToFCameraMITKPlayerDeviceFactory
()
37
{
38
}
39
43
std::string
GetFactoryName
()
override
44
{
45
return
std::string(
"MITK Player Factory"
);
46
}
47
48
std::string
GetDeviceNamePrefix
()
override
49
{
50
return
std::string(
"MITK Player"
);
51
}
52
53
private
:
57
ToFCameraDevice::Pointer CreateToFCameraDevice()
override
58
{
59
ToFCameraMITKPlayerDevice::Pointer device =
ToFCameraMITKPlayerDevice::New
();
60
62
// //Set default camera intrinsics for the MITK-Player.
63
// mitk::CameraIntrinsics::Pointer cameraIntrinsics = mitk::CameraIntrinsics::New();
64
// std::string pathToDefaulCalibrationFile(MITK_TOF_DATA_DIR);
65
//
66
// pathToDefaulCalibrationFile.append("/CalibrationFiles/Default_Parameters.xml");
67
// cameraIntrinsics->FromXMLFile(pathToDefaulCalibrationFile);
68
// device->SetProperty("CameraIntrinsics", mitk::CameraIntrinsicsProperty::New(cameraIntrinsics));
69
//
71
72
return
device.GetPointer();
73
}
74
};
75
}
76
#endif
mitkToFCameraMITKPlayerDevice.h
mitkCameraIntrinsics.h
mitkToFConfig.h
mitkCameraIntrinsicsProperty.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitkAbstractToFDeviceFactory.h
mitk::ToFCameraMITKPlayerDeviceFactory::GetFactoryName
std::string GetFactoryName() override
Defining the Factorie's Name, here for the ToFPlayer.
Definition:
mitkToFCameraMITKPlayerDeviceFactory.h:43
mitk::ToFCameraMITKPlayerDeviceFactory::GetDeviceNamePrefix
std::string GetDeviceNamePrefix() override
Definition:
mitkToFCameraMITKPlayerDeviceFactory.h:48
mitk::ToFCameraMITKPlayerDevice::New
static Pointer New()
mitk::ToFCameraMITKPlayerDeviceFactory::ToFCameraMITKPlayerDeviceFactory
ToFCameraMITKPlayerDeviceFactory()
Definition:
mitkToFCameraMITKPlayerDeviceFactory.h:36
mitk::ToFCameraMITKPlayerDeviceFactory
ToFPlayerDeviceFactory is an implementation of the factory pattern to generate ToFPlayer devices....
Definition:
mitkToFCameraMITKPlayerDeviceFactory.h:31
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
mitkToFCameraMITKPlayerDeviceFactory.h
Generated on Wed May 17 2023 16:26:11 for Medical Imaging Interaction Toolkit by
1.8.17