Ejemplo n.º 1
0
        /// <summary>
        /// Copy the default dataset attributes to the Information Entities in the Information
        /// Models that define them.
        /// </summary>
        /// <param name="overWriteExistingValue">Boolean to indicate whether any already existing value should be overwritten or not.</param>
        /// <param name="tagSequence">The tag sequence.</param>
        /// <param name="vR">The VR.</param>
        /// <param name="parameters">The value(s).</param>
        public void AddDefaultAttributeToInformationModel(bool overWriteExistingValue, String tagSequence, VR vR, params Object[] parameters)
        {
            // need DicomMessage to be able to set the attribute in the dataset
            DicomMessage dicomMessage = new DicomMessage(DvtkData.Dimse.DimseCommand.UNDEFINED);

            dicomMessage.Set(tagSequence, vR, parameters);
            _root.AddDefaultAttributesToInformationModel(overWriteExistingValue, dicomMessage.DataSet.DvtkDataDataSet);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Copy the default dataset attributes to the Information Entities in the Information
        /// Models that define them. Do not overrule any attribute with the same tag as the default
        /// attribute that may already be in the Information Entity.
        /// </summary>
        /// <param name="parameters">Default attribute - tag, vr, value(s).</param>
        public void AddDefaultAttributeToInformationModel(params Object[] parameters)
        {
            // need DicomMessage to be able to set the attribute in the dataset
            DicomMessage dicomMessage = new DicomMessage(DvtkData.Dimse.DimseCommand.UNDEFINED);

            dicomMessage.Set(parameters);
            _root.AddDefaultAttributesToInformationModel(dicomMessage.DataSet.DvtkDataDataSet);
        }