当前位置: 首页>>代码示例>>C#>>正文


C# DvtkData类代码示例

本文整理汇总了C#中DvtkData的典型用法代码示例。如果您正苦于以下问题:C# DvtkData类的具体用法?C# DvtkData怎么用?C# DvtkData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DvtkData类属于命名空间,在下文中一共展示了DvtkData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CommandSet

 internal CommandSet(DvtkData.Dimse.CommandSet dvtkDataCommandSet)
     : base(dvtkDataCommandSet)
 {
     if (dvtkDataCommandSet == null)
     {
         DvtkHighLevelInterfaceException.Throw("Parameter may not be null/Nothing.");
     }
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:8,代码来源:CommandSet.cs

示例2: PresentationContextCollection

 /// <summary>
 /// Constructor that initialized this instance with a DvtkData AcceptedPresentationContextList.
 /// </summary>
 /// <param name="dvtkDataAcceptedPresentationContextList">The DvtkData AcceptedPresentationContextList.</param>
 internal PresentationContextCollection(DvtkData.Dul.AcceptedPresentationContextList dvtkDataAcceptedPresentationContextList)
 {
     foreach (DvtkData.Dul.AcceptedPresentationContext dvtkDataAcceptedPresentationContext in dvtkDataAcceptedPresentationContextList)
     {
         PresentationContext presentationContext = new PresentationContext(dvtkDataAcceptedPresentationContext);
         Add(presentationContext);
     }
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:12,代码来源:PresentationContextCollection.cs

示例3: CommandSet

 /// <summary>
 /// Constructor. Encapsulates a DvtkData.Dimse.CommandSet instance.
 /// </summary>
 /// <param name="dvtkDataCommandSet">The DvtkData.Dimse.CommandSet instance to encapsulate.</param>
 internal CommandSet(DvtkData.Dimse.CommandSet dvtkDataCommandSet)
     : base(dvtkDataCommandSet)
 {
     if (dvtkDataCommandSet == null)
     {
         throw new HliException("Parameter may not be null/Nothing.");
     }
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:12,代码来源:CommandSet.cs

示例4: FileMetaInformation

 internal FileMetaInformation(DvtkData.Dimse.AttributeSet dvtkDataAttributeSet)
     : base(dvtkDataAttributeSet)
 {
     if (dvtkDataAttributeSet == null)
     {
         DvtkHighLevelInterfaceException.Throw("Parameter may not be null/Nothing.");
     }
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:8,代码来源:FileMetaInformation.cs

示例5: DicomComparisonTag

        /// <summary>
        /// Class constructor.
        /// </summary>
        /// <param name="parentSequenceTag">Parent Sequence Tag</param>
        /// <param name="tag">Comparison Tag</param>
        /// <param name="commonDataFormat">Data Format for Tag</param>
        public DicomComparisonTag(DvtkData.Dimse.Tag parentSequenceTag, 
									DvtkData.Dimse.Tag tag, 
									BaseCommonDataFormat commonDataFormat)
        {
            _parentSequenceTag = parentSequenceTag;
            _tag = tag;
            _commonDataFormat = commonDataFormat;
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:14,代码来源:DicomComparisonTag.cs

示例6: ComparePixelAttributes

        /// <summary>
        /// Compare two pixel attributes (i.e. attributes that have VR OB, OF or OW).
        /// </summary>
        /// <param name="attribute1">The first attribute.</param>
        /// <param name="attribute2">The second attribute.</param>
        /// <returns>Indicates if the two are equal or not.</returns>
        public static bool ComparePixelAttributes(
			DvtkData.Dimse.Attribute attribute1, 
			DvtkData.Dimse.Attribute attribute2)
        {
            bool equal = true;

            equal = MAttributeUtilities.ComparePixelAttributes(attribute1, attribute2);

            return(equal);
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:16,代码来源:DvtkDataHelper.cs

示例7: GetValue

        public System.String GetValue(DvtkData.Dimse.Tag sequenceTag, DvtkData.Dimse.Tag tag)
        {
            System.String lValue = System.String.Empty;

            if (_dicomMessage != null)
            {
                lValue = GenerateTriggers.GetValueFromMessageUsingTag(_dicomMessage, sequenceTag, tag);

            }

            return lValue;
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:12,代码来源:DicomQueryItem.cs

示例8: Attribute

        //
        // - Constructors -
        //
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="tagSequence">The tag sequence (one or more tags seperated with an '/') of this attribue.</param>
        /// <param name="attribute">
        /// The encapsulated Attribute from the DvtkData librbary.
        /// May not be null.
        /// </param>
        public Attribute(String tagSequence, DvtkData.Dimse.Attribute dvtkDataAttribute)
        {
            this.tagSequence = tagSequence;

            if (dvtkDataAttribute == null)
            {
                // Sanity check.
                DvtkHighLevelInterfaceException.Throw("Parameter may not be null.");
            }
            else
            {
                this.dvtkDataAttribute = dvtkDataAttribute;
            }
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:25,代码来源:Attribute.cs

示例9: ValidAttribute

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="tagSequence">The tag sequence of the attribute.</param>
        /// <param name="dvtkDataAttribute">The encapsulated DvtkData attribute.</param>
        /// <param name="parentAttributeSet">The AttributeSet this instance is part of.</param>
        public ValidAttribute(TagSequence tagSequence, DvtkData.Dimse.Attribute dvtkDataAttribute, AttributeSet parentAttributeSet)
        {
            // Sanity check.
            if (dvtkDataAttribute == null)
            {
                throw new ArgumentException("Internal error: dvtkDataAttribute may not be null.");
            }

            // Sanity check.
            if (parentAttributeSet == null)
            {
                throw new ArgumentException("Internal error: parentAttributeSet may not be null.");
            }

            TagSequence = tagSequence;
            this.dvtkDataAttribute = dvtkDataAttribute;
            this.parentAttributeSet = parentAttributeSet;
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:24,代码来源:ValidAttribute.cs

示例10: DicomMessage

        /// <summary>
        /// Constructor.
        /// 
        /// Use this constructor to construct the command set and data set based on the 
        /// command set and data set contained in the encapsulated DvtkData DicomMessage.
        /// </summary>
        /// <param name="dvtkDataDicomMessage">The encapsulated DvtkData DicomMessage.</param>
        internal DicomMessage(DvtkData.Dimse.DicomMessage dvtkDataDicomMessage)
        {
            // Sanity check.
            if (dvtkDataDicomMessage == null)
            {
                DvtkHighLevelInterfaceException.Throw("Parameter may not be null.");
            }

            // Create the CommandSet object.
            this.commandSet = new CommandSet(dvtkDataDicomMessage.CommandSet);

            // Create the DataSet object.
            if (dvtkDataDicomMessage.DataSet == null)
            {
                this.dataSet = new DataSet();
            }
            else
            {
                this.dataSet = new DataSet(dvtkDataDicomMessage.DataSet);
            }
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:28,代码来源:DicomMessage.cs

示例11: Initialize

        /// <summary>
        /// Initialize the DicomComparator
        /// </summary>
        /// <param name="dicomMessage"></param>
        /// <returns></returns>
        /// <returns>bool - true = template initialized, false template not initialized</returns>
        public bool Initialize(DvtkData.Dimse.DicomMessage dicomMessage)
        {
            DvtkData.Dimse.DimseCommand command = dicomMessage.CommandField;
            System.String sopClassUid = System.String.Empty;

            DvtkData.Dimse.Attribute attribute = dicomMessage.CommandSet.GetAttribute(DvtkData.Dimse.Tag.AFFECTED_SOP_CLASS_UID);
            if (attribute == null)
            {
                attribute = dicomMessage.CommandSet.GetAttribute(DvtkData.Dimse.Tag.REQUESTED_SOP_CLASS_UID);
            }
            if ((attribute != null) &&
                (attribute.Length != 0))
            {
                UniqueIdentifier uniqueIdentifier = (UniqueIdentifier)attribute.DicomValue;
                sopClassUid = uniqueIdentifier.Values[0];
            }

            // Try to initialise a template
            _template = new DicomComparisonTemplate();
            bool initialized = _template.Initialize(command, sopClassUid);
            if (initialized == true)
            {
                // Load the template with the corresponding attribute values
                initialized = LoadTemplate(dicomMessage.DataSet);
            }

            return initialized;
        }
开发者ID:ewcasas,项目名称:DVTK,代码行数:34,代码来源:DicomComparator.cs

示例12: ReleaseRq

 //
 // - Constructors -
 //
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="dvtkDataReleaseRq">The encapsulated DvtkData A_RELEASE_RQ</param>
 public ReleaseRq(DvtkData.Dul.A_RELEASE_RQ dvtkDataReleaseRq)
     : base(dvtkDataReleaseRq)
 {
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:11,代码来源:ReleaseRq.cs

示例13: DicomComparisonTag

 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="tag">Comparison Tag</param>
 /// <param name="vr">Tag VR.</param>
 /// <param name="commonDataFormat">Data Format for Tag</param>
 public DicomComparisonTag(DvtkData.Dimse.Tag tag, VR vr, BaseCommonDataFormat commonDataFormat)
 {
     _tag = tag;
     _vr = vr;
     _commonDataFormat = commonDataFormat;
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:12,代码来源:DicomComparisonTag.cs

示例14: AssociateAc

 /// <summary>
 /// Constructor to encapsulate an existing DvtkData A_ASSOCIATE_AC.
 /// </summary>
 /// <param name="dvtkDataAssociateAc">The encapsulated DvtkData A_ASSOCIATE_AC</param>
 internal AssociateAc(DvtkData.Dul.A_ASSOCIATE_AC dvtkDataAssociateAc)
     : base(dvtkDataAssociateAc)
 {
     // Do nothing.
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:9,代码来源:AssociateAc.cs

示例15: DulMessage

 //
 // - Constructors -
 //        
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="dvtkDataDulMessage">The encapsulated DvtkData DulMessage.</param>
 internal DulMessage(DvtkData.Dul.DulMessage dvtkDataDulMessage)
 {
     this.dvtkDataDulMessage = dvtkDataDulMessage;
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:11,代码来源:DulMessage.cs


注:本文中的DvtkData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。