UTS60 Graphics Commands

A

move absolute

O

circle

B

move relative

P

pixel array

C

polyline absolute

PE

polygon edge style

CJ

character justification

PH

hatch style

CP

character path

PI

polygon fill style

CS

character space

PM

polygon move absolute

CP

character path

PI

polygon fill style

CS

character space

PM

polygon move absolute

CZ

character size

PN

polygon move relative

D

polyline relative

PS

stop polygon move

E

polymarker

S

marker symbol

F

polymarker

SI

marker color

G

polygon absolute

SZ

marker size

H

polygon relative

'text'

text

I

rectangle absolute

US

unshrink

J

rectangle relative

UZ

unzoom

K

sector

VA

zoom absolute

L

closed arc

VR

zoom relative

LB

background color

XS

shrink

LF

fill color

ZC

terminate view surface

LL

line color

ZD

deselect view surface

LS

line style

ZI

initialize graphics

LT

text color

ZN

new frame

M

arc

ZO

initialize view surface

NM

push animation marker

ZS

select view surface

NN

pop animation marker

ZT

terminate graphics

UTS 60 Coordinate System

Graphics coordinates are represented by Normalized Device Coordinates (NDC). NDC are device independent; that is, a drawing defined by NDC can be displayed on any size screen without changing the graphics commands.

Windows Coordinate System

When mapping the UTS 60 coordinate system to a Windows coordinate system, you can configure the window one of two ways:

  • Select the display aspect ratio to 1:1 by selecting Isotropic Mapping Mode in the Picture Preferences dialog box. The x and y extents are both 32767 and the visible portion of the y axis depends on the window size.

  • Adjust the display aspect ratio to the window size by making sure the Isotropic Mapping Mode check box is not selected. Figures will be proportionately sized to fit the window. The x axis is 32767, and the y axis is set to display the 73% visible portion on an actual UTS 60 terminal.

________________________________________

A move absolute

________________________________________

B move relative

________________________________________

C polyline absolute

________________________________________

CJ character justification

Operand Value

Horizontal

Vertical

0

Left

Top

1

Right

Bottom

2

Center

Center

3

Left

Bottom

CP character path

Operand Value

Horizontal

0

Right

1

Left

2

Up

3

Down

CS character space

________________________________________

CZ character size

________________________________________

D polyline relative

________________________________________

E polymarker absolute

________________________________________

H polygon relative

________________________________________

I rectangle absolute

________________________________________

J rectangle relative

________________________________________

K sector

Operand

Description

r

Unsigned integer that is an absolute value within the Normalized Device Coordinate system

sa

Numbers between 32768o and 32767o, modulus 360. The angle, 0o lies parallel to the positive x axis of a Cartesian coordinate system; 90o lies parallel to the positive y axis.

ea

Numbers between 32768o and 32767o, modulus 360. The angle, 0o lies parallel to the positive x axis of a Cartesian coordinate system; 90o lies parallel to the positive y axis

L closed arc

Operand

Description

r

Unsigned integer that is an absolute value within the Normalized Device Coordinate system

sa

Numbers between 32768o and 32767o, modulus 360. The angle, 0o lies parallel to the positive x axis of a Cartesian coordinate system; 90o lies parallel to the positive y axis.

ea

Numbers between 32768o and 32767o, modulus 360. The angle, 0o lies parallel to the positive x axis of a Cartesian coordinate system; 90o lies parallel to the positive y axis

LB background color

Operand Value

Color

0

Black

1

Red

2

Green

3

Yellow

4

Blue

5

Magenta

6

Cyan

7

White

8

Gray

9

Tan

10

Aqua

11

Yellow-green

12

Violet

13

Hot Pink

14

Turquoise

15

Pink

LF fill color

Operand Value

Color

0

Black

1

Red

2

Green

3

Yellow

4

Blue

5

Magenta

6

Cyan

7

White

8

Gray

9

Tan

10

Aqua

11

Yellow-green

12

Violet

13

Hot Pink

14

Turquoise

15

Pink

LL line color

Operand Value

Color

0

Black

1

Red

2

Green

3

Yellow

4

Blue

5

Magenta

6

Cyan

7

White

8

Gray

9

Tan

10

Aqua

11

Yellow-green

12

Violet

13

Hot Pink

14

Turquoise

15

Pink

LS line style

Operand Value

Description

1

Solid line

2

Short dash line

3

Dotted line

4

Dash-dot line

5

Very short dash line

6

Medium dash line

7

Long dash line

8

Dash and two dots line

9

Widely-spaced dotted line

10

Medium-short dash

11

Closely-spaced fine dot

12

Medium-spaced dot

LT text color

Operand Value

Color

0

Black

1

Red

2

Green

3

Yellow

4

Blue

5

Magenta

6

Cyan

7

White

8

Gray

9

Tan

10

Aqua

11

Yellow-green

12

Violet

13

Hot Pink

14

Turquoise

15

Pink

M arc

Operand

Description

r

Unsigned integer that is an absolute value within the Normalized Device Coordinate system

sa

Numbers between 32768o and 32767o, modulus 360. The angle, 0o lies parallel to the positive x axis of a Cartesian coordinate system; 90o lies parallel to the positive y axis.

ea

Numbers between 32768o and 32767o, modulus 360. The angle, 0o lies parallel to the positive x axis of a Cartesian coordinate system; 90o lies parallel to the positive y axis.

NM push animation marker

________________________________________

NN pop animation marker

________________________________________

O circle

________________________________________

PA pixel array

________________________________________

PE polygon edge style

Operand Value

Description

1

Causes the edge line to NOT be displayed

2

Causes the edge line to be displayed

PH hatch style

Operand Value

Description

Example

0

Solid

 

1

Slanted lines

 

2

Slanted lines

 

3

Vertical lines

||||||||||||||||||||||||

4

Horizontal lines

 

5

Vertical crosshatch

 

6

Slanted crosshatch

 

7 - 12

Same as 1-6 except coarse

-----

12 - 18

Same as 1-6 except fine

-----

19

Shaded

 

PI polygon fill style

Operand Value

Description

0

Transparent (preserves existing images)

1

Solid (fills the polygon with the current Fill Color index )

2

Pattern (the pattern defined by Set Pixel Array is overlaid on the existing image, in the current Fill Color index )

3

Pattern, new background (the pattern defined by Set Pixel Array is drawn over a new, solid background in the current Background Color.)

4

Hatch (the pattern defined by Hatch Style is drawn in the current Fill Color index over the existing image)

5

Hatch, new background (the pattern defined by Hatch Style is drawn in the current Fill Color index over a new, solid background in the current Background Color.)

PM polygon move absolute

________________________________________

PN polygon move relative

________________________________________

PS stop polygon move

________________________________________

S marker symbol

Operand Value

Description

Example

1

Dot

 

2

Cross

 

3

Asterisk

*

4

Circle

 

5

Large X

 

6

Small box

 

7

Medium box

8

Large box

 

9

Registered symbol

 

10

4 symmetrically opposed parabola

 

11

Right-facing arrow, point on CP

 

12

Cross-hairs

 

13

Configurable marker

ASCII character

SI marker color

Operand Value

Color

0

Black

1

Red

2

Green

3

Yellow

4

Blue

5

Magenta

6

Cyan

7

White

8

Gray

9

Tan

10

Aqua

11

Yellow-green

12

Violet

13

Hot Pink

14

Turquoise

15

Pink

SZ marker size

________________________________________

'text' text

________________________________________

US unshrink

________________________________________

UZ unzoom

________________________________________

VA zoom absolute

________________________________________

VR zoom relative

________________________________________

XS shrink

________________________________________

ZC terminate view surface

________________________________________

ZD deselect view surface

________________________________________

ZI initialize graphics

________________________________________

ZN new frame

________________________________________

ZO initialize view surface

________________________________________

ZS select view surface

________________________________________

ZT terminate graphics