Enables or disables Role Selection. It also sets the User Role and Provider Role, if enabled, for the specified Presentation Context of the DICOM Associate.
#include "ltdic.h"
L_INT LDicomAssociate::SetRoleSelect(nID, bEnabled, nUser, nProvider)
Presentation ID of the Presentation Context in which to set the User Role and Provider Role. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
Flag that indicates whether to enable or disable Role Selection. Possible values are:
Value | Meaning |
---|---|
TRUE | Enable Role Selection. |
FALSE | Disable Role Selection. |
Flag that indicates whether or not to support the User Role for the specified Presentation Context. Possible values are:
Value | Meaning |
---|---|
PDU_ROLE_NON_SUPPORT | [0] Do not support the User Role. |
PDU_ROLE_SUPPORT | [1] Support the User Role. |
Flag that indicates whether or not to support the Provider Role for the specified Presentation Context. Possible values are:
Value | Meaning |
---|---|
PDU_ROLE_NON_SUPPORT | [0] Do not support the Provider Role. |
PDU_ROLE_SUPPORT | [1] Support the Provider Role. |
Value | Meaning |
---|---|
0 | SUCCESS |
>0 | An error occurred. Refer to Return Codes. |
If Role Selection is enabled for a specific Presentation Context, that Application Entity can act as an SCU, an SCP or both for that Presentation Context.
For example, suppose a DICOM Associate Request has three Presentation Contexts. One Presentation Context is for the transfer of X-RAY data, another Presentation Context is for the transfer of CT data, and the third Presentation Context is for the transfer of Nuclear Medicine data.
To serve as an SCU only for the X-RAY data transfer, the User Role for the first Presentation Context should be PDU_ROLE_SUPPORT, while the Provider Role should be PDU_ROLE_NON_SUPPORT.
To serve as both an SCU and an SCP for the CT data transfer, the User Role and the Provider Role should both be PDU_ROLE_SUPPORT for the second Presentation Context.
To serve as an SCU only for the Nuclear Medicine data transfer, the User Role for the third Presentation Context should be PDU_ROLE_SUPPORT, while the Provider Role should be PDU_ROLE_NON_SUPPORT.
If Role Selection is enabled, the User Role and Provider Role settings can be retrieved using LDicomAssociate::GetUserRole and LDicomAssociate::GetProviderRole.
To determine whether Role Selection is enabled, call LDicomAssociate::IsRoleSelect.
Win32, x64
For an example, refer to LDicomAssociate::IsRoleSelect.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document