• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DvtkData类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: AddEntry

 private static void AddEntry(DvtkData.Dimse.Tag parent1Tag, DvtkData.Dimse.Tag parent2Tag, DvtkData.Dimse.Tag tag, System.String segment, int fieldIndex, int componentIndex, System.String name, BaseValueConvertor valueConvertor)
 {
     _dicomHl7TagMapCollection.Add(new DicomHl7TagMap(new DicomTagPath(parent1Tag, parent2Tag, tag),
         new Hl7TagPath(new Hl7Tag(segment, fieldIndex), componentIndex, name), valueConvertor));
 }
开发者ID:ewcasas,项目名称:DVTK,代码行数:5,代码来源:DicomHl7TagMapTemplate.cs


示例17: Initialize

        /// <summary>
        /// Class constructor.
        /// </summary>
        /// <param name="command">DIMSE Command ID</param>
        /// <param name="sopClassUid">SOP Class UID</param>
        /// <returns>bool - true = template initialized, false template not initialized</returns>
        public bool Initialize(DvtkData.Dimse.DimseCommand command, System.String sopClassUid)
        {
            bool initialized = true;
            _command = command;
            _sopClassUid = sopClassUid;

            // Only certain templates available
            // Use command and sopClassUid to determine if we can set one up
            if ((command == DvtkData.Dimse.DimseCommand.CFINDRSP) &&
                (sopClassUid == DvtkData.Dul.AbstractSyntax.Modality_Worklist_Information_Model_FIND.UID))
            {
                // Add the comparison tags - these tags will be used to extract the values out of the
                // Dicom Dataset for comparison with other Datasets containing the same tags
                _comparisonTags.Add(new DicomComparisonTag(Tag.SPECIFIC_CHARACTER_SET, VR.CS, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.ACCESSION_NUMBER, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_PROCEDURE_STEP_SEQUENCE, Tag.MODALITY, VR.CS, new CommonStringFormat()));
            //				_comparisonTags.Add(new DicomComparisonTag(Tag.REFERENCED_STUDY_SEQUENCE, VR.SQ, new CommonUidFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_NAME, VR.PN, new CommonNameFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENT_ID, VR.LO, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_BIRTH_DATE, VR.DA, new CommonDateFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_SEX, VR.CS, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.STUDY_INSTANCE_UID, VR.UI, new CommonUidFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.REQUESTED_PROCEDURE_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_PROCEDURE_STEP_SEQUENCE, Tag.SCHEDULED_PROCEDURE_STEP_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.REQUESTED_PROCEDURE_DESCRIPTION, VR.LO, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_PROCEDURE_STEP_SEQUENCE, Tag.SCHEDULED_PROCEDURE_STEP_DESCRIPTION, VR.LO, new CommonStringFormat()));
            }
            else if (command == DvtkData.Dimse.DimseCommand.CSTORERQ)
            {
                // Add the comparison tags - these tags will be used to extract the values out of the
                // Dicom Dataset for comparison with other Datasets containing the same tags
                _comparisonTags.Add(new DicomComparisonTag(Tag.SPECIFIC_CHARACTER_SET, VR.CS, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.ACCESSION_NUMBER, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.MODALITY, VR.CS, new CommonStringFormat()));
            //				_comparisonTags.Add(new DicomComparisonTag(Tag.REFERENCED_STUDY_SEQUENCE, VR.SQ, new CommonUidFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_NAME, VR.PN, new CommonNameFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENT_ID, VR.LO, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_BIRTH_DATE, VR.DA, new CommonDateFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_SEX, VR.CS, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.STUDY_INSTANCE_UID, VR.UI, new CommonUidFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.REQUEST_ATTRIBUTES_SEQUENCE, Tag.REQUESTED_PROCEDURE_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.REQUEST_ATTRIBUTES_SEQUENCE, Tag.SCHEDULED_PROCEDURE_STEP_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.REQUEST_ATTRIBUTES_SEQUENCE, Tag.SCHEDULED_PROCEDURE_STEP_DESCRIPTION, VR.LO, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PERFORMED_PROCEDURE_STEP_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PERFORMED_PROCEDURE_STEP_DESCRIPTION, VR.LO, new CommonStringFormat()));
            }
            else if ((command == DvtkData.Dimse.DimseCommand.NCREATERQ) &&
                (sopClassUid == DvtkData.Dul.AbstractSyntax.Modality_Performed_Procedure_Step.UID))
            {
                // Add the comparison tags - these tags will be used to extract the values out of the
                // Dicom Dataset for comparison with other Datasets containing the same tags
                _comparisonTags.Add(new DicomComparisonTag(Tag.SPECIFIC_CHARACTER_SET, VR.CS, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.ACCESSION_NUMBER, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.MODALITY, VR.CS, new CommonStringFormat()));
            //				_comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.REFERENCED_STUDY_SEQUENCE, VR.SQ, new CommonUidFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_NAME, VR.PN, new CommonNameFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENT_ID, VR.LO, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_BIRTH_DATE, VR.DA, new CommonDateFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PATIENTS_SEX, VR.CS, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.STUDY_INSTANCE_UID, VR.UI, new CommonUidFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.REQUESTED_PROCEDURE_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.SCHEDULED_PROCEDURE_STEP_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.REQUESTED_PROCEDURE_DESCRIPTION, VR.LO, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.SCHEDULED_STEP_ATTRIBUTES_SEQUENCE, Tag.SCHEDULED_PROCEDURE_STEP_DESCRIPTION, VR.LO, new CommonStringFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PERFORMED_PROCEDURE_STEP_ID, VR.SH, new CommonIdFormat()));
                _comparisonTags.Add(new DicomComparisonTag(Tag.PERFORMED_PROCEDURE_STEP_DESCRIPTION, VR.LO, new CommonStringFormat()));
            }
            else
            {
                initialized = false;
            }

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


示例18: GetAttributeValue

        private System.String GetAttributeValue(DvtkData.Dimse.Attribute attribute)
        {
            System.String attributeValue = System.String.Empty;
            if ((attribute == null) ||
                (attribute.Length == 0))
            {
                return attributeValue;
            }

            switch(attribute.ValueRepresentation)
            {
                case VR.AE:
                {
                    ApplicationEntity applicationEntity = (ApplicationEntity)attribute.DicomValue;
                    attributeValue = applicationEntity.Values[0];
                    break;
                }
                case VR.AS:
                {
                    AgeString ageString = (AgeString)attribute.DicomValue;
                    attributeValue = ageString.Values[0];
                    break;
                }
                case VR.CS:
                {
                    CodeString codeString = (CodeString)attribute.DicomValue;

                    // Temp solution for more than one value
                    for (int i = 0; i < codeString.Values.Count; i++)
                    {
                        attributeValue += (codeString.Values[i]);
                        if ((i+1) < codeString.Values.Count)
                        {
                            attributeValue += "\\";
                        }
                    }

                    break;
                }
                case VR.DA:
                {
                    Date date = (Date)attribute.DicomValue;
                    attributeValue = date.Values[0];
                    break;
                }
                case VR.DS:
                {
                    DecimalString decimalString = (DecimalString)attribute.DicomValue;
                    attributeValue = decimalString.Values[0];
                    break;
                }
                case VR.DT:
                {
                    DvtkData.Dimse.DateTime dateTime = (DvtkData.Dimse.DateTime)attribute.DicomValue;
                    attributeValue = dateTime.Values[0];
                    break;
                }
                case VR.IS:
                {
                    IntegerString integerString = (IntegerString)attribute.DicomValue;
                    attributeValue = integerString.Values[0];
                    break;
                }
                case VR.LO:
                {
                    LongString longString = (LongString)attribute.DicomValue;
                    attributeValue = longString.Values[0];
                    break;
                }
                case VR.LT:
                {
                    LongText longText = (LongText)attribute.DicomValue;
                    attributeValue = longText.Value;
                    break;
                }
                case VR.PN:
                {
                    PersonName personName = (PersonName)attribute.DicomValue;
                    attributeValue = personName.Values[0];
                    break;
                }
                case VR.SH:
                {
                    ShortString shortString = (ShortString)attribute.DicomValue;
                    attributeValue = shortString.Values[0];
                    break;
                }
                case VR.SQ:
                {
                    // Special case looking for the SOP Class UID
                    SequenceOfItems sequenceOfItems = (SequenceOfItems)attribute.DicomValue;
                    if ((sequenceOfItems != null) &&
                        (sequenceOfItems.Sequence.Count == 1))
                    {
                        // Special case looking for the SOP Class UID
                        SequenceItem item = sequenceOfItems.Sequence[0];
                        attribute = item.GetAttribute(new Tag(0x0008, 0x1150));
                        attributeValue = GetAttributeValue(attribute);
                    }
                    break;
//.........这里部分代码省略.........
开发者ID:ewcasas,项目名称:DVTK,代码行数:101,代码来源:DicomComparator.cs


示例19: Initialize

        /// <summary>
        /// Initialize the DicomComparator
        /// </summary>
        /// <param name="dicomMessage"></param>
        /// <returns>bool - true = template initialized, false template not initialized</returns>
        public bool Initialize(DvtkData.Dimse.DicomMessage dicomMessage)
        {
            // Set up the comparator using the templates
            bool setUpOk = SetUp(dicomMessage);
            if (setUpOk == true)
            {
                // Load the template with the corresponding attribute values
                setUpOk = LoadTemplate(dicomMessage.DataSet);
            }

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


示例20: SetUp

        public bool SetUp(DvtkData.Dimse.DicomMessage dicomMessage)
        {
            DvtkData.Dimse.DimseCommand command = dicomMessage.CommandField;
            System.String sopClassUid = System.String.Empty;

            // To be fixed - why is the SOP Class UID not always filled in?
            // RB: TODO
            if (command == DvtkData.Dimse.DimseCommand.CSTORERQ)
            {
                sopClassUid = "1.2.840.10008.5.1.4.1.1.7";
            }

            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 setUpDone = _template.Initialize(command, sopClassUid);

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DxfAcadVersion类代码示例发布时间:2022-05-24
下一篇:
C# DvInvocation类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap