Medical Imaging Interaction Toolkit  2016.11.0
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,
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 __mitkToFCameraMITKPlayerDeviceFactory_h
17 #define __mitkToFCameraMITKPlayerDeviceFactory_h
18 
19 #include <MitkToFHardwareExports.h>
22 #include <mitkCameraIntrinsics.h>
24 #include <mitkToFConfig.h>
25 
26 namespace mitk
27 {
35 class MITKTOFHARDWARE_EXPORT ToFCameraMITKPlayerDeviceFactory : public AbstractToFDeviceFactory {
36 
37 public:
38 
39 
41  {
42  }
43 
47  std::string GetFactoryName() override
48  {
49  return std::string("MITK Player Factory");
50  }
51 
52  std::string GetDeviceNamePrefix() override
53  {
54  return std::string("MITK Player");
55  }
56 
57 private:
61  ToFCameraDevice::Pointer CreateToFCameraDevice() override
62  {
64 
66 // //Set default camera intrinsics for the MITK-Player.
67 // mitk::CameraIntrinsics::Pointer cameraIntrinsics = mitk::CameraIntrinsics::New();
68 // std::string pathToDefaulCalibrationFile(MITK_TOF_DATA_DIR);
69 //
70 // pathToDefaulCalibrationFile.append("/CalibrationFiles/Default_Parameters.xml");
71 // cameraIntrinsics->FromXMLFile(pathToDefaulCalibrationFile);
72 // device->SetProperty("CameraIntrinsics", mitk::CameraIntrinsicsProperty::New(cameraIntrinsics));
73 //
75 
76  return device.GetPointer();
77  }
78 };
79 }
80 #endif
itk::SmartPointer< Self > Pointer
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
std::string GetFactoryName() override
Defining the Factorie's Name, here for the ToFPlayer.
DataCollection - Class to facilitate loading/accessing structured data.
ToFPlayerDeviceFactory is an implementation of the factory pattern to generate ToFPlayer devices...