/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected FusionOverlayCompositeGraphic(FusionOverlayCompositeGraphic source, ICloningContext context)
		{
			context.CloneFields(source, this);

			_overlayFrameDataReference = source._overlayFrameDataReference.Clone();
			_overlayFrameDataReference.FusionOverlayFrameData.Unloaded += HandleOverlayFrameDataUnloaded;
		}
示例#2
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected FusionPresentationImage(FusionPresentationImage source, ICloningContext context) : base(source, context)
		{
			context.CloneFields(source, this);

			_baseFrameReference = source._baseFrameReference.Clone();
			_overlayFrameDataReference = source._overlayFrameDataReference.Clone();
		}
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected ColorMapManagerProxy(ColorMapManagerProxy source, ICloningContext context)
		{
			context.CloneFields(source, this);

			_placeholderColorMapManager = new ColorMapManager(_placeholderColorMapInstaller = source._placeholderColorMapInstaller.Clone());
			_layerOpacityManager = new XLayerOpacityManager(this);
		}
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected SimpleDataModalityLut(SimpleDataModalityLut source, ICloningContext context)
		{
			context.CloneFields(source, this);

			//clone the actual buffer
			_data = (double[]) source._data.Clone();
		}
		protected AsyncDicomGrayscalePresentationImage(DicomGrayscalePresentationImage source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);

			Initialize();
		}
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected MammogramAnnotationLayoutProxy(MammogramAnnotationLayoutProxy source, ICloningContext context)
		{
			context.CloneFields(source, this);

			// clone the annotation boxes with their state!
			if (source._annotationBoxes != null)
			{
				var annotationBoxes = new Dictionary<object, AnnotationBox>();
				foreach (var sourceBox in source._annotationBoxes.Values)
				{
					var cloneBox = (AnnotationBox) CloneBuilder.Clone(sourceBox);

					// if the box has an item, use the item's identifier as the key
					object key = cloneBox;
					if (cloneBox.AnnotationItem != null)
					{
						key = cloneBox.AnnotationItem.GetIdentifier();

						// if for some reason the key is a duplicate, use the box as the key (but keep it as part of the layout!)
						if (annotationBoxes.ContainsKey(key))
							key = cloneBox;
					}
					annotationBoxes.Add(key, cloneBox);
				}
				_annotationBoxes = annotationBoxes;
			}
		}
示例#7
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected RoiCalloutGraphic(RoiCalloutGraphic source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
			_roiAnalyzers.AddRange(source._roiAnalyzers);
            foreach(var analyzer in _roiAnalyzers)
            {
                analyzer.SetRoiAnalyzerUpdateCallback(Refresh);
            }
		}
示例#8
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		protected SpatialTransform(SpatialTransform source, ICloningContext context)
		{
			context.CloneFields(source, this);

			if (source._cumulativeTransform != null)
				_cumulativeTransform = source._cumulativeTransform.Clone();

			if (source._transform != null)
				_transform = source._transform.Clone();
		}
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected RootModelSpatialTransform(RootModelSpatialTransform source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);

			_rootTransform3D.ParentTransform = this;

			if (source._cumulativeTransform3D != null)
				_cumulativeTransform3D = source._cumulativeTransform3D.Clone();
		}
示例#10
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected GeometricShuttersGraphic(GeometricShuttersGraphic source, ICloningContext context)
			: this(source._imageRectangle.Height, source._imageRectangle.Width)
		{
			context.CloneFields(source, this);

			foreach (GeometricShutter shutter in source._customShutters)
				_customShutters.Add(shutter.Clone());

			foreach (GeometricShutter shutter in source._dicomShutters)
				_dicomShutters.Add(shutter.Clone());
		}
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected MammogramAnnotationLayoutProxy(MammogramAnnotationLayoutProxy source, ICloningContext context)
		{
			context.CloneFields(source, this);

			// clone the annotation boxes with their state!
			if (source._annotationBoxes != null)
			{
				var annotationBoxes = new Dictionary<object, AnnotationBox>();
				foreach (var sourceBox in source._annotationBoxes.Values)
				{
					var cloneBox = (AnnotationBox) CloneBuilder.Clone(sourceBox);
					if (cloneBox.AnnotationItem != null)
						annotationBoxes.Add(cloneBox.AnnotationItem.GetIdentifier(), cloneBox);
					else
						annotationBoxes.Add(cloneBox, cloneBox);
				}
				_annotationBoxes = annotationBoxes;
			}
		}
示例#12
0
		protected ProtractorGraphic (ProtractorGraphic source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
		}
示例#13
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 private InvariantSpatialTransform(InvariantSpatialTransform source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#14
0
 private MinMaxPixelCalculatedLinearLut(MinMaxPixelCalculatedLinearLut source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#15
0
 protected ScaleGraphic(ScaleGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
示例#16
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected InvariantArrowheadGraphic(InvariantArrowheadGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
示例#17
0
            /// <summary>
            /// Cloning constructor.
            /// </summary>
            /// <param name="source">The source object from which to clone.</param>
            /// <param name="context">The cloning context object.</param>
            protected MockPresentationImage(MockPresentationImage source, ICloningContext context) : base(source, context)
            {
                context.CloneFields(source, this);

                _clientRectangleField.SetValue(this, source.ClientRectangle);
            }
            /// <summary>
            /// Cloning constructor.
            /// </summary>
            /// <param name="source">The source object from which to clone.</param>
            /// <param name="context">The cloning context object.</param>
            private FusionOverlayImageGraphic(FusionOverlayImageGraphic source, ICloningContext context) : base(source, context)
            {
                context.CloneFields(source, this);

                _overlayFrameData = source._overlayFrameData.Clone();
            }
示例#19
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected AdjustableDataLut(AdjustableDataLut source, ICloningContext context)
		{
			context.CloneFields(source, this);

			Platform.CheckForNullReference(_dataLut, "_dataLut");
			Platform.CheckForNullReference(_linearLut, "_linearLut");

			_linearLut.LutChanged += OnLinearLutChanged;
			_dataLut.LutChanged += OnDataLutChanged;
		}
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 private BoundableStretchControlGraphic(BoundableStretchControlGraphic source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#21
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 private MoveControlGraphic(MoveControlGraphic source, ICloningContext context) : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#22
0
 private DicomGrayscaleSoftcopyPresentationState(DicomGrayscaleSoftcopyPresentationState source, ICloningContext context) : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#23
0
 /// <summary>
 /// Protected constructor.
 /// </summary>
 protected DicomDisplaySetDescriptor(DicomDisplaySetDescriptor source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
示例#24
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected GrayscalePresentationImage(GrayscalePresentationImage source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#25
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected RoiGraphic(RoiGraphic source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
		}
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected XSpatialTransform(XSpatialTransform source, ICloningContext context) : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#27
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected PolylineGraphic(PolylineGraphic source, ICloningContext context)
			: base()
		{
			context.CloneFields(source, this);
			_points = new PointsList(source._points, this);
		}
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected UserCrosshairCalloutGraphic(UserCrosshairCalloutGraphic source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#29
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected AnchorPointControlGraphic(AnchorPointControlGraphic source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#30
0
 protected NamedVoiLutLinear(NamedVoiLutLinear other, ICloningContext context)
 {
     context.CloneFields(other, this);
 }
        /// <summary>
        /// Cloning constructor.
        /// </summary>
        /// <param name="source">The source object from which to clone.</param>
        /// <param name="context">The cloning context object.</param>
        protected VoiLutManagerProxy(VoiLutManagerProxy source, ICloningContext context)
        {
            context.CloneFields(source, this);

            _placeholderVoiLutManager = new VoiLutManager(new XVoiLutInstaller(source._realVoiLutManager ?? source._placeholderVoiLutManager), false);
        }
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected StandardStatefulGraphic(StandardStatefulGraphic source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
		}
示例#33
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected ImageGraphic(ImageGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
     SetValidationPolicy();
 }
示例#34
0
		private TestDerivedClass(TestDerivedClass source, ICloningContext context)
		{
			context.CloneFields(source, this);
		}
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected SimpleColorMap(SimpleColorMap source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected CompositeImageGraphic(CompositeImageGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected TextPlaceholderControlGraphic(TextPlaceholderControlGraphic source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected DicomSoftcopyPresentationState(DicomSoftcopyPresentationState source, ICloningContext context)
 {
     context.CloneFields(source, this);
     _dicomFile = new DicomFile("", source._dicomFile.MetaInfo.Copy(), source._dicomFile.DataSet.Copy());
 }
示例#39
0
		private void Initialize(TestDefaultConstructor source, ICloningContext context)
		{
			context.CloneFields(source, this);
			CloneInitializeCalled = true;
		}
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected StandardStatefulGraphic(StandardStatefulGraphic source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
			/// <summary>
			/// Cloning constructor.
			/// </summary>
			/// <param name="source">The source object from which to clone.</param>
			/// <param name="context">The cloning context object.</param>
			protected ProgressCompositeGraphic(ProgressCompositeGraphic source, ICloningContext context)
			{
				context.CloneFields(source, this);

				_style = source._style;
			}
示例#42
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected RootSpatialTransform3D(RootSpatialTransform3D source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#43
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected CurvePrimitive(CurvePrimitive source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#44
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected ColorBarGraphic(ColorBarGraphic source, ICloningContext context)
		{
			context.CloneFields(source, this);

			_colorMapManagerProxy = new ColorMapManager(new ColorMapInstallerProxy());
			if (source._colorMapManagerProxy.ColorMap != null)
				_colorMapManagerProxy.SetMemento(source._colorMapManagerProxy.CreateMemento());

			if (source._gradientPixelData != null)
				_gradientPixelData = source._gradientPixelData.Clone();
		}
示例#45
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		private MprMoveControlGraphic(MprMoveControlGraphic source, ICloningContext context) : base(source, context)
		{
			context.CloneFields(source, this);
		}
示例#46
0
		protected MultiframeDisplaySetDescriptor(MultiframeDisplaySetDescriptor source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
		}
示例#47
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		protected ColorImageGraphic(ColorImageGraphic source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);

			if (source.LutComposer.VoiLut != null) //clone the voi lut.
				this.InstallVoiLut(source.VoiLut.Clone());
		}
示例#48
0
 protected KeyImageDisplaySetDescriptor(KeyImageDisplaySetDescriptor source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
示例#49
0
			/// <summary>
			/// Cloning constructor.
			/// </summary>
			/// <param name="source">The source object from which to clone.</param>
			/// <param name="context">The cloning context object.</param>
			protected ColorBarCompositeGraphic(ColorBarCompositeGraphic source, ICloningContext context)
			{
				context.CloneFields(source, this);
			}
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		protected ColorPresentationImage(ColorPresentationImage source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
		}
示例#51
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected SplinePrimitive(SplinePrimitive source, ICloningContext context)
 {
     context.CloneFields(source, this);
     _points = new PointsList(source._points, this);
 }
 protected DicomSoftcopyPresentationStateMaskLutBase(DicomSoftcopyPresentationStateMaskLutBase <T> source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
示例#53
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected OverlayPlaneGraphic(OverlayPlaneGraphic source, ICloningContext context) : base()
		{
			context.CloneFields(source, this);
		}
示例#54
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected OverlayPlaneGraphic(OverlayPlaneGraphic source, ICloningContext context) : base()
 {
     context.CloneFields(source, this);
 }
示例#55
0
		protected SingleImagesDisplaySetDescriptor(SingleImagesDisplaySetDescriptor source, ICloningContext context)
			: base(source, context)
		{
			context.CloneFields(source, this);
		}
示例#56
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 protected PolylineGraphic(PolylineGraphic source, ICloningContext context)
     : base()
 {
     context.CloneFields(source, this);
     _points = new PointsList(source._points, this);
 }
示例#57
0
            /// <summary>
            /// Cloning constructor.
            /// </summary>
            /// <param name="source">The source object from which to clone.</param>
            /// <param name="context">The cloning context object.</param>
            private PlaceholderPresentationImage(PlaceholderPresentationImage source, ICloningContext context)
                : base(source, context)
            {
                _sopReference = source._sopReference.Clone();

                context.CloneFields(source, this);
            }
示例#58
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected ArrowGraphic(ArrowGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
示例#59
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		protected CalloutGraphic(CalloutGraphic source, ICloningContext context)
			: base()
		{
			context.CloneFields(source, this);
		}
示例#60
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 private ExceptionGraphic(ExceptionGraphic source, ICloningContext context) : base()
 {
     context.CloneFields(source, this);
 }