MCPcopy Create free account
hub / github.com/CasparCG/client / executeLoadPreview

Method executeLoadPreview

src/Widgets/Rundown/RundownSolidColorWidget.cpp:420–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420void 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
452void RundownSolidColorWidget::executeClearVideolayer()
453{

Callers

nothing calls this directly

Calls 11

getDeviceModelByNameMethod · 0.80
loadColorMethod · 0.80
getPremultipliedColorMethod · 0.80
getTransitionMethod · 0.80
getTweenMethod · 0.80
getDirectionMethod · 0.80
getPreviewChannelMethod · 0.45
getDeviceByNameMethod · 0.45
isConnectedMethod · 0.45
getVideolayerMethod · 0.45
getTransitionDurationMethod · 0.45

Tested by

no test coverage detected