ConvertLEADAnnObjToDicomAnnObjs method (ILEADDicomDS Interface)
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:
Line objects
Rectangle objects
Ellipse objects
Poly-line objects
Polygon objects
Pointer objects
Freehand objects
Text objects
Protractor objects
Point objects
Curve objects (interpolated lines)
Curve Closed objects
Text Pointer objects
See Also