GINO Graphics Suite - GINOGRAF v9.5  

ggDrawArrow

Synopsis :

[C/C++:]
void ggDrawArrow(float xhead, float yhead, int head, int mode);
[F90:]
subroutine ggDrawArrow(xhead, yhead, head, mode)

real, intent(in) :: xhead, yhead
integer, intent(in) :: head, mode

Arguments

xhead
Value that specifies the X part of the user space coordinates (if mode = GSPACE) or the X part of the graphical axes coordinates (if mode = GGRAPH), to which the line of the arrow is to be drawn, and at which point the arrowhead is to be drawn

yhead
Value that specifies the Y part of the user space coordinates (if mode = GSPACE) or the Y part of the graphical axes coordinates (if mode = GGRAPH), to which the line of the arrow is to be drawn, and at which point the arrowhead is to be drawn

head
The type of arrowhead to be drawn

= GOPEN Arrowhead open (drawn with two lines only)
= GCLOSED Arrowhead closed (drawn as a triangle)
= GSOLID Arrowhead filled using solid colour in the current line style
mode
Flag specifying whether the point (xhead,yhead) represents user space coordinates or graphical axes coordinates

= GSPACE (xhead,yhead) gives the space coordinates
= GGRAPH (xhead,yhead) gives the graphical axes coordinates

Description

The routine ggDrawArrow() draws a line from the current pen position to the point (xhead, yhead), and draws an arrowhead at that point. The arrowhead is made up of two or three (depending on head) sides of an equilateral triangle. The length of the sides of the triangle is the current character width, unless the tail of the arrow is less than one character width long, in which case the length of the sides of the triangle is half the length of the tail of the arrow. If head is not GOPEN, GSOLID or GCLOSED, a default of GOPEN is assumed. If mode is not GSPACE or GGRAPH, a default of GSPACE is assumed.

See Also

ggDrawArrow Usage
ggMoveToGraphPoint
ggAddGraphLine