Ejemplo n.º 1
0
            public override void SetStudyTree(StudyTree studyTree)
            {
                base.SetStudyTree(studyTree);

                _basicFactory.SetStudyTree(studyTree);

                if (_echoFactory != null)
                {
                    _echoFactory.SetStudyTree(studyTree);
                }

                if (_multiFrameStackFactory != null)
                {
                    _multiFrameStackFactory.SetStudyTree(studyTree);
                }

                if (_mixedMultiFrameFactory != null)
                {
                    _mixedMultiFrameFactory.SetStudyTree(studyTree);
                }

                _placeholderDisplaySetFactory.SetStudyTree(studyTree);

                foreach (var factory in _externalFactories)
                {
                    factory.SetStudyTree(studyTree);
                }
            }
Ejemplo n.º 2
0
            public ImageSetFiller(StudyTree studyTree, IDisplaySetCreationOptions displaySetCreationOptions)
            {
                _displaySetCreationOptions = displaySetCreationOptions;
                foreach (IModalityDisplaySetCreationOptions option in displaySetCreationOptions)
                    _modalityDisplaySetFactories[option.Modality] = new DisplaySetFactory(option);

                _modalityDisplaySetFactory = new ModalityDisplaySetFactory();
                _defaultDisplaySetFactory = new BasicDisplaySetFactory();

                foreach (IDisplaySetFactory displaySetFactory in _modalityDisplaySetFactories.Values)
                    displaySetFactory.SetStudyTree(studyTree);

                _modalityDisplaySetFactory.SetStudyTree(studyTree);
                _defaultDisplaySetFactory.SetStudyTree(studyTree);
            }
Ejemplo n.º 3
0
            public ImageSetFiller(StudyTree studyTree, IDisplaySetCreationOptions displaySetCreationOptions)
            {
                _displaySetCreationOptions = displaySetCreationOptions;
                foreach (IModalityDisplaySetCreationOptions option in displaySetCreationOptions)
                {
                    _modalityDisplaySetFactories[option.Modality] = new DisplaySetFactory(option);
                }

                _modalityDisplaySetFactory = new ModalityDisplaySetFactory();
                _defaultDisplaySetFactory  = new BasicDisplaySetFactory();

                foreach (IDisplaySetFactory displaySetFactory in _modalityDisplaySetFactories.Values)
                {
                    displaySetFactory.SetStudyTree(studyTree);
                }

                _modalityDisplaySetFactory.SetStudyTree(studyTree);
                _defaultDisplaySetFactory.SetStudyTree(studyTree);
            }
Ejemplo n.º 4
0
        private static List <IDisplaySet> CreateDisplaySets(IDisplaySetFactory displaySetFactory, IEnumerable <ISopDataSource> sopDataSources, out StudyTree studyTree)
        {
            studyTree = new StudyTree();
            foreach (var sopDataSource in sopDataSources)
            {
                studyTree.AddSop(new ImageSop(sopDataSource));
            }
            displaySetFactory.SetStudyTree(studyTree);

            var displaySets = new List <IDisplaySet>();

            foreach (var patient in studyTree.Patients)
            {
                foreach (var study in patient.Studies)
                {
                    displaySets.AddRange(displaySetFactory.CreateDisplaySets(study));
                }
            }
            return(displaySets);
        }
Ejemplo n.º 5
0
 void IImageSetFactory.SetStudyTree(StudyTree studyTree)
 {
     _studyTree = studyTree;
     _displaySetFactory.SetStudyTree(studyTree);
 }