[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPISI - Set Interior Style Index

GPISI (index)

Purpose

Use GPISI to insert a Set Interior Style Index structure element into the open structure following the element pointer or to replace the element pointed at by the element pointer with a Set Interior Style Index structure element depending on the current edit mode.

This structure element specifies an index into the workstation hatch table if the current interior style is 4=HATCH If the current interior style is 3=PATTERN , then this structure element specifies an index into the workstation pattern table. The graPHIGS API uses this value at structure traversal time when rendering all subsequent area defining primitives when the interior style index aspect source flag is set to 2=INDIVIDUAL

If the current interior style is not a hatch or pattern interior style, then the graPHIGS API ignores this structure element and the element counter is simply incremented.

The traversal default interior style index value is 1.

If the workstation does not support the specified index, then the interior style index defaults to a value of 1.

Parameters

index -- specified by user, fullword integer

Interior style index (>=1)

The default hatch table for workstations is defined as follows:

  1. Vertical lines.

  2. Horizontal lines.

  3. Diagonal lines, lower left to upper right, wide spacing.

  4. Diagonal lines, lower left to upper right, medium spacing.

  5. Diagonal lines, lower right to upper left, wide spacing.

  6. Diagonal lines, lower right to upper left, medium spacing.

  7. Raster pattern 1.

  8. Raster pattern 2.

  9. Raster pattern 3.

  10. Raster pattern 4.

  11. Raster pattern 5.

  12. Raster pattern 6.

  13. Raster pattern 7.

  14. Raster pattern 8.

  15. Horizontal/Vertical cross-hatch, spacing 1.

  16. Diagonal cross-hatch, spacing 1.

  17. Horizontal/Vertical cross-hatch, spacing 2.

  18. Diagonal cross-hatch, spacing 2.

  19. Horizontal/Vertical cross-hatch, spacing 3.

  20. Diagonal cross-hatch, spacing 3.

  21. Horizontal/Vertical cross-hatch, spacing 4.

  22. Diagonal cross-hatch, spacing 4.

  23. Brick pattern, horizontal.

  24. Brick pattern, diagonal.

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
84
INTERIOR STYLE INDEX VALUE < ONE

Related Subroutines

GPASF
Attribute Source Flag Setting
GPHR
Set Hatch Representation
GPIS
Set Interior Style
GPPAR
Set Pattern Representation
GPQIF
Inquire Interior Facilities
GPQPIR
Inquire Predefined Interior Representation
GPQXIR
Inquire Extended Interior Representation
GPXIR
Set Extended Interior Representation

RCP code

201328898 (X'0C000902')


[ Previous | Next | Contents | Glossary | Home | Search ]