POLYMARKER 3(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
POLYMARKER 3 − create structure element specifying 3D polymarker primitive
SYNOPSIS
C Syntax
void
ppolymarker3 ( point_list )
Ppoint_list3∗point_list;list of points
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 (MC) points.
C Input Parameters
point_list
A pointer to a Ppoint_list3 structure containing a list Ppoint3 structures, which contain the x and y coordinates for each point at which markers will be placed. The Ppoint_list3 structure is defined in phigs.h as follows:
typedef struct {
Pint num_points; /∗ number of Ppoint3 elements in the list ∗/
Ppoint3 ∗points; /∗ list of points ∗/
} Ppoint_list3;
The num_points component specifies the number of elements in the list. The points component is a pointer to a list of Ppoint3s num_points long. The Ppoint3 structure is defined in phigs.h as follows:
typedef struct {
Pfloatx;/∗ x coordinate ∗/
Pfloaty;/∗ y coordinate ∗/
Pfloatz;/∗ z coordinate ∗/
} Ppoint3;
Execution
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.
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 Model Coordinates (MC). These coordinates can 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 PHIGS 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)
September 02, 1992