Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkToFCameraPMDPlayerDevice.cpp
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 ============================================================================*/
14 #include "itkMultiThreader.h"
15 
16 
17 namespace mitk
18 {
20  {
22  m_InputFileName = "";
23  }
24 
26  {
27  }
28 
29  void ToFCameraPMDPlayerDevice::SetProperty(const char* propertyKey, BaseProperty* propertyValue)
30  {
31  this->m_PropertyList->SetProperty(propertyKey, propertyValue);
32 
33  ToFCameraPMDPlayerController::Pointer myController = dynamic_cast<mitk::ToFCameraPMDPlayerController*>(this->m_Controller.GetPointer());
34 
35  std::string strValue;
36  GetStringProperty(propertyKey, strValue);
37  if (strcmp(propertyKey, "PMDFileName") == 0)
38  {
39  myController->SetPMDFileName(strValue);
40  }
41  }
42 }
bool GetStringProperty(const char *propertyKey, std::string &string)
get a string from the property list
DataCollection - Class to facilitate loading/accessing structured data.
PropertyList::Pointer m_PropertyList
a list of the corresponding properties
std::string m_InputFileName
input file name for data stored in an .pmd file
ToFCameraPMDController::Pointer m_Controller
corresponding CameraController
Abstract base class for properties.
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty
Interface to read ToF data from a PMD file.