Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
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 #include "itkMultiThreader.h"
23 #include "itkFastMutexLock.h"
24 
25 
26 namespace mitk
27 {
34  {
35  public:
36 
38 
39  itkFactorylessNewMacro(Self);
40 
41  itkCloneMacro(Self);
42 
46  bool OnConnectCamera() override;
50  bool DisconnectCamera() override;
55  void StartCamera() override;
62  void GetAmplitudes(float* amplitudeArray, int& imageSequence) override;
68  void GetIntensities(float* intensityArray, int& imageSequence) override;
74  virtual void GetRgb(unsigned char* rgbArray, int& imageSequence);
80  void GetDistances(float* distanceArray, int& imageSequence) override;
90  void GetAllImages(float* distanceArray, float* amplitudeArray, float* intensityArray, char* sourceDataArray,
91  int requiredImageSequence, int& capturedImageSequence, unsigned char* rgbDataArray=nullptr) override;
96  virtual void SetInputFileName(std::string inputFileName);
97 
101  void SetProperty( const char *propertyKey, BaseProperty* propertyValue ) override;
102 
103  protected:
104 
106 
107  ~ToFCameraMITKPlayerDevice() override;
111  void UpdateCamera() override;
115  static ITK_THREAD_RETURN_TYPE Acquire(void* pInfoStruct);
119  void CleanUpDataBuffers();
123  void AllocateDataBuffers();
124 
125  ToFCameraMITKPlayerController::Pointer m_Controller;
126  std::string m_InputFileName;
127 
128  private:
129 
130  float** m_DistanceDataBuffer;
131  float** m_AmplitudeDataBuffer;
132  float** m_IntensityDataBuffer;
133  unsigned char** m_RGBDataBuffer;
134 
135  };
136 } //END mitk namespace
137 #endif
std::string m_InputFileName
member holding the file name of the current input file
#define MITKTOFHARDWARE_EXPORT
Virtual interface and base class for all Time-of-Flight devices.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
Device class representing a player for MITK-ToF images.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
ToFCameraMITKPlayerController::Pointer m_Controller
member holding the corresponding controller