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); }
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); }
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); } }