Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CreatePresentationLut Method
See Also 
Leadtools.Dicom Namespace > DicomPrintScu Class : CreatePresentationLut Method



presentationLut
A DicomDataSet object that contains the data of the Presentation LUT to be created. The object is assumed to contain the Presentation LUT Sequence (2050,0010). If this Sequence is not present, the method will fail. This parameter can be set to a null reference (Nothing in Visual Basic) if a Presentation LUT Shape is specified using the parameter presentationLutShape.
presentationLutShape
The Presentation LUT Shape (2050,0020) of the Presentation LUT to be created. This can be set to a null reference (Nothing in Visual Basic) or it can specify an empty string if the parameter presentationLut is not a null reference.
presentationLut
A DicomDataSet object that contains the data of the Presentation LUT to be created. The object is assumed to contain the Presentation LUT Sequence (2050,0010). If this Sequence is not present, the method will fail. This parameter can be set to a null reference (Nothing in Visual Basic) if a Presentation LUT Shape is specified using the parameter presentationLutShape.
presentationLutShape
The Presentation LUT Shape (2050,0020) of the Presentation LUT to be created. This can be set to a null reference (Nothing in Visual Basic) or it can specify an empty string if the parameter presentationLut is not a null reference.
Requests the Print SCP to create a Presentation LUT SOP Instance.

Syntax

Visual Basic (Declaration) 
Public Sub CreatePresentationLut( _
   ByVal presentationLut As DicomDataSet, _
   ByVal presentationLutShape As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomPrintScu
Dim presentationLut As DicomDataSet
Dim presentationLutShape As String
 
instance.CreatePresentationLut(presentationLut, presentationLutShape)
C# 
public void CreatePresentationLut( 
   DicomDataSet presentationLut,
   string presentationLutShape
)
C++/CLI 
public:
void CreatePresentationLut( 
   DicomDataSet^ presentationLut,
   String^ presentationLutShape
) 

Parameters

presentationLut
A DicomDataSet object that contains the data of the Presentation LUT to be created. The object is assumed to contain the Presentation LUT Sequence (2050,0010). If this Sequence is not present, the method will fail. This parameter can be set to a null reference (Nothing in Visual Basic) if a Presentation LUT Shape is specified using the parameter presentationLutShape.
presentationLutShape
The Presentation LUT Shape (2050,0020) of the Presentation LUT to be created. This can be set to a null reference (Nothing in Visual Basic) or it can specify an empty string if the parameter presentationLut is not a null reference.

Example

Remarks

Two of the exceptions that can be thrown by this method are:
Exception TypeCondition
DicomExceptionCode.PrintSCUFailureStatus The response of the Print SCP specifies a Failure status code; no Instance was created.
DicomExceptionCode.PrintSCUClassNotSupported The Presentation LUT SOP Class is not supported on the Association.

The method will fail if none of the parameters is supplied. If both are supplied, presentationLutShape will be ignored.

The method will not return until it receives the response of the Print SCP, or an error occurs. The method GetLastOperationStatus can be used to obtain the status code specified in the response of the Print SCP. If the method CreatePresentationLut is successful, the Presentation LUT was created successfully, with either a Success or Warning status code in the response of the Print SCP.

The method can be used to create one or more Presentation LUTs. Having a Presentation LUT created, the method GetPresentationLutInstanceUid can be used to obtain its SOP Instance UID, which in turn can be used to reference the Presentation LUT from Film Boxes and Grayscale Image Boxes. Refer to the methods CreateFilmBox, UpdateFilmBox, and UpdateImageBox.

The Print SCP can be requested to delete an existing Presentation LUT SOP Instance using the method DeletePresentationLut.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features