Medical Imaging Interaction Toolkit  2016.11.0
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,
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 ===================================================================*/
18 #include "itkMultiThreader.h"
19 
20 
21 namespace mitk
22 {
24  {
26  m_InputFileName = "";
27  }
28 
30  {
31  }
32 
33  void ToFCameraPMDPlayerDevice::SetProperty(const char* propertyKey, BaseProperty* propertyValue)
34  {
35  this->m_PropertyList->SetProperty(propertyKey, propertyValue);
36 
37  ToFCameraPMDPlayerController::Pointer myController = dynamic_cast<mitk::ToFCameraPMDPlayerController*>(this->m_Controller.GetPointer());
38 
39  std::string strValue;
40  GetStringProperty(propertyKey, strValue);
41  if (strcmp(propertyKey, "PMDFileName") == 0)
42  {
43  myController->SetPMDFileName(strValue);
44  }
45  }
46 }
itk::SmartPointer< Self > Pointer
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.