MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFCameraMITKPlayerDeviceFactory.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 mitkToFCameraMITKPlayerDeviceFactory_h
13#define mitkToFCameraMITKPlayerDeviceFactory_h
14
15#include <MitkToFHardwareExports.h>
20#include <mitkToFConfig.h>
21
22namespace mitk
23{
31class MITKTOFHARDWARE_EXPORT ToFCameraMITKPlayerDeviceFactory : public AbstractToFDeviceFactory {
32
33public:
34
35
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
53private:
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
ToFPlayerDeviceFactory is an implementation of the factory pattern to generate ToFPlayer devices....
std::string GetFactoryName() override
Defining the Factorie's Name, here for the ToFPlayer.
IGT Exceptions.
Virtual interface and base class for all Time-of-Flight device factories. The basic interface is in t...