21 MITK_TEST_BEGIN(
"ToFCameraPMDCamBoardController");
23 mitk::ToFCameraPMDCamBoardController::Pointer testObject = mitk::ToFCameraPMDCamBoardController::New();
24 MITK_TEST_CONDITION_REQUIRED(!testObject.GetPointer()==
nullptr,
"Testing initialzation!");
25 MITK_TEST_CONDITION_REQUIRED(testObject->GetCaptureHeight()== 200 ,
"Testing initialization of CaptureHeight");
26 MITK_TEST_CONDITION_REQUIRED(testObject->GetCaptureWidth()== 200 ,
"Testing initialization of CaptureWidth");
27 MITK_TEST_CONDITION_REQUIRED(testObject->OpenCameraConnection(),
"Testing opening of camera connection!");
28 MITK_TEST_CONDITION_REQUIRED(testObject->UpdateCamera(),
"Testing UpdateCamera()");
29 MITK_TEST_CONDITION_REQUIRED(testObject->SetDistanceOffset(0.5f),
"Testing SetDistanceOffset()");
30 MITK_TEST_OUTPUT(<<
"Call GetDistanceOffset()");
31 MITK_INFO<<testObject->GetDistanceOffset();
32 MITK_TEST_CONDITION_REQUIRED(testObject->SetRegionOfInterest(3,5,200,201),
"Testing SetRegionOfInterest()");
33 MITK_TEST_OUTPUT(<<
"Call GetRegionOfInterest()");
34 MITK_INFO<<testObject->GetRegionOfInterest();
35 MITK_TEST_CONDITION_REQUIRED(testObject->SetFieldOfView(35.7f),
"Testing SetFieldOfView()");
36 MITK_TEST_CONDITION_REQUIRED(testObject->CloseCameraConnection(),
"Testing closing of camera connection!");