26 MITK_TEST_BEGIN(
"ToFCameraPMDPlayerController");
29 mitk::ToFCameraPMDPlayerDevice::Pointer pmdPlayerDevice = mitk::ToFCameraPMDPlayerDevice::New();
30 mitk::ToFCameraPMDPlayerController::Pointer pmdPlayerController = mitk::ToFCameraPMDPlayerController::New();
32 MITK_TEST_CONDITION_REQUIRED( pmdPlayerController.IsNotNull(),
"Testing object initialization!");
33 MITK_TEST_CONDITION_REQUIRED( pmdPlayerController->GetCaptureHeight()== 200,
"Testing GetCaptureHeight()");
34 MITK_TEST_CONDITION_REQUIRED( pmdPlayerController->GetCaptureWidth() == 200 ,
"Testing GetCaptureWidth()");
37 MITK_TEST_CONDITION_REQUIRED( !pmdPlayerController->OpenCameraConnection(),
"Testing OpenConnection without valid data!");
40 std::string filePath = MITK_TOF_DATA_DIR;
41 std::string fileName =
"/TestSequence.pmd";
42 filePath.append(fileName);
43 pmdPlayerDevice->SetStringProperty(
"PMDFileName", filePath.c_str());
47 std::string platformVar = MITK_TOF_PLATFORM;
49 if( platformVar ==
"W32")
51 if(std::string(MITK_TOF_PMDFILE_SOURCE_PLUGIN) !=
"")
53 MITK_TEST_CONDITION_REQUIRED( pmdPlayerController->OpenCameraConnection(),
"Testing OpenConnection with valid data!");
54 MITK_TEST_CONDITION_REQUIRED( !pmdPlayerController->GetIntegrationTime() == 0,
"Testing passing of integration time from PMD data!");
55 MITK_TEST_CONDITION_REQUIRED( !pmdPlayerController->GetModulationFrequency() == 0,
"Testing passing of modulation frequency from PMD data!")
58 MITK_TEST_CONDITION_REQUIRED ( pmdPlayerController->CloseCameraConnection(),
"Testing CloseConnection with data!");
62 MITK_TEST_CONDITION_REQUIRED(
true,
"Test case skipped! Wrong platfrom configuration, no driver available!");