Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFCameraPMDCamBoardDevice.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 "mitkRealTimeClock.h"
19 
20 #include "itkMultiThreader.h"
21 
22 
23 namespace mitk
24 {
26  {
28  }
29 
31  {
32  }
33 
34  void ToFCameraPMDCamBoardDevice::SetRegionOfInterest(unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height)
35  {
36  if (m_Controller.IsNotNull())
37  {
38  dynamic_cast<ToFCameraPMDCamBoardController*>(m_Controller.GetPointer())->SetRegionOfInterest(leftUpperCornerX,leftUpperCornerY,width,height);
39  }
40  }
41 
42  void ToFCameraPMDCamBoardDevice::SetProperty( const char *propertyKey, BaseProperty* propertyValue )
43  {
44  this->m_PropertyList->SetProperty(propertyKey, propertyValue);
45  }
46 }
DataCollection - Class to facilitate loading/accessing structured data.
PropertyList::Pointer m_PropertyList
a list of the corresponding properties
Interface to the Time-of-Flight (ToF) camera PMD CamBoard.
ToFCameraPMDController::Pointer m_Controller
corresponding CameraController
Abstract base class for properties.
void SetRegionOfInterest(unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height)
Setting the region of interest, the camera is configured to only output a certain area of the image...
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty