ConvertLEADAnnObjToDicomAnnObjs method (ILEADDicomDS Interface)

VB.NET example

C# example

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short ConvertLEADAnnObjToDicomAnnObjs(long hLEADAnnObject, long lFlags);

Overview

Refer to Working with DICOM Annotations

Remarks

The ConvertLEADAnnObjToDicomAnnObjs method converts a LEAD annotation object to one or more DICOM graphic and/or text annotation objects.

The OnConvertLEADAnnObjToDicomAnnObj event will be fired for each DICOM annotation object resulted from the conversion. Based on the parameter bGraphicObject of the event, which indicates the type (graphic or text) of the resulted DICOM object, the attributes of the resulted object can be obtained by accessing the properties specified either by the GraphicObjectAttributes property or by the TextObjectAttributes property. During the handling of the event, the EndConversion method can be used to stop the conversion process.

If a "Graphic Annotation Sequence" (0070,0001) Item (in the "Graphic Annotation Module") is specified by the CurrentElement property when the method is called, the method will automatically add the resulted DICOM annotation objects to the Data Set. If the resulted object is a graphic one, a corresponding Item will be added to the "Graphic Object Sequence" (0070,0009) under the "Graphic Annotation Sequence" Item. Similarly, if the resulted object is a text one, a corresponding Item will be added to the "Text Object Sequence" (0070,0008) under the "Graphic Annotation Sequence" Item. Set the CurrentElement property to 0 when calling the method if you don’t want the resulted objects to be added to the Data Set.

Currently, a subset of the LEADTOOLS annotation objects can be converted (mapped) into DICOM annotation objects; this includes:

image\sqrblit.gif Line objects

image\sqrblit.gif Rectangle objects

image\sqrblit.gif Ellipse objects

image\sqrblit.gif Poly-line objects

image\sqrblit.gif Polygon objects

image\sqrblit.gif Pointer objects

image\sqrblit.gif Freehand objects

image\sqrblit.gif Text objects

image\sqrblit.gif Protractor objects

image\sqrblit.gif Point objects

image\sqrblit.gif Curve objects (interpolated lines)

image\sqrblit.gif Curve Closed objects

image\sqrblit.gif Text Pointer objects

See Also

Elements:

OnConvertLEADAnnObjToDicomAnnObj event, EndConversion method, GraphicObjectAttributes property, TextObjectAttributes property, ConvertDicomAnnObjToLEADAnnObj method

Topics:

ILEADDicomDS Interface, IDicomGraphicObjectAttributes Interface, IDicomTextObjectAttributes Interface

 

Dicom Annotations: Converting Between LEADTOOLS Annotations and DICOM Annotations