DICOMGRAPHICOBJECT

typedef struct tagDICOMGRAPHICOBJECT
{
   L_UINT uStructSize;  /* size of this structure */
   L_TCHAR *pszLayerName; /* pointer to the "Graphic Layer" attribute */
   L_UINT uType;  /* value of the "Graphic Type" */
   L_UINT uUnits;  /* value of the "Graphic Annotation Units" */
   L_BOOL bFilled;  /* value that indicates the "Graphic Filled" */
   L_INT16 nPointCount;  /* value that indicates the  "Number of Graphic Points" */
   PDICOMANNPOINT pAnnPoints;  /* pointer to an array of DICOMANNPOINT structures */
} DICOMGRAPHICOBJECT, *pDICOMGRAPHICOBJECT;

The DICOMGRAPHICOBJECT describes the attributes of a "Graphic Annotation" object.

Member

Description

uStructSize

The size of the structure (use sizeof (DICOMGRAPHICOBJECT)).

pszLayerName

Pointer to the "Graphic Layer" (0070,0002) attribute value in the "Graphic Annotation Sequence" (0070,0001)

uType

The value of the attribute "Graphic Type" (0070,0023) in the "Graphic Annotation Module". Enumerated values are:

 

Value

Meaning

 

DICANN_TYPE_POINT

[0x00000001] "POINT"

 

DICANN_TYPE_POLYLINE

[0x00000002] "POLYLINE"

 

DICANN_TYPE_INTERPOLATED

[0x00000003] "INTERPOLATED"

 

DICANN_TYPE_CIRCLE

[0x00000004] "CIRCLE"

 

DICANN_TYPE_ELLIPSE

[0x00000005] "ELLIPSE"

uUnits

The value of the attribute "Graphic Annotation Units" (0070,0005) in the "Graphic Annotation Module". Enumerated values are:

 

Value

Meaning

 

DICANN_UNIT_PIXEL

[0x00000001] "PIXEL"

 

DICANN_UNIT_DISPLAY

[0x00000002] "DISPLAY"

bFilled

Boolean variable, which represents the attribute "Graphic Filled" (0070,0024).

 

Value

Meaning

 

TRUE

Y = yes

 

FALSE

N = no

nPointCount

The value of the attribute "Number of Graphic Points" (0070,0021) in the "Graphic Annotation Module".

pAnnPoints

Pointer to an array of DICOMANNPOINT structures, which represent the points of the graphical object. This member is based on the "Graphic Data" (0070,0022) attribute in the "Graphic Annotation Module".

Comments

The members of this structure are based on some of the attributes of the "Graphic Annotation Module", please see "Graphic Annotation Module Attributes" in the DICOM standard for more details.

Special note about the following members: pszLayerName and pAnnPoints:

When you call a function, which updates this structure (ex. LDicomDS::GetGraphicObjectInfo), LEADTOOLS will fill these members with pointers to the internal memory, which LEADTOOLS manages. You must not free these pointers. When you call a function, which updates internal data from the structure you provide (ex. LDicomDS::SetGraphicObjectInfo), LEADTOOLS expects you to fill these members with pointers to memory that you have allocated and that you manage. You must free these pointers when they are no longer needed.

See Also

Functions:

LDicomDS::CreateGraphicObject, LDicomDS::GetGraphicObjectInfo, LDicomDS::SetGraphicObjectInfo

Topics:

Working with DICOM Annotations