public GraphicsCompositorLinkViewModel([NotNull] IViewModelServiceProvider serviceProvider, [NotNull] GraphicsCompositorSlotViewModel source, [NotNull] GraphicsCompositorSlotViewModel target)
     : base(serviceProvider)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     if (target == null)
     {
         throw new ArgumentNullException(nameof(target));
     }
     SourceSlot = source;
     TargetSlot = target;
 }
Exemple #2
0
        public override bool CanLinkTo(GraphicsCompositorSlotViewModel target)
        {
            var sharedRenderer = target as SharedRendererInputSlotViewModel;

            return(sharedRenderer != null && Accessor.AcceptValue(sharedRenderer.GetSharedRenderer()));
        }
 public override bool CanLinkTo(GraphicsCompositorSlotViewModel target)
 {
     // TODO: we could easily support linking in that direction
     return(false);
 }
 public abstract bool CanLinkTo(GraphicsCompositorSlotViewModel target);