LDicomDS::GetLayerImageRefElement

Summary

Gets the item element of the specified SOP instance under the "Referenced Image Sequence" (0008,1140) in the specified "Graphic Annotation Sequence" (0070,0001) item.

Syntax

#include "Ltdic.h"

pDICOMELEMENT LDicomDS::GetLayerImageRefElement(pGraphicAnnSQItem, pszImageSOPInstance)

Parameters

pDICOMELEMENT pGraphicAnnSQItem

Pointer to an item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".

L_TCHAR* pszImageSOPInstance

SOP Instance UID of the image whose item element is to be retrieved.

Returns

Value Meaning
!NULL SUCCESS
NULL An error occurred. Refer to Return Codes.

Comments

This function retrieves the item element of the specified SOP instance under the "Referenced Image Sequence" (0008,1140) in the specified "Graphic Annotation Sequence" (0070,0001) item.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

L_INT LDicomDS_GetLayerImageRefElementExample(LDicomDS& PresStateDS)  
 
{ 
   pDICOMELEMENT  pGraphicAnnSQItem = PresStateDS.FindFirstGraphicAnnSQItem(); 
   L_TCHAR*       pszSOPInstanceUID = PresStateDS.GetPresStateImageRefSOPInstance(PresStateDS.FindFirstPresStateRefSeriesItem(),0);  
   pDICOMELEMENT  pElement          = PresStateDS.GetLayerImageRefElement (pGraphicAnnSQItem, pszSOPInstanceUID);  
 
   if (pElement)  
 
   { 
 
      MessageBox( NULL, TEXT("Element item found."), TEXT("Note"), MB_OK); 
 
   } 
 
   return DICOM_SUCCESS; 
} 
Help Version 23.0.2024.7.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.