Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkToFCameraMITKPlayerDevice.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 mitkToFCameraMITKPlayerDevice_h
13 #define mitkToFCameraMITKPlayerDevice_h
14 
15 #include <MitkToFHardwareExports.h>
16 #include "mitkCommon.h"
17 #include "mitkToFCameraDevice.h"
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 
23 
24 namespace mitk
25 {
31  class MITKTOFHARDWARE_EXPORT ToFCameraMITKPlayerDevice : public ToFCameraDevice
32  {
33  public:
34 
36 
37  itkFactorylessNewMacro(Self);
38 
39  itkCloneMacro(Self);
40 
44  bool OnConnectCamera() override;
48  bool DisconnectCamera() override;
53  void StartCamera() override;
60  void GetAmplitudes(float* amplitudeArray, int& imageSequence) override;
66  void GetIntensities(float* intensityArray, int& imageSequence) override;
72  virtual void GetRgb(unsigned char* rgbArray, int& imageSequence);
78  void GetDistances(float* distanceArray, int& imageSequence) override;
89  void GetAllImages(float* distanceArray, float* amplitudeArray, float* intensityArray, char* sourceDataArray,
90  int requiredImageSequence, int& capturedImageSequence, unsigned char* rgbDataArray=nullptr) override;
95  virtual void SetInputFileName(std::string inputFileName);
96 
100  void SetProperty( const char *propertyKey, BaseProperty* propertyValue ) override;
101 
102  protected:
103 
105 
106  ~ToFCameraMITKPlayerDevice() override;
110  void UpdateCamera() override;
114  void Acquire();
118  void CleanUpDataBuffers();
122  void AllocateDataBuffers();
123 
124  ToFCameraMITKPlayerController::Pointer m_Controller;
125  std::string m_InputFileName;
126 
127  private:
128 
129  float** m_DistanceDataBuffer;
130  float** m_AmplitudeDataBuffer;
131  float** m_IntensityDataBuffer;
132  unsigned char** m_RGBDataBuffer;
133 
134  };
135 } //END mitk namespace
136 #endif
mitk::ToFCameraMITKPlayerDevice
Device class representing a player for MITK-ToF images.
Definition: mitkToFCameraMITKPlayerDevice.h:31
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::ToFCameraMITKPlayerDevice::m_InputFileName
std::string m_InputFileName
member holding the file name of the current input file
Definition: mitkToFCameraMITKPlayerDevice.h:125
mitk::ToFCameraMITKPlayerDevice::m_Controller
ToFCameraMITKPlayerController::Pointer m_Controller
member holding the corresponding controller
Definition: mitkToFCameraMITKPlayerDevice.h:124
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkToFCameraMITKPlayerController.h
mitkCommon.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ToFCameraDevice
Virtual interface and base class for all Time-of-Flight devices.
Definition: mitkToFCameraDevice.h:37
mitkToFCameraDevice.h