| 418 | } |
| 419 | |
| 420 | void RundownSolidColorWidget::executeLoadPreview() |
| 421 | { |
| 422 | const QSharedPointer<DeviceModel> deviceModel = DeviceManager::getInstance().getDeviceModelByName(this->model.getDeviceName()); |
| 423 | if (deviceModel != NULL && deviceModel->getPreviewChannel() > 0) |
| 424 | { |
| 425 | const QSharedPointer<CasparDevice> device = DeviceManager::getInstance().getDeviceByName(this->model.getDeviceName()); |
| 426 | if (device != NULL && device->isConnected()) |
| 427 | { |
| 428 | device->loadColor(deviceModel->getPreviewChannel(), this->command.getVideolayer(), this->command.getPremultipliedColor(), |
| 429 | this->command.getTransition(), this->command.getTransitionDuration(), this->command.getTween(), |
| 430 | this->command.getDirection(), false); |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | foreach (const DeviceModel& model, DeviceManager::getInstance().getDeviceModels()) |
| 435 | { |
| 436 | if (model.getShadow() == "No") |
| 437 | continue; |
| 438 | |
| 439 | if (model.getPreviewChannel() > 0) |
| 440 | { |
| 441 | const QSharedPointer<CasparDevice> deviceShadow = DeviceManager::getInstance().getDeviceByName(model.getName()); |
| 442 | if (deviceShadow != NULL && deviceShadow->isConnected()) |
| 443 | { |
| 444 | deviceShadow->loadColor(model.getPreviewChannel(), this->command.getVideolayer(), this->command.getPremultipliedColor(), |
| 445 | this->command.getTransition(), this->command.getTransitionDuration(), this->command.getTween(), |
| 446 | this->command.getDirection(), false); |
| 447 | } |
| 448 | } |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | void RundownSolidColorWidget::executeClearVideolayer() |
| 453 | { |
nothing calls this directly
no test coverage detected