本文整理汇总了C#中Dicom.Data.DicomUID类的典型用法代码示例。如果您正苦于以下问题:C# DicomUID类的具体用法?C# DicomUID怎么用?C# DicomUID使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DicomUID类属于Dicom.Data命名空间,在下文中一共展示了DicomUID类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DcmFilmBox
/// <summary>
/// Initializes new Basic Film Box
/// </summary>
/// <param name="session">Basic Film Session</param>
/// <param name="sopInstance">SOP Instance UID</param>
public DcmFilmBox(DcmFilmSession session, DicomUID sopInstance)
{
_session = session;
_sopInstance = sopInstance;
_dataset = new DcmDataset(DicomTransferSyntax.ImplicitVRLittleEndian);
_boxes = new List<DcmImageBox>();
}
开发者ID:k11hao,项目名称:mdcm-printscp,代码行数:12,代码来源:DicomPrint.cs
示例2: DcmImageBox
/// <summary>
/// Initializes new Basic Image Box
/// </summary>
/// <param name="filmBox">Basic Film Box</param>
/// <param name="sopClass">SOP Class UID</param>
/// <param name="sopInstance">SOP Instance UID</param>
/// <param name="dataset">Dataset</param>
public DcmImageBox(DcmFilmBox filmBox, DicomUID sopClass, DicomUID sopInstance, DcmDataset dataset)
{
_filmBox = filmBox;
_sopClass = sopClass;
_sopInstance = sopInstance;
_dataset = dataset;
}
开发者ID:hide1980,项目名称:mdcm,代码行数:14,代码来源:DcmImageBox.cs
示例3: DcmPresContext
internal DcmPresContext(byte pcid, DicomUID abstractSyntax, DicomTransferSyntax transferSyntax, DcmPresContextResult result) {
_pcid = pcid;
_result = result;
_abstract = abstractSyntax;
_transfers = new List<DicomTransferSyntax>();
_transfers.Add(transferSyntax);
}
开发者ID:mcmssupereditor,项目名称:mdcm,代码行数:7,代码来源:DcmAssociate.cs
示例4: DicomTransferSyntax
public DicomTransferSyntax(DicomUID uid, bool be, bool evr, bool encaps, bool lssy, bool dflt) {
UID = uid;
IsBigEndian = be;
IsExplicitVR = evr;
IsEncapsulated = encaps;
IsLossy = lssy;
IsDeflate = dflt;
Endian = IsBigEndian ? Endian.Big : Endian.Little;
}
开发者ID:hide1980,项目名称:mdcm,代码行数:9,代码来源:DicomTransferSyntax.cs
示例5: CMoveClient
public CMoveClient()
: base()
{
LogID = "C-Move SCU";
CallingAE = "MOVE_SCU";
CalledAE = "MOVE_SCP";
_moveSopClass = DicomUID.StudyRootQueryRetrieveInformationModelMOVE;
_moveQueries = new Queue<CMoveQuery>();
_current = null;
}
开发者ID:fo-dicom,项目名称:mdcm,代码行数:10,代码来源:CMoveClient.cs
示例6: OnReceiveCStoreRequest
protected override void OnReceiveCStoreRequest(byte presentationID, ushort messageID, DicomUID affectedInstance,
DcmPriority priority, string moveAE, ushort moveMessageID, DcmDataset dataset, string fileName)
{
DcmStatus status = DcmStatus.Success;
if (OnCStoreRequest != null)
status = OnCStoreRequest(this, presentationID, messageID, affectedInstance, priority, moveAE, moveMessageID, dataset, fileName);
SendCStoreResponse(presentationID, messageID, affectedInstance, status);
}
开发者ID:hide1980,项目名称:mdcm,代码行数:10,代码来源:CStoreService.cs
示例7: DcmFilmSession
/// <summary>
/// Initializes new Basic Film Session
/// </summary>
/// <param name="sessionClass">Color or Grayscale Basic Print Management UID</param>
/// <param name="sopInstance">SOP Instance UID</param>
/// <param name="dataset">Dataset</param>
public DcmFilmSession(DicomUID sessionClass, DicomUID sopInstance, DcmDataset dataset)
{
_sessionClass = sessionClass;
_sopInstance = sopInstance;
_dataset = dataset;
_boxes = new List<DcmFilmBox>();
if (_sopInstance == null || _sopInstance.UID == String.Empty)
_sopInstance = DicomUID.Generate();
}
开发者ID:hide1980,项目名称:mdcm,代码行数:16,代码来源:DcmFilmSession.cs
示例8: DcmAssociate
public DcmAssociate()
{
_maxPdu = (uint)PDataTFStream.MaxPduSizeLimit;
_appCtxNm = DicomUID.DICOMApplicationContextName;
_implClass = Implementation.ClassUID;
_implVersion = Implementation.Version;
_presContexts = new SortedList<byte, DcmPresContext>();
_negotiateAsync = false;
_opsInvoked = 1;
_opsPerformed = 1;
}
开发者ID:hide1980,项目名称:mdcm,代码行数:11,代码来源:DcmAssociate.cs
示例9: AddPresentationContext
public void AddPresentationContext(byte pcid, DicomUID abstractSyntax, DicomTransferSyntax transferSyntax, DcmPresContextResult result)
{
_presContexts.Add(pcid, new DcmPresContext(pcid, abstractSyntax, transferSyntax, result));
}
开发者ID:hide1980,项目名称:mdcm,代码行数:4,代码来源:DcmAssociate.cs
示例10: SendNSetRequest
protected void SendNSetRequest(byte presentationID, ushort messageID, DicomUID requestedClass, DicomUID requestedInstance, DcmDataset dataset)
{
DcmCommand command = new DcmCommand();
command.RequestedSOPClassUID = requestedClass;
command.CommandField = DcmCommandField.NSetRequest;
command.MessageID = messageID;
command.HasDataset = (dataset != null);
command.RequestedSOPInstanceUID = requestedInstance;
Log.Info("{0} -> N-Set request [pc: {1}; id: {2}; class: {3}]", LogID, presentationID, messageID, requestedClass.Description);
SendDimse(presentationID, command, dataset);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:11,代码来源:DcmNetworkBase.cs
示例11: SendNSetResponse
protected void SendNSetResponse(byte presentationID, ushort messageIdRespondedTo, DicomUID affectedClass, DicomUID affectedInstance,
DcmDataset dataset, DcmStatus status)
{
DcmCommand command = new DcmCommand();
command.AffectedSOPClassUID = affectedClass;
command.CommandField = DcmCommandField.NSetResponse;
command.MessageIDBeingRespondedTo = messageIdRespondedTo;
command.HasDataset = (dataset != null);
command.Status = status;
command.AffectedSOPInstanceUID = affectedInstance;
Log.Info("{0} -> N-Set response [id: {1}; class: {2}]: {3}", LogID, messageIdRespondedTo, affectedClass.Description, status);
SendDimse(presentationID, command, dataset);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:13,代码来源:DcmNetworkBase.cs
示例12: DcmPresContext
public DcmPresContext(byte pcid, DicomUID abstractSyntax)
{
_pcid = pcid;
_result = DcmPresContextResult.Proposed;
_abstract = abstractSyntax;
_transfers = new List<DicomTransferSyntax>();
}
开发者ID:hide1980,项目名称:mdcm,代码行数:7,代码来源:DcmAssociate.cs
示例13: OnPreReceiveCStoreRequest
protected virtual void OnPreReceiveCStoreRequest(byte presentationID, ushort messageID, DicomUID affectedInstance,
DcmPriority priority, string moveAE, ushort moveMessageID, out string fileName)
{
if (UseFileBuffer) {
fileName = Path.GetTempFileName();
} else {
fileName = null;
}
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:9,代码来源:DcmNetworkBase.cs
示例14: SendCStoreResponse
protected void SendCStoreResponse(byte presentationID, ushort messageIdRespondedTo, DicomUID affectedInstance, DcmStatus status)
{
DicomUID affectedClass = Associate.GetAbstractSyntax(presentationID);
DcmCommand command = CreateResponse(messageIdRespondedTo, DcmCommandField.CStoreResponse, affectedClass, status, false);
command.AffectedSOPInstanceUID = affectedInstance;
Log.Info("{0} -> C-Store response [id: {1}]: {2}", LogID, messageIdRespondedTo, status);
SendDimse(presentationID, command, null);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:8,代码来源:DcmNetworkBase.cs
示例15: SendNActionRequest
protected void SendNActionRequest(byte presentationID, ushort messageID, DicomUID requestedClass, DicomUID requestedInstance,
ushort actionTypeID, DcmDataset dataset)
{
DcmCommand command = new DcmCommand();
command.RequestedSOPClassUID = requestedClass;
command.CommandField = DcmCommandField.NActionRequest;
command.MessageID = messageID;
command.HasDataset = (dataset != null);
command.RequestedSOPInstanceUID = requestedInstance;
command.ActionTypeID = actionTypeID;
Log.Info("{0} -> N-Action request [pc: {1}; id: {2}; class: {3}; action: {4:x4}]",
LogID, presentationID, messageID, requestedClass, actionTypeID);
SendDimse(presentationID, command, dataset);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:14,代码来源:DcmNetworkBase.cs
示例16: CreateResponse
private DcmCommand CreateResponse(ushort messageIdRespondedTo, DcmCommandField commandField, DicomUID affectedClass, DcmStatus status, bool hasDataset)
{
DcmCommand command = new DcmCommand();
command.AffectedSOPClassUID = affectedClass;
command.CommandField = commandField;
command.MessageIDBeingRespondedTo = messageIdRespondedTo;
command.HasDataset = hasDataset;
command.Status = status;
if (!String.IsNullOrEmpty(status.ErrorComment))
command.ErrorComment = status.ErrorComment;
return command;
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:12,代码来源:DcmNetworkBase.cs
示例17: SendCStoreRequest
/// <summary>
/// The C-STORE service is used by a DIMSE-service-user to store a composite
/// SOP Instance on a peer DIMSE-service-user. It is a confirmed service.
/// </summary>
/// <param name="presentationID">The Presentation Context ID identifies the
/// Presentation Context within the scope of a specific Association.</param>
/// <param name="messageID">This parameter identifies the operation. It is used
/// to distinguish this operation from other notifications or operations that
/// the DIMSE-service-provider may have in progress. No two identical values
/// for the Message ID (0000,0110) shall be used for outstanding operations or
/// notifications.</param>
/// <param name="affectedInstance">For the request/indication, this parameter
/// specifies the SOP Instance to be stored. It may be included in the
/// response/confirmation. If included in the response/confirmation, this
/// parameter shall be equal to the value in the request/indication.</param>
/// <param name="priority">This parameter specifies the priority of the
/// C-STORE operation. It shall be one of LOW, MEDIUM, or HIGH.</param>
/// <param name="moveAE">This parameter specifies the DICOM AE Title of the
/// DICOM AE which invoked the C-MOVE operation from which this C-STORE
/// sub-operation is being performed.</param>
/// <param name="moveMessageID">This parameter specifies the Message ID (0000,0110)
/// of the C-MOVE request/indication primitive from which this C-STORE
/// sub-operation is being performed.</param>
/// <param name="datastream">The Data Set accompanying the C-STORE primitive
/// contains the Attributes of the Composite SOP Instance to be stored.</param>
protected void SendCStoreRequest(byte presentationID, ushort messageID, DicomUID affectedInstance,
DcmPriority priority, string moveAE, ushort moveMessageID, Stream datastream)
{
DicomUID affectedClass = Associate.GetAbstractSyntax(presentationID);
DcmCommand command = CreateRequest(messageID, DcmCommandField.CStoreRequest, affectedClass, priority, true);
command.AffectedSOPInstanceUID = affectedInstance;
if (moveAE != null && moveAE != String.Empty) {
command.MoveOriginatorAE = moveAE;
command.MoveOriginatorMessageID = moveMessageID;
}
Log.Info("{0} -> C-Store request [pc: {1}; id: {2}] (stream)\n\t=> {3}\n\t=> {4}", LogID, presentationID, messageID, affectedInstance, affectedClass);
SendDimseStream(presentationID, command, datastream);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:40,代码来源:DcmNetworkBase.cs
示例18: OnReceiveNSetResponse
protected virtual void OnReceiveNSetResponse(byte presentationID, ushort messageIdRespondedTo, DicomUID affectedClass, DicomUID affectedInstance,
DcmDataset dataset, DcmStatus status)
{
SendAbort(DcmAbortSource.ServiceProvider, DcmAbortReason.NotSpecified);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:5,代码来源:DcmNetworkBase.cs
示例19: OnReceiveNSetRequest
protected virtual void OnReceiveNSetRequest(byte presentationID, ushort messageID, DicomUID requestedClass, DicomUID requestedInstance, DcmDataset dataset)
{
SendAbort(DcmAbortSource.ServiceProvider, DcmAbortReason.NotSpecified);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:4,代码来源:DcmNetworkBase.cs
示例20: OnReceiveCStoreRequest
protected virtual void OnReceiveCStoreRequest(byte presentationID, ushort messageID, DicomUID affectedInstance,
DcmPriority priority, string moveAE, ushort moveMessageID, DcmDataset dataset, string fileName)
{
SendAbort(DcmAbortSource.ServiceProvider, DcmAbortReason.NotSpecified);
}
开发者ID:JeanLedesma,项目名称:mdcm,代码行数:5,代码来源:DcmNetworkBase.cs
注:本文中的Dicom.Data.DicomUID类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论