Medical Imaging Interaction Toolkit  2016.11.0
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,
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 __mitkKinectController_h
17 #define __mitkKinectController_h
18 
19 #include <MitkKinectExports.h>
20 #include "mitkCommon.h"
21 #include "mitkToFConfig.h"
22 
23 #include "itkObject.h"
24 #include "itkObjectFactory.h"
25 
26 namespace mitk
27 {
34  class MITKKINECT_EXPORT KinectController : public itk::Object
35  {
36  public:
37 
39 
40  itkFactorylessNewMacro(Self)
41  itkCloneMacro(Self)
42 
43  unsigned int GetCaptureWidth() const;
44  unsigned int GetCaptureHeight() const;
45  bool GetUseIR() const;
46 
47  void SetUseIR(bool useIR);
48 
53  virtual bool OpenCameraConnection();
57  virtual bool CloseCameraConnection();
62  virtual bool UpdateCamera();
67  void GetDistances(float* distances);
68  void GetAmplitudes(float* amplitudes);
69  void GetIntensities(float* intensities);
74  void GetRgb(unsigned char* rgb);
80  void GetAllData(float* distances, float* amplitudes, unsigned char* rgb);
81 
82  protected:
83 
85 
87 
88  private:
89  class KinectControllerPrivate;
90  KinectControllerPrivate *d;
91 
92  };
93 } //END mitk namespace
94 #endif
Interface to the Kinect camera.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53