GINO Graphics Suite - GINO v9.0  

gDefineLineStyle

Syntax

[C/C++:]
void gDefineLineStyle(int line, GLINSTY *rep);
[F90:]
subroutine gDefineLineStyle(line ,rep)

integer, intent(in) :: line
type (GLINSTY), intent(in) :: rep

Arguments

line
Line style index

= GCURRENT, Current line style
= 1 - 256, Stored line style

rep.vis
Line visibility (see gSetLineVis())

rep.brk
Broken line type (see gSetBrokenLine())

rep.col
Colour index (see gSetLineColour())

rep.width
Line width (see gSetLineWidth())

rep.type
Pen type (see gSetPenType())

rep.end
Line end (see gSetLineEnd())

Description

GINO keeps a table of line styles in which line attributes may be stored for later use. A call to gDefineLineStyle() allows definition of all attribute values for table entry line when line equals 1 to 256. When line is zero, the current line attributes are redefined. If line is out of range, an error message is output and no further action is taken.

The routine gDefineLineStyle() stores the absolute values of rep.brk, rep.col, rep.width, rep.type, rep.end and outputs a warning message for any negative values.

When a device is nominated (before any calls to gDefineLineStyle()) each table entry is set to the default for the current line attributes except for the colour index, which is set to the corresponding line style index (rep.col = line):

vis        brk      col   width      type      end          
1(visible) 0(solid) line  0.2mm      0         0(no ends)
                          (or device (device
                           default)   default)


See Also

gDefineLineStyle Usage
gSetLineColour
gSetLineEnd
gSetLineStyle
gSetLineVis
gSetLineWidth
gSetPenType