Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
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>
18 #include <mitkCameraIntrinsics.h>
20 #include <mitkToFConfig.h>
21 
22 namespace mitk
23 {
32 
33 public:
34 
35 
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
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...
#define MITKTOFHARDWARE_EXPORT
std::string GetFactoryName() override
Defining the Factorie&#39;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...