本文整理汇总了C#中Dicom.Data.DicomUID类的典型用法代码示例。如果您正苦于以下问题:C# DicomUID类的具体用法?C# DicomUID怎么用?C# DicomUID使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DicomUID类属于Dicom.Data命名空间,在下文中一共展示了DicomUID类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>();
}
示例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;
}
示例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);
}
示例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;
}
示例5: CMoveClient
public CMoveClient()
: base()
{
LogID = "C-Move SCU";
CallingAE = "MOVE_SCU";
CalledAE = "MOVE_SCP";
_moveSopClass = DicomUID.StudyRootQueryRetrieveInformationModelMOVE;
_moveQueries = new Queue<CMoveQuery>();
_current = null;
}
示例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);
}
示例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();
}
示例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;
}
示例9: AddPresentationContext
public void AddPresentationContext(byte pcid, DicomUID abstractSyntax, DicomTransferSyntax transferSyntax, DcmPresContextResult result)
{
_presContexts.Add(pcid, new DcmPresContext(pcid, abstractSyntax, transferSyntax, result));
}
示例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);
}
示例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);
}
示例12: DcmPresContext
public DcmPresContext(byte pcid, DicomUID abstractSyntax)
{
_pcid = pcid;
_result = DcmPresContextResult.Proposed;
_abstract = abstractSyntax;
_transfers = new List<DicomTransferSyntax>();
}
示例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;
}
}
示例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);
}
示例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);
}