示例#1
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 VtkColorTransferFunctionComposer(VtkColorTransferFunctionComposer source, ICloningContext context)
        {
            context.CloneFields(source, this);

            if (source.LutComposer.ModalityLut != null)             //modality lut is constant; no need to clone.
            {
                InitializeNecessaryLuts(Luts.Modality);
            }

            if (source.LutComposer.NormalizationLut != null)
            {
                LutComposer.NormalizationLut = source.NormalizationLut.Clone();
            }

            if (source.LutComposer.VoiLut != null)             //clone the voi lut.
            {
                (this as IVoiLutInstaller).InstallVoiLut(source.VoiLut.Clone());
            }

            //color map has already been cloned.
        }
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		protected VtkColorTransferFunctionComposer(VtkColorTransferFunctionComposer source, ICloningContext context)
		{
			context.CloneFields(source, this);

			if (source.LutComposer.ModalityLut != null) //modality lut is constant; no need to clone.
				InitializeNecessaryLuts(Luts.Modality);

			if (source.LutComposer.NormalizationLut != null)
				LutComposer.NormalizationLut = source.NormalizationLut.Clone();

			if (source.LutComposer.VoiLut != null) //clone the voi lut.
				(this as IVoiLutInstaller).InstallVoiLut(source.VoiLut.Clone());

			//color map has already been cloned.
		}