Syntax
[C/C++:]
void gSetFillAttribs(int fill, int line, int inv);
[F90:]
subroutine gSetFillAttribs(fill, line, inv)
integer, intent(in) :: fill,line,inv
Arguments
fill
Global fill style
|
= 1 - 256, |
Fill style index (hardware fill) or hatch style index (software fill) |
|
> 256, |
Fill style index (hardware fill) or solid fill (software fill) |
line
Global fill line style
|
= GCURRENT, |
Current line style |
|
= 1 - 256, |
Line style index |
|
> 256, |
Current line style |
inv
Global inverse fill flag
|
= GINVERSE, |
Fill all but polygons (inverse fill) |
Description
The routine gSetFillAttribs() sets the global filling attributes for the polygon and rectangle filling routines where these are not overridded by local arguments.
fill defines the fill style. The constant GHOLLOW specifies that only the boundary is to be drawn and GSOLID defines solid fill. Values between 1 and 256 point to the entries in the hatch style table (see gDefineHatchStyle()) and thus specifies the hatch style for the fill. Whether an area is filled by software or hardware is determined by gSetFillMode(). If hardware fill is enabled,
fill may be interpreted in a device dependent way.
By default, hardware fill is attempted. If it is not possible to fill using the device's hardware then GINO defaults to the hatch style specified by
fill. If
fill is out of range for software filling, a solid fill is used by default.
line defines the line style used for the boundary or fill style. A value of
line between 1 and 256 points to an entry in the line style table (see gDefineLineStyle()) and specifies additional attributes for the fill, usually a colour for hardware fill and a line type and colour for hatching. The current line style is left unchanged.
A value for
line which is zero or greater than 256 specifies the current line style.
A value for
line less that zero or
fill less than -1 generates a warning message and its positive value is used.
inv defines whether the inside of the polygon is filled, or if
inv = GINVERSE, the inverse area is filled up to the current clipping limits.
See Also
gEnqFillAttribs UsagegFillPolygonBy2DgFillPolygonBy3D
gFillPolygonSet
gFillPolygonTo2D
gFillPolygonTo3D
gFillRect
gFillSelectedPolygons
gSetFillAttribs