Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFCameraPMDO3DeviceFactory.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 __mitkToFCameraPMDO3DeviceFactory_h
17 #define __mitkToFCameraPMDO3DeviceFactory_h
18 
19 #include <MitkPMDExports.h>
22 #include <mitkCameraIntrinsics.h>
24 #include <mitkToFConfig.h>
25 
26 
27 namespace mitk
28 {
36 class MITKPMD_EXPORT ToFCameraPMDO3DeviceFactory : public itk::LightObject, public AbstractToFDeviceFactory {
37 
38 public:
40  {
41  }
42 
46  std::string GetFactoryName()
47  {
48  return std::string("PMD O3D Factory");
49  }
50 
54  std::string GetFactoryName()
55  {
56  return std::string("PMD O3");
57  }
58 
59 private:
63  ToFCameraDevice::Pointer createToFCameraDevice()
64  {
66 
67  device->SetBoolProperty("HasRGBImage", false);
68  device->SetBoolProperty("HasAmplitudeImage", true);
69  device->SetBoolProperty("HasIntensityImage", true);
70 
71  return device.GetPointer();
72  }
73 };
74 }
75 #endif
itk::SmartPointer< Self > Pointer
std::string GetFactoryName()
Defining the Factories Name, here for the ToFPMDO3Device.
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
ToFCameraPMDO3DeviceFactory is an implementation of the factory pattern to generate Do3 Devices...
DataCollection - Class to facilitate loading/accessing structured data.