protected BaseImageProcessingChainElementCustomizationViewModel(IProcessingChainBuilderDataStore dataStore)
        {
            if (!typeof(IProcessingChainElementTemplate).IsAssignableFrom(typeof(T)))
            {
                throw new InvalidProcessingChainElementException();
            }

            DataStore = dataStore;
        }
Esempio n. 2
0
 public void SetUp()
 {
     _dataStore = new ProcessingChainDataStore();
     _changeCustomizationRegionViewCommandMock = new Mock <IChangeProcessingChainElementCustomizationRegionViewCommand>();
     _dropHandler = new Mock <IProcessingChainDropHandler>().Object;
     _dragHandler = new Mock <IProcessingChainDragHandler>().Object;
     _updateProcessingEngineCommand        = new Mock <IUpdateProcessingEngineCommand>().Object;
     _removeItemFromProcessingChainCommand = new Mock <IRemoveItemFromProcessingChainCommand>().Object;
     _availableProcessingChainElements     = new AvailableProcessingChainElements();
 }
 public UpdateProcessingEngineCommand(IEventAggregator eventAggregator,
                                      IProcessingChainBuilderDataStore processingChainBuilderDataStore,
                                      IImageProviderFactory imageProviderFactory,
                                      IImageProcessingChainFactory imageProcessingChainFactory)
 {
     _imageProviderFactory              = imageProviderFactory;
     _imageProcessingChainFactory       = imageProcessingChainFactory;
     _processingChainBuilderDataStore   = processingChainBuilderDataStore;
     _shouldUpdateProcessingEngineEvent = eventAggregator.GetEvent <ShouldUpdateProcessingEngineEvent>();
 }
        public ImageProviderCustomizationViewModel(IProcessingChainBuilderDataStore dataStore, ISelectFolderCommand selectFolderCommand) : base(dataStore)
        {
            SelectFolderCommand     = selectFolderCommand;
            AvailableBitDepths      = new DisplayableEnumProvider <ImageBitDepth>(ImageBitDepthResources.ResourceManager).GetDisplayableEnums().ToList();
            AvailableImageProviders = new DisplayableEnumProvider <ImageProviderType>(ImageProviderResources.ResourceManager).GetDisplayableEnums().ToList();

            if (ChainElement == null)
            {
                ChainElement = new ImageProviderTemplate();
            }

            SelectFolderCommand.OnFolderSelected = selectedFolder => FolderPath = selectedFolder;
            SelectedTabIndex = (int)SelectedImageProvider;
        }
        public ProcessingChainCustomizationViewModel(IProcessingChainBuilderDataStore processingChainDataStore,
                                                     IAvailableProcessingChainElements availableProcessingChainElements,
                                                     IChangeProcessingChainElementCustomizationRegionViewCommand changeImageProcessingChainElementCustomizationRegionViewCommand,
                                                     IUpdateProcessingEngineCommand updateProcessingEngineCommand,
                                                     IRemoveItemFromProcessingChainCommand removeItemFromProcessingChainCommand,
                                                     IProcessingChainDragHandler dragHandler,
                                                     IProcessingChainDropHandler dropHandler)
        {
            _processingChainDataStore = processingChainDataStore;
            _changeImageProcessingChainElementCustomizationRegionViewCommand = changeImageProcessingChainElementCustomizationRegionViewCommand;

            UpdateProcessingEngineCommand        = updateProcessingEngineCommand;
            RemoveItemFromProcessingChainCommand = removeItemFromProcessingChainCommand;

            DragHandler = dragHandler;
            DropHandler = dropHandler;

            AvailableImageProcessingAlgorithmTemplates = availableProcessingChainElements.ToList();
        }
 public BaseAdjustmentCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
 public BilateralFilterCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
 public HighDefinitionRangeDetailEnhancementCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
Esempio n. 9
0
 public SleeperCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
Esempio n. 10
0
 public ConstantRangeNonUniformityCorrectionCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
Esempio n. 11
0
 public MidwayInfraredEqualizationCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
Esempio n. 12
0
 public RemoveItemFromProcessingChainCommand(IProcessingChainBuilderDataStore dataStore)
 {
     _dataStore = dataStore;
 }
 public DestripeCustomizationViewModel(IProcessingChainBuilderDataStore dataStore) : base(dataStore)
 {
 }
Esempio n. 14
0
 public TwoPointNonUniformityCorrectionCustomizationViewModel(IProcessingChainBuilderDataStore dataStore, ISelectFileCommand selectFileCommand) : base(dataStore)
 {
     SelectFileCommand = selectFileCommand;
     SelectFileCommand.OnFileSelected = selectedFile => { NonUniformityModelFilePath = selectedFile; };
 }