Medical Imaging Interaction Toolkit  2018.4.99-1640525a
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);
96  virtual void GetAllImages(float* distanceArray, float* amplitudeArray, float* intensityArray, char* sourceDataArray,
97  int requiredImageSequence, int& capturedImageSequence, unsigned char* rgbDataArray=nullptr);
101  ToFCameraPMDController::Pointer GetController();
102 
106  virtual void SetProperty( const char *propertyKey, BaseProperty* propertyValue );
107 
108  protected:
109 
111 
113 
117  virtual void AllocateSourceData();
121  virtual void CleanUpSourceData();
122 
126  static ITK_THREAD_RETURN_TYPE Acquire(void* pInfoStruct);
130  void GetNextPos();
131 
132  ToFCameraPMDController::Pointer m_Controller;
135 
136  private:
137 
138  };
139 } //END mitk namespace
140 #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:40
Interface for all representations of PMD ToF devices. ToFCameraPMDDevice internally holds an instance...