Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFCameraMESADevice.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkToFCameraMESADevice_h
17 #define __mitkToFCameraMESADevice_h
18 
19 #include <MitkMESASR4000ModuleExports.h>
20 #include "mitkCommon.h"
21 #include "mitkToFCameraDevice.h"
23 
24 #include "itkObject.h"
25 #include "itkObjectFactory.h"
26 #include "itkMultiThreader.h"
27 #include "itkFastMutexLock.h"
28 
29 
30 namespace mitk
31 {
40  class MITKMESASR4000_EXPORT ToFCameraMESADevice : public ToFCameraDevice
41  {
42  public:
43 
45 
46  itkFactorylessNewMacro(Self)
47  itkCloneMacro(Self)
48 
49 
52  virtual bool OnConnectCamera();
56  virtual bool DisconnectCamera();
61  virtual void StartCamera();
65  virtual void StopCamera();
69  virtual void UpdateCamera();
73  virtual bool IsCameraActive();
80  virtual void GetAmplitudes(float* amplitudeArray, int& imageSequence);
86  virtual void GetIntensities(float* intensityArray, int& imageSequence);
92  virtual void GetDistances(float* distanceArray, int& imageSequence);
102  virtual void GetAllImages(float* distanceArray, float* amplitudeArray, float* intensityArray, char* sourceDataArray,
103  int requiredImageSequence, int& capturedImageSequence, unsigned char* rgbDataArray=NULL);
104 
108  ToFCameraMESAController::Pointer GetController();
109 
113  virtual void SetProperty( const char *propertyKey, BaseProperty* propertyValue );
114 
115  protected:
116 
118 
120 
124  static ITK_THREAD_RETURN_TYPE Acquire(void* pInfoStruct);
128  void GetNextPos();
129 
131 
135 
136  private:
137 
138  };
139 } //END mitk namespace
140 #endif
itk::SmartPointer< Self > Pointer
Virtual interface and base class for all Time-of-Flight devices.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
float ** m_AmplitudeDataBuffer
buffer holding the last amplitude images
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface for all representations of MESA ToF devices. ToFCameraMESADevice internally holds an instan...
float ** m_DistanceDataBuffer
buffer holding the last distance images
float ** m_IntensityDataBuffer
buffer holding the last intensity images
ToFCameraMESAController::Pointer m_Controller
corresponding CameraController