LDicomDS::FindFirstGraphicAnnSQItem

#include "Ltdic.h"

pDICOMELEMENT LDicomDS::FindFirstGraphicAnnSQItem()

Retrieves the first item under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".

Returns

!NULL

A pointer to a DICOMELEMENT structure that contains the first item under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".

NULL

No items were found

Comments

This function returns the first item under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module". Use this function along with LDicomDS::FindNextGraphicAnnSQItem in order to enumerate all the items under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LDicomDS::FindNextGraphicAnnSQItem, LDicomDS::GetLayerName, LDicomDS::SetLayerName, LDicomDS::CreateGraphicAnnSQItem, LDicomDS::AddLayerImageRef, LDicomDS::GetLayerImageRefCount, LDicomDS::RemoveImageRefFromLayer, LDicomDS::RemoveAllImageRefsFromLayer LDicomDS::RemoveAllImageRefFromAllLayers, LDicomDS::GetLayerImageRefElement, Class Members

Topics:

Working with DICOM Annotations

Example

L_INT LDicomDS_FindFirstGraphicAnnSQItemExample(LDicomDS & PresStateDS) 
{
   pDICOMELEMENT pGraphicAnnSQItem = PresStateDS.FindFirstGraphicAnnSQItem ();
   while (pGraphicAnnSQItem != NULL)
   {
      // Do something !
      pGraphicAnnSQItem = PresStateDS.FindNextGraphicAnnSQItem (pGraphicAnnSQItem);
   }
   return DICOM_SUCCESS;
}