Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ppm(3P) — PHIGS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

POLYMARKER(3P)  —  SUNPHIGS LIBRARY

NAME

POLYMARKER − create structure element specifying 2D polymarker primitive

SYNOPSIS

C Syntax

void
ppolymarker ( num_points, points )
Pintnum_points;number of points
Ppoint∗points;array of points

FORTRAN Syntax

SUBROUTINE ppm ( N, PXA, PYA )
INTEGERNnumber of points
REALPXA(N), PYA(N)coordinates of points (MC)

Required PHIGS Operating States

(PHOP, ∗, STOP, ∗)

DESCRIPTION

Purpose

The POLYMARKER function puts the full specification of a POLYMARKER primitive into the currently open structure.  A POLYMARKER primitive is a series of markers, such as a dot, plus sign, asterisk, circle, or x,  drawn in the display at specified Modelling Coordinate points on the z = 0 plane. 

If the current edit mode is INSERT, the POLYMARKER element is inserted in the open structure after the element pointed at by element pointer. If the current edit mode is REPLACE, the POLYMARKER element replaces the element pointed to by the element pointer.  In either case, the element pointer is updated to point to the new POLYMARKER element. 

C Input Parameters

num_points
The number of points in the display at which to place markers.

pointsA pointer to a list num_points long of Ppoint structures containing the x and y coordinates for each point at which markers will be placed.  The Ppoint structure is defined in phigs.h as follows:

typedef struct  {
Pfloatx;/∗ x coordinate ∗/
Pfloaty;/∗ y coordinate ∗/
} Ppoint;

FORTRAN Input Parameters

NThe number of points in the display at which to place markers. 

PXAAn array of N real values containing the x coordinates of the points at which to place markers. 

PYAAn array of N real values containing the y coordinates of the points at which to place markers. 

Execution

When the structure is traversed, the POLYMARKER element places a marker at each of the coordinate locations specified. The current values of the attributes listed below will be applied to the marker. 

The coordinates used to specify the polymarker primitive are Modelling Coordinates. These may be any coordinate units that are convenient to the application. At traversal, these coordinate values are transformed by the current Local and Global Modelling Transformations, the View Representation selected by the current view index, and the Workstation Transformation current on the workstation to which the structure is posted. 

Attributes Applied

The attributes listed below are used to display the POLYMARKER primitive when the structure is traversed. The Aspect Source Flags (ASFs) tell where to access the output display attributes.  These attributes can come directly from the traversal state list, or they can be accessed indirectly, using the appropriate index in the traversal state list and the corresponding bundled representation in the workstation state list. 

marker typemarker type ASF
marker size scale factormarker size scale factor ASF
polymarker colourpolymarker colour index ASF
polymarker index
depth cue index
name set

ERRORS

005Ignoring function, function requires state (PHOP, ∗, STOP, ∗)

SEE ALSO

INQUIRE POLYMARKER FACILITIES (3P)
POLYMARKER 3 (3P)

Sun Release 4.0  —  Last change: 1 August 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026