LDicomDS::GetPresStateImageRefBySOPInstance

#include "Ltdic.h"

pDICOMELEMENT LDicomDS::GetPresStateImageRefBySOPInstance(pszSOPInstanceUID)

Returns a pointer to the item element, which represents a referenced image (SOP Instance) under the "Referenced Image Sequence" in the "Presentation State Module".

Parameters

L_TCHAR * pszSOPInstanceUID

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

Returns

Value Meaning
!NULL SUCCESS
NULL An error occurred.

Comments

A NULL pointer will be returned if the item could not be found.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

L_INT LDicomDS_GetPresStateImageRefBySOPInstanceExample(LDicomDS& PresStateDS, L_TCHAR* pszSOPInstanceUID)  
{ 
   L_TCHAR        szText[256] = TEXT(""); 
   pDICOMELEMENT  pElement = PresStateDS. GetPresStateImageRefBySOPInstance(pszSOPInstanceUID);  
 
   if (pElement)  
   { 
      pElement = PresStateDS.GetChildElement(pElement, TRUE);  
      if (pElement)  
      { 
         pElement = PresStateDS.FindFirstElement(pElement, TAG_REFERENCED_SOP_CLASS_UID, TRUE);  
         L_TCHAR*  pszClassUID = PresStateDS.GetStringValue(pElement, 0, 1);  
         if (pszClassUID)  
         { 
          wsprintf(szText, TEXT("Image Referenced SOP class UID is: %s "), pszClassUID);  
          MessageBox( NULL, szText, TEXT("Note"), MB_OK); 
        } 
      } 
   } 
   return DICOM_SUCCESS; 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help