2D ARROW
CALL SEQUENCE
void tarrow (strid, pointo, pointe, typsta, typend, height, width)
INPUT PARAMETERS
Pint strid;
Ppoint *pointo;
Ppoint *pointe;
Tarrow_type typsta,typend;
Pfloat height;
Pfloat width;
ARGUMENTS
- strid
- Identifier of the arrow structure.
- pointo
- Starting point.
- pointe
- Endpoint.
- typsta
- Type of pattern at starting point:
- TARROW_NO_PATTERN
- No pattern at starting point.
- TARROW_TRIANGLE_DIRECT
- Triangle pointing to starting point.
- TARROW_TRIANGLE_INDIRECT
- Triangle pointing to the endpoint.
- TARROW_RECTANGLE
- Rectangle.
- typend
- Type of pattern at endpoint:
- TARROW_NO_PATTERN
- No pattern at endpoint.
- TARROW_TRIANGLE_DIRECT
- Triangle pointing to the endpoint.
- TARROW_TRIANGLE_INDIRECT
- Triangle pointing to starting point.
- TARROW_RECTANGLE
- Rectangle.
- width
Pattern width (see figure below). This width is given in the
standardized space [0-1] × [0-1] (× [0-1]), defined by the function
tdomain or tdomain3.
- height
Pattern height (see figure below). This height is given in the
standardized space [0-1] × [0-1] (× [0-1]), defined by the function
tdomain or tdomain3.
EFFECT
This function generates (or inserts in an already opened structure, see
tstruct_create_flags) a polyline with an arrow pattern at one or both
ends.
The PHIGS primitive fill area set is used to build the triangle. The PHIGURE
graphic attribute functions concerned are therefore tset_int_style,
tset_int_style_ind, tset_int_colr_ind, tset_edge_flag, tset_edgetype,
tset_edgewidth and tset_edge_colr_ind.
The PHIGS primitive polyline is used to create the vector line. The
PHIGURE graphic attribute functions concerned are therefore
tset_linetype,tset_linewidth and tset_line_colr_ind.
Organization of the structure:
LABEL -1
Polyline of the arrow line
LABEL -2
Fill area set of the pattern at the starting point
LABEL -3
Fill area set of the pattern at the endpoint


