Medical Imaging Interaction Toolkit  2018.4.99-36d69b77
Medical Imaging Interaction Toolkit
mitkKinectController.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 __mitkKinectController_h
13 #define __mitkKinectController_h
14 
15 #include <MitkKinectExports.h>
16 #include "mitkCommon.h"
17 #include "mitkToFConfig.h"
18 
19 #include "itkObject.h"
20 #include "itkObjectFactory.h"
21 
22 namespace mitk
23 {
30  class MITKKINECT_EXPORT KinectController : public itk::Object
31  {
32  public:
33 
35 
36  itkFactorylessNewMacro(Self);
37 
38  itkCloneMacro(Self);
39 
40  unsigned int GetCaptureWidth() const;
41  unsigned int GetCaptureHeight() const;
42  bool GetUseIR() const;
43 
44  void SetUseIR(bool useIR);
45 
50  virtual bool OpenCameraConnection();
54  virtual bool CloseCameraConnection();
59  virtual bool UpdateCamera();
64  void GetDistances(float* distances);
65  void GetAmplitudes(float* amplitudes);
66  void GetIntensities(float* intensities);
71  void GetRgb(unsigned char* rgb);
77  void GetAllData(float* distances, float* amplitudes, unsigned char* rgb);
78 
79  protected:
80 
82 
84 
85  private:
86  class KinectControllerPrivate;
87  KinectControllerPrivate *d;
88 
89  };
90 } //END mitk namespace
91 #endif
Interface to the Kinect camera.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49