Beispiel #1
0
NITFPRIV(void) printCircle(NITF_DATA* data)
{
    cgm_CircleElement* circle = (cgm_CircleElement*)data;
    if (circle->attributes)
        cgm_FillAttributes_print(circle->attributes);
    printf("\tOrigin: (%d, %d), Radius: [%d]\n",
            circle->centerX, circle->centerY, circle->radius);

}
Beispiel #2
0
NITFPRIV(void) rectanglePrint(NITF_DATA* data)
{
    cgm_RectangleElement* rect = (cgm_RectangleElement*)data;
    if (rect->attributes)
        cgm_FillAttributes_print( rect->attributes );
    printf("\t");
    if (rect->rectangle)
        cgm_Rectangle_print(rect->rectangle);

}