public ILayerMixingFilterInstance CreateLayerMixingFilter() { ILayerMixingFilterInstance module = LayerMixingFilterService.Instance.GetInstance(TypeId); module.InstanceId = InstanceId; return(module); }
public ILayerMixingFilterInstance GetInstance(Guid id) { LayerMixingFilterModuleManagement moduleManagement = Modules.GetManager <ILayerMixingFilterInstance, LayerMixingFilterModuleManagement>(); ILayerMixingFilterInstance module = moduleManagement.Get(id); return(module); }
public void AddLayer(ILayerMixingFilterInstance mixer) { var layer = new StandardLayer(EnsureUniqueName("Default")) { LayerMixingFilter = mixer }; AddLayer(layer); }
private void ConfigureLayer(object sender, ExecutedRoutedEventArgs executedRoutedEventArgs) { ILayerMixingFilterInstance layerMixingFilterInstance = executedRoutedEventArgs.Parameter as ILayerMixingFilterInstance; var success = layerMixingFilterInstance.Setup(); if (success) { OnLayerChanged(EventArgs.Empty); } }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ILayerMixingFilterInstance layerMixingFilterInstance = value as ILayerMixingFilterInstance; if (layerMixingFilterInstance != null) { return(layerMixingFilterInstance.HasSetup ? Visibility.Visible : Visibility.Collapsed); } return(Visibility.Collapsed); }
private void CanExecuteConfigureLayer(object sender, CanExecuteRoutedEventArgs canExecuteRoutedEventArgs) { ILayerMixingFilterInstance layerMixingFilterInstance = canExecuteRoutedEventArgs.Parameter as ILayerMixingFilterInstance; canExecuteRoutedEventArgs.CanExecute = layerMixingFilterInstance != null && layerMixingFilterInstance.HasSetup; }
public void AddLayer(ILayerMixingFilterInstance mixer) { var layer = new StandardLayer(EnsureUniqueName("Default")) {LayerMixingFilter = mixer}; AddLayer(layer); }