Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ppolymarker3(3P) — PHIGS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

POLYMARKER 3(3P)  —  SUNPHIGS LIBRARY

NAME

POLYMARKER 3 − create structure element specifying 3D polymarker primitive

SYNOPSIS

C Syntax

void
ppolymarker3 ( num_points, points )
Pintnum_points;number of points
Ppoint3∗points;array of points

FORTRAN Syntax

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

Required PHIGS Operating States

(PHOP, ∗, STOP, ∗)

DESCRIPTION

Purpose

The POLYMARKER 3 function puts the full specification of a POLYMARKER 3 primitive into the currently open structure.  A POLYMARKER 3 primitive is a series of markers, such as dots, plus signs, asterisks, circles, or x’s drawn in the display at the specified Modelling Coordinate points. 

If the current edit mode is INSERT, the POLYMARKER 3 element is inserted in the open structure after the element pointed at by the element pointer. If the current edit mode is REPLACE, the POLYMARKER element replaces the element pointed at by the element pointer.  In either case, the element pointer is updated to point to the new POLYMARKER 3 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 Ppoint3 structures containing the x, y, and z coordinates for each point at which markers will be placed.  Ppoint3 is defined in phigs.h as follows:

typedef struct  {
Pfloatx;/∗ x coordinate ∗/
Pfloaty;/∗ y coordinate ∗/
Pfloatz;/∗ z coordinate ∗/
} Ppoint3;

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 markers will be placed. 

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

PZAAn array of N real values containing the z coordinates of the points at which to place markers. 

Execution

When the structure is traversed, the POLYLINE 3 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 marker positions are specified in Modelling Coordinates. These coordinates 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 3 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 scale factormarker size 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 (3P)

Sun Release 4.0  —  Last change: 1 August 1989

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