Ejemplo n.º 1
0
        protected override void PerformTypeSpecificDeserialization(DicomPresentationImageCollection <DicomGrayscalePresentationImage> images)
        {
            GrayscaleSoftcopyPresentationStateIod iod = new GrayscaleSoftcopyPresentationStateIod(base.DataSet);

            foreach (DicomGrayscalePresentationImage image in images)
            {
                RectangleF displayedArea;
                this.DeserializeSpatialTransform(iod.SpatialTransform, image);
                this.DeserializeDisplayedArea(iod.DisplayedArea, out displayedArea, image);
                this.DeserializeGraphicLayer(iod.GraphicLayer, image);
                this.DeserializeGraphicAnnotation(iod.GraphicAnnotation, displayedArea, image);
                this.DeserializeOverlayPlane(iod.OverlayPlane, image);
                this.DeserializeOverlayActivation(iod.OverlayActivation, image);
                this.DeserializeBitmapDisplayShutter(iod.BitmapDisplayShutter, image);
                this.DeserializeDisplayShutter(iod.DisplayShutter, image);
                this.DeserializeModalityLut(iod.ModalityLut, image);
                this.DeserializeSoftcopyVoiLut(iod.SoftcopyVoiLut, image);
                this.DeserializeSoftcopyPresentationLut(iod.SoftcopyPresentationLut, image);
            }
        }
Ejemplo n.º 2
0
        protected override void PerformTypeSpecificSerialization(DicomPresentationImageCollection <DicomGrayscalePresentationImage> images)
        {
            IOverlayMapping overlayMapping;
            GrayscaleSoftcopyPresentationStateIod iod = new GrayscaleSoftcopyPresentationStateIod(base.DataSet);

            this.SerializePresentationStateRelationship(iod.PresentationStateRelationship, images);
            this.SerializePresentationStateShutter(iod.PresentationStateShutter);
            this.SerializePresentationStateMask(iod.PresentationStateMask, images);
            this.SerializeMask(iod.Mask, images);
            this.SerializeDisplayShutter(iod.DisplayShutter, images);
            this.SerializeOverlayPlane(iod.OverlayPlane, out overlayMapping, images);
            this.SerializeOverlayActivation(iod.OverlayActivation, overlayMapping, images);
            this.SerializeBitmapDisplayShutter(iod.BitmapDisplayShutter, overlayMapping, images);
            this.SerializeDisplayedArea(iod.DisplayedArea, images);
            this.SerializeGraphicAnnotation(iod.GraphicAnnotation, images);
            this.SerializeSpatialTransform(iod.SpatialTransform, images);
            this.SerializeGraphicLayer(iod.GraphicLayer, images);
            this.SerializeModalityLut(iod.ModalityLut, images);
            this.SerializeSoftcopyVoiLut(iod.SoftcopyVoiLut, images);
            this.SerializeSoftcopyPresentationLut(iod.SoftcopyPresentationLut, images);
        }