/// <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; }
/// <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; } }
/// <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); } }
/// <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(); }
/// <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; } }
protected ProtractorGraphic (ProtractorGraphic 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> private InvariantSpatialTransform(InvariantSpatialTransform source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }
private MinMaxPixelCalculatedLinearLut(MinMaxPixelCalculatedLinearLut source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }
protected ScaleGraphic(ScaleGraphic source, ICloningContext context) { context.CloneFields(source, this); }
/// <summary> /// Cloning constructor. /// </summary> protected InvariantArrowheadGraphic(InvariantArrowheadGraphic 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 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(); }
/// <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); }
/// <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); }
private DicomGrayscaleSoftcopyPresentationState(DicomGrayscaleSoftcopyPresentationState source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }
/// <summary> /// Protected constructor. /// </summary> protected DicomDisplaySetDescriptor(DicomDisplaySetDescriptor source, ICloningContext context) { context.CloneFields(source, this); }
/// <summary> /// Cloning constructor. /// </summary> protected GrayscalePresentationImage(GrayscalePresentationImage 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 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); }
/// <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); }
/// <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); }
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); }
/// <summary> /// Cloning constructor. /// </summary> protected ImageGraphic(ImageGraphic source, ICloningContext context) { context.CloneFields(source, this); SetValidationPolicy(); }
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()); }
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 ProgressCompositeGraphic(ProgressCompositeGraphic source, ICloningContext context) { context.CloneFields(source, this); _style = source._style; }
/// <summary> /// Cloning constructor. /// </summary> protected RootSpatialTransform3D(RootSpatialTransform3D 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 CurvePrimitive(CurvePrimitive 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 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(); }
/// <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); }
protected MultiframeDisplaySetDescriptor(MultiframeDisplaySetDescriptor source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }
/// <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()); }
protected KeyImageDisplaySetDescriptor(KeyImageDisplaySetDescriptor 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 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); }
/// <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); }
/// <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); }
protected SingleImagesDisplaySetDescriptor(SingleImagesDisplaySetDescriptor 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> private PlaceholderPresentationImage(PlaceholderPresentationImage source, ICloningContext context) : base(source, context) { _sopReference = source._sopReference.Clone(); context.CloneFields(source, this); }
/// <summary> /// Cloning constructor. /// </summary> protected ArrowGraphic(ArrowGraphic source, ICloningContext context) { context.CloneFields(source, this); }
/// <summary> /// Cloning constructor. /// </summary> protected CalloutGraphic(CalloutGraphic source, ICloningContext context) : base() { context.CloneFields(source, this); }
/// <summary> /// Cloning constructor. /// </summary> private ExceptionGraphic(ExceptionGraphic source, ICloningContext context) : base() { context.CloneFields(source, this); }