예제 #1
0
            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();
            }
예제 #2
0
 public KeyImageDisplaySetCreationOptions(IModalityDisplaySetCreationOptions real)
 {
     _real = real;
 }
예제 #3
0
            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();
            }
예제 #4
0
 public KeyImageDisplaySetCreationOptions(IModalityDisplaySetCreationOptions real)
 {
     _real = real;
 }