MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFCameraPMDPlayerDevice.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
14#include "itkMultiThreader.h"
15
16
17namespace mitk
18{
20 {
21 m_Controller = ToFCameraPMDPlayerController::New();
22 m_InputFileName = "";
23 }
24
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}
PropertyList::Pointer m_PropertyList
a list of the corresponding properties
bool GetStringProperty(const char *propertyKey, std::string &string)
get a string from the property list
ToFCameraPMDController::Pointer m_Controller
corresponding CameraController
Interface to read ToF data from a PMD file.
std::string m_InputFileName
input file name for data stored in an .pmd file
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty
IGT Exceptions.
int strcmp(const String &s1, const String &s2)
Definition relates.cpp:14