GINO Graphics Suite - GINO v9.0  

gDrawArrow

Synopsis :

[C/C++:]
void gDrawArrow2D(float xhead, float yhead, int head, ...);
void gDrawArrow3D(float xhead, float yhead, float zhead, int head, ...);
[F90:]
subroutine gDrawArrow2D(xhead, yhead, head, gLabel, gJustified)
subroutine gDrawArrow3D(xhead, yhead, zhead, head, gLabel, gJustified)

real, intent(in) :: xhead, yhead, zhead
integer, intent(in) :: head
character*(*), optional, intent(in) :: gLabel
integer, optional, intent(in) :: gJustified

Arguments

xhead,yhead,zhead
Position in 2D or 3D space of arrow head.

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
gLabel
Optional label

gJustified
Justification of arrow label to its head position

= GLEFT, Left-justified (default)
= GCENTRE, Centre-justified
= GRIGHT, Right-justified

Description

The routines gDrawArrow2D() and gDrawArrow3D() draw a line from the current pen position to the point (xhead, yhead, zhead), and draw 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.

An optional label can be added at the arrow head position using the gLabel and gJustified arguments. The label is drawn using the current character settings.

See Also

gDrawArrow2D Usage
gDrawArrow3D Usage
gMoveTo2D