Example #1
0
        protected override DisplayData CreateDisplayData()
        {
            var sopInstanceUid = _imageBase.SOPInstanceUID;

            if (DisplayDataTable.ContainsKey(sopInstanceUid))
            {
                return(DisplayDataTable[sopInstanceUid]);
            }

            var sop = StudyTree.GetSop(sopInstanceUid);

            var displayData = sop == null
                ? DataAccessor.CreateImageDataBySOPInstanceUID(sopInstanceUid, true)
                : CreateDisplayDataBy(sop);


            DisplayDataTable.Add(sopInstanceUid, displayData);
            return(displayData);
        }