public DisplaySetFactory(IModalityDisplaySetCreationOptions creationOptions) { _creationOptions = creationOptions; PresentationState defaultPresentationState = new DicomPresentationState { ShowGrayscaleInverted = creationOptions.ShowGrayscaleInverted }; var imageFactory = (PresentationImageFactory)PresentationImageFactory; imageFactory.DefaultPresentationState = defaultPresentationState; _basicFactory = new BasicDisplaySetFactory(imageFactory) { CreateSingleImageDisplaySets = _creationOptions.CreateSingleImageDisplaySets }; if (creationOptions.SplitMultiEchoSeries) { _echoFactory = new MREchoDisplaySetFactory(imageFactory); } if (creationOptions.SplitMultiStackSeries) { _multiFrameStackFactory = new MultiFrameStackDisplaySetFactory(imageFactory); } if (_creationOptions.SplitMixedMultiframes) { _mixedMultiFrameFactory = new MixedMultiFrameDisplaySetFactory(imageFactory); } var externalFactories = new List <IDisplaySetFactory>(); foreach (IDisplaySetFactoryProvider provider in new DisplaySetFactoryProviderExtensionPoint().CreateExtensions()) { externalFactories.AddRange(provider.CreateDisplaySetFactories(imageFactory)); } _externalFactories = externalFactories.AsReadOnly(); _placeholderDisplaySetFactory = new PlaceholderDisplaySetFactory(); }
public KeyImageDisplaySetCreationOptions(IModalityDisplaySetCreationOptions real) { _real = real; }
public DisplaySetFactory(IModalityDisplaySetCreationOptions creationOptions) { _creationOptions = creationOptions; PresentationState defaultPresentationState = new DicomPresentationState { ShowGrayscaleInverted = creationOptions.ShowGrayscaleInverted }; var imageFactory = (PresentationImageFactory)PresentationImageFactory; imageFactory.DefaultPresentationState = defaultPresentationState; _basicFactory = new BasicDisplaySetFactory(imageFactory) { CreateSingleImageDisplaySets = _creationOptions.CreateSingleImageDisplaySets }; if (creationOptions.SplitMultiEchoSeries) _echoFactory = new MREchoDisplaySetFactory(imageFactory); if (_creationOptions.SplitMixedMultiframes) _mixedMultiFrameFactory = new MixedMultiFrameDisplaySetFactory(imageFactory); var externalFactories = new List<IDisplaySetFactory>(); foreach (IDisplaySetFactoryProvider provider in new DisplaySetFactoryProviderExtensionPoint().CreateExtensions()) externalFactories.AddRange(provider.CreateDisplaySetFactories(imageFactory)); _externalFactories = externalFactories.AsReadOnly(); _placeholderDisplaySetFactory = new PlaceholderDisplaySetFactory(); }