SUN/85.6

Starlink Project
Starlink User Note 85.6

P T Wallace & D L Terrett

10 July 1995


SGS — Simple Graphics System

v1.1

Programmer’s Manual



Abstract

SGS is a set of subroutines for performing low-level graphics input/output. SGS is implemented above the GKS package (described in SUN/83 the RAL GKS Guide and the ISO document GKS 7.4) which is a device independent graphics system designed to be the kernel of a wide variety of graphics systems. GKS, which is very comprehensive, does not itself set out to provide the most convenient interfaces for all applications, and SGS allows easy access to many of its more straightforward features.

Contents

1 INTRODUCTION
2 SUMMARY OF SGS CALLS
3 CONTROL FUNCTIONS
 3.1 Opening and closing SGS & GKS
 3.2 Multiple workstations
 3.3 Pens
 3.4 Buffering
 3.5 Special control functions
4 ZONES
 4.1 Zone creation
 4.2 Zone selection and release
 4.3 Clearing zones
 4.4 Inquiries
 4.5 Controlling NDC
5 PLOTTING LINES
 5.1 Polylines
 5.2 Plotting rectangular boxes
 5.3 Plotting arcs and circles
 5.4 Clearing rectangular areas
6 PLOTTING TEXT
7 TEXT ATTRIBUTES
8 MARKERS
9 INPUT
10 PROCESSING WORKSTATION NAMES
11 EXAMPLE PROGRAM
A LINKING AND RUNNING SGS
B SGS–GKS INTERACTION
C SUBROUTINE SPECIFICATIONS