GINO Graphics Suite - GINO v9.0  

gDefineHatchStyle

Syntax

[C/C++:]
void gDefineHatchStyle(int fill, GHATSTY *rep);
[F90:]
subroutine gDefineHatchStyle(fill, rep)

integer, intent(in) :: fill
type (GHATSTY), intent(in) :: rep

Arguments

fill
Hatch style index

rep.pitch
Distance between hatch lines in current units

rep.angle
Orientation of hatch lines in degrees measured counterclockwise from the picture X axis

rep.xshift
Displacement of hatch pattern in current units in local X direction

rep.yshift
Displacement of hatch pattern in current units in direction 90 counterclockwise from local X direction

rep.xshear
Shear angle of hatch pattern in degrees with shear parallel to local X direction

rep.xhatch
Cross hatch switch

= GOFF, Hatch in one direction only
= GON, Hatch in two directions (cross hatch)

Description

GINO maintains a table of 256 hatch styles which are predefined. gDefineHatchStyle() allows them to be changed, giving complete control over the definition of hatch styles. fill points to the entry to be changed and therefore identifies a hatch style.

rep.pitch defines the spacing of hatch lines. Note that rep.xshift, rep.yshift and rep.xshear are defined with respect to local axes. The local axes are defined as the picture axes rotated through angle rep.angle and shifted by rep.xshift and rep.yshift. The local Y axis is sheared parallel to the local X axis. Hatch lines are generated parallel to the local X axis. Note, therefore, that rep.yshift is a displacement perpendicular to the hatch lines.

Cross hatching may be selected (rep.xhatch=GON). In this case a second set of hatch lines will be drawn across the first set parallel to the local Y axis, when filling an area. When a broken line type is specified with a continuous pattern in the routine gDefineBrokenLineStyle(), the second pattern is adjusted so that the dashes intersect. The effect of rep.xshift and rep.xshear is not apparent when single-hatching (rep.xhatch=GOFF) with solid lines. The absolute value of rep.pitch is used. GINO will not hatch with a spacing between lines that is less than the pen width. Therefore rep.pitch=0.0 specifies an efficient solid fill irrespective of the device.

See Also

gDefineHatchStyle Usage
gDefineBrokenLineStyle