formZ SDK | 4.0 Call Back Reference | File Translator | Structured File Translator | Image Vector Call Back

fz_ffmt_cbak_image_vect_write_can_do_arc

Description

Writes a circular arc to a vector file. Circles, ellipses and elliptical arcs are also written with this function. Full circles and ellipses are specified by setting the start angle to 0 and the end angle to 360. Ellipses and elliptical arcs are specified by setting different values to rx and ry. Filled arcs are filled as wedges.
This function should return TRUE if the translator is able to export the arc. If FALSE is returned, formZ will call the translator's fz_ffmt_cbak_image_vect_write_lineset_func to export the arc as polylines. This is useful to translators which can not directly export all possible types of arcs, circles or ellipses. For instance, some translators can not export rotated ellipses.

Plugin Prototype

fzrt_boolean fz_ffmt_cbak_image_vect_write_can_do_arc(

fzrt_int

windex,

fz_ffmt_ref_td

ffmt_id,

void *

data,

double

cx,

double

cy,

double

rx,

double

ry,

double

ang1,

double

ang2,

double

pitch,

fzrt_int

how )

Parameters

windex [Input]

project window index

ffmt_id [Input]

The file format reference id.

data [Input]

A pointer to translator defined data.

cx [Input]

The x location of the center of the center of the arc.

cy [Input]

The y location of the center of the center of the arc.

rx [Input]

The radius along the x-axis.

ry [Input]

The radius along the x-axis.

ang1 [Input]

The angle of the starting point of the arc.

ang2 [Input]

The angle of the end point of the arc.

pitch [Input]

Rotation to apply to the arc.

how [Input]

What the arc represents (i.e. outline, filled polygon, clip polygon)

Bit Flag Type: fz_ffmt_lineset_flags_enum

Returns

FZRT_NOERR on success. An error otherwise.

Availability

5.0.0.0

Function Set

fz_ffmt_cbak_image_fset


Defined in

fz_ffmt_api.h