The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Spline - A XFig file animator class - Spline object

DESCRIPTION

Spline object - object code in FIG format: 3. Here are all the attributes of this class:

sub_type, line_style, thickness, pen_color, fill_color, depth, pen_style, area_fill, style_val, cap_style, forward_arrow, backward_arrow, npoints, f_arrow_type, f_arrow_style, f_arrow_thickness, f_arrow_width, f_arrow_height, b_arrow_type, b_arrow_style, b_arrow_thickness, b_arrow_width, b_arrow_height, xnpoints, ynpoints, control_points, visibility, center_x, center_y, max_spline_step, high_precision

FIG ATTRIBUTES

sub_type

0: opened approximated spline; 1: closed approximated spline; 2: opened interpolated spline; 3: closed interpolated spline; 4: opened x-spline; 5: closed x-spline.

line_style

-1: Default; 0: Solid; 1: Dashed; 2: Dotted; 3: Dash-dotted; 4: Dash-double-dotted; 5: Dash-triple-dotted.

thickness

80-ths of an inch ("display units")

pen_color

-1..31: FIG colors; 32..543 (512 total): user colors.

fill_color

-1..31: FIG colors; 32..543 (512 total): user colors.

depth

0 ... 999: larger value means object is deeper than (under) objects with smaller depth

pen_style

unused

area_fill

fill type

style_val

length, in 1/80 inches, of the on/off dashes for dashed lines, and the distance between the dots, in 1/80 inches, for dotted lines

cap_style

0 = Butt (default); 1 = Round; 2 = Projecting.

forward_arrow

0: no forward arrow; 1: on

backward_arrow

0: no backward arrow; 1: on

npoints

number of control points in spline

f_arrow_type, b_arrow_type

0: Stick-type (default); 1: Closed triangle; 2: Closed with "indented" butt; 3: Closed with "pointed" butt

f_arrow_style, b_arrow_style

0: Hollow (filled with white); 1: Filled with pen_color

f_arrow_thickness, b_arrow_thickness

1/80 inch

f_arrow_width, b_arrow_width

Fig units

f_arrow_height, b_arrow_height

Fig units

xnpoints, ynpoints

arrays of points coordinates in Fig units

control_points

array of control points values: there is one shape factor for each point. The value of this factor must be between -1 (which means that the spline is interpolated at this point) and 1 (which means that the spline is approximated at this point). The spline is always smooth in the neighbourhood of a control point, except when the value of the factor is 0 for which there is a first-order discontinuity (i.e. angular point).

ADDITONNAL ATTRIBUTES

visibility

0: hidden; 1: shown

center_x, center_y

calculated center (Fig units)

max_spline_step

parameter for computing polyline from spline (default 0.2)

high_precision

parameter for computing polyline from spline (default 0.5)