コード例 #1
0
        /// <summary>
        /// Return the DicomMessages from this collection that have the specified DimseCommand.
        /// </summary>
        /// <param name="dimseCommand">the DimseCommand.</param>
        /// <returns>The DicomMessages with the specified DimseCommand.</returns>
        private DicomMessageCollection DicomMessagesForDimseCommand(DvtkData.Dimse.DimseCommand dimseCommand)
        {
            DicomMessageCollection dicomMessages = new DicomMessageCollection();

            foreach (DicomMessage dicomMessage in this)
            {
                if (dicomMessage.CommandSet.DimseCommand == dimseCommand)
                {
                    dicomMessages.Add(dicomMessage);
                }
            }

            return(dicomMessages);
        }
コード例 #2
0
ファイル: CommandSet.cs プロジェクト: top501/DVTK
 /// <summary>
 /// Constructor. Creates an empty Command Set.
 /// </summary>
 /// <param name="dimseCommand">The Dimse Command.</param>
 internal CommandSet(DvtkData.Dimse.DimseCommand dimseCommand) : base(new DvtkData.Dimse.CommandSet(dimseCommand))
 {
     // Do nothing.
 }
コード例 #3
0
 /// <summary>
 /// <see cref="IDefinitionManagement.GetIodNameFromDefinition"/>
 /// </summary>
 public System.String GetIodNameFromDefinition(DvtkData.Dimse.DimseCommand command, System.String uid)
 {
     System.String iodName = this.m_adaptee.get_IodNameFromDefinition(command, uid);
     return(iodName);
 }
コード例 #4
0
 /// <summary>
 /// Constructor.
 ///
 /// Use this constructor to create a DicomMessage with an empty command set
 /// and the given Dataset.
 /// </summary>
 /// <param name="dimseCommand">The Dimse command.</param>
 /// <param name="dataSet">The Dataset.</param>
 public DicomMessage(DvtkData.Dimse.DimseCommand dimseCommand, DataSet dataSet)
 {
     this.commandSet = new CommandSet(dimseCommand);
     this.dataSet    = dataSet;
 }
コード例 #5
0
 /// <summary>
 /// <see cref="IDefinitionManagement.GetFileNameFromSOPUID"/>
 /// </summary>
 public System.String GetFileNameFromSOPUID(DvtkData.Dimse.DimseCommand command, System.String uid)
 {
     System.String fileName = this.m_adaptee.get_FileNameFromSOPUID(command, uid);
     return(fileName);
 }