MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFCameraPMDPlayerDeviceFactory.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 mitkToFCameraPMDPlayerDeviceFactory_h
13#define mitkToFCameraPMDPlayerDeviceFactory_h
14
15#include <MitkPMDExports.h>
20#include <mitkToFConfig.h>
21
22namespace mitk
23{
30class MITKPMD_EXPORT ToFCameraPMDPlayerDeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
31
32public:
43 std::string GetFactoryName()
44 {
45 return std::string("PMD Player Factory");
46 }
47
53 std::string GetDeviceNamePrefix()
54 {
55 return std::string("PMD Player");
56 }
57
58private:
62 ToFCameraDevice::Pointer CreateToFCameraDevice()
63 {
64 ToFCameraPMDPlayerDevice::Pointer device = ToFCameraPMDPlayerDevice::New();
65
66 device->SetBoolProperty("HasRGBImage", false);
67 device->SetBoolProperty("HasAmplitudeImage", true);
68 device->SetBoolProperty("HasIntensityImage", true);
69
70 return device.GetPointer();
71 }
72};
73}
74#endif
ToFPMDPlayerDeviceFactory is an implementation of the factory pattern to generate PMD Player Devices....
ToFCameraPMDPlayerDeviceFactory()
ToFCameraPMDPlayerDeviceFactory Default contructor. This factory internally counts all PMD Player dev...
std::string GetDeviceNamePrefix()
GetCurrentDeviceName Get the name of the current Cam Cube. First device is named "PMD Player",...
std::string GetFactoryName()
Get the name of the factory, here for the ToFPMDPlayer.
IGT Exceptions.
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...