Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFCameraPMDPlayerController.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 __mitkToFCameraPMDPlayerController_h
17 #define __mitkToFCameraPMDPlayerController_h
18 
19 #include <MitkPMDExports.h>
21 
22 #include "itkObject.h"
23 #include "itkObjectFactory.h"
24 
25 namespace mitk
26 {
34  {
35  public:
36 
38 
39  itkFactorylessNewMacro(Self)
40  itkCloneMacro(Self)
41 
42  itkSetMacro(PMDFileName, std::string);
43 
44  itkGetMacro(PMDFileName, std::string);
45 
49  bool OpenCameraConnection();
55  int SetModulationFrequency(unsigned int modulationFrequency);
61  int SetIntegrationTime(unsigned int integrationTime);
62 
63  protected:
64 
65  /*
66  \brief Transform method used for phyical camera devices. For the player no transform is needed.
67  */
68  virtual void TransformCameraOutput(float* in, float* out, bool isDist){};
69 
71 
73 
74  std::string m_PMDFileName;
75 
76  private:
77  unsigned int m_NumOfFrames;
78 
79  };
80 } //END mitk namespace
81 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Virtual interface and base class for all PMD Time-of-Flight devices. Wraps PMD API provided in PMDSDK...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
std::string m_PMDFileName
File name of the pmd data stream.
static bool in(Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4)
Definition: jsoncpp.cpp:244
virtual void TransformCameraOutput(float *in, float *out, bool isDist)
Interface to read ToF data from a PMD file.