Example #1
0
 public bool ReferencesAllSegments(string seriesInstanceUid, string sopInstanceUid)
 {
     if (_dictionary.ContainsKey(seriesInstanceUid))
     {
         ImageSopInstanceReferenceDictionary sopDictionary = _dictionary[seriesInstanceUid];
         if (sopDictionary == null || sopDictionary.ReferencesAllSegments(sopInstanceUid))
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 public bool ReferencesFrame(string seriesInstanceUid, string sopInstanceUid, int frameNumber)
 {
     if (_dictionary.ContainsKey(seriesInstanceUid))
     {
         ImageSopInstanceReferenceDictionary sopDictionary = _dictionary[seriesInstanceUid];
         if (sopDictionary == null || sopDictionary.ReferencesFrame(sopInstanceUid, frameNumber))
         {
             return(true);
         }
     }
     return(false);
 }
Example #3
0
        public SeriesReferenceDictionary(IEnumerable <IReferencedSeriesSequence> seriesReferences)
        {
            foreach (IReferencedSeriesSequence seriesReference in seriesReferences)
            {
                ImageSopInstanceReferenceDictionary imageSopDictionary = null;
                ImageSopInstanceReferenceMacro[]    imageSopReferences = seriesReference.ReferencedImageSequence;

                if (imageSopReferences != null && imageSopReferences.Length > 0)
                {
                    imageSopDictionary = new ImageSopInstanceReferenceDictionary(imageSopReferences);
                }

                _dictionary.Add(seriesReference.SeriesInstanceUid, imageSopDictionary);
            }
        }