Medical Imaging Interaction Toolkit  2021.10.99-fd647480
Medical Imaging Interaction Toolkit
mitkToFCameraPMDDevice.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 __mitkToFCameraPMDDevice_h
13 #define __mitkToFCameraPMDDevice_h
14 
15 #include <MitkPMDExports.h>
16 #include "mitkCommon.h"
17 #include "mitkToFCameraDevice.h"
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 #include "itkMultiThreader.h"
23 #include "itkFastMutexLock.h"
24 
25 
26 namespace mitk
27 {
38  class MITKPMD_EXPORT ToFCameraPMDDevice : public ToFCameraDevice
39  {
40  public:
41 
43 
44  itkFactorylessNewMacro(Self);
45 
46  itkCloneMacro(Self);
47 
52  virtual bool OnConnectCamera();
56  virtual bool DisconnectCamera();
62  virtual void StartCamera();
67  virtual void UpdateCamera();
74  virtual void GetAmplitudes(float* amplitudeArray, int& imageSequence);
80  virtual void GetIntensities(float* intensityArray, int& imageSequence);
86  virtual void GetDistances(float* distanceArray, int& imageSequence);
97  virtual void GetAllImages(float* distanceArray, float* amplitudeArray, float* intensityArray, char* sourceDataArray,
98  int requiredImageSequence, int& capturedImageSequence, unsigned char* rgbDataArray=nullptr);
102  ToFCameraPMDController::Pointer GetController();
103 
107  virtual void SetProperty( const char *propertyKey, BaseProperty* propertyValue );
108 
109  protected:
110 
112 
114 
118  virtual void AllocateSourceData();
122  virtual void CleanUpSourceData();
123 
127  static ITK_THREAD_RETURN_TYPE Acquire(void* pInfoStruct);
131  void GetNextPos();
132 
133  ToFCameraPMDController::Pointer m_Controller;
136 
137  private:
138 
139  };
140 } //END mitk namespace
141 #endif
char * m_SourceDataArray
array holding the current PMD source data
Virtual interface and base class for all Time-of-Flight devices.
DataCollection - Class to facilitate loading/accessing structured data.
char ** m_SourceDataBuffer
buffer holding the last acquired images
ToFCameraPMDController::Pointer m_Controller
corresponding CameraController
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Interface for all representations of PMD ToF devices. ToFCameraPMDDevice internally holds an instance...