
NCL Home >
Documentation >
Graphics >
Resources
Primitive (pr) Resources
- prGraphicStyle
-
This resource specifies the id of a
GraphicStyle object used
to determine the attributes of the the graphics primitive. If set to
NullObjId
a default graphicstyle will apply to the primitive. This may be either the default Workstation graphicstyle or a graphicstyle determined in some other way.Default:
NullObjId
- prPolyType
-
This resource of type
NhlTPolyType specifies the
type of the graphic primitive. Currently there are three choices:
Polyline
- The graphics primitive will be rendered as a series of connected lines. You define the line attributes by setting resources whose names begin with gsLine... in the associated graphic style object.
Polygon
- The graphics primitive will be rendered as an edge consisting of closed series of connected lines enclosing a filled area. You define the edge attributes by setting resources whose names begin with gsEdge... in the associated graphic style object. Likewise, you define the fill attributes by setting resources whose names begin with gsFill....
Polymarker
- The graphics primitive will be rendered as a series of marker symbols drawn at each of the coordinate points. You define the marker attributes by setting resources whose names begin with gsMarker... in the associated graphic style object.
Default:
Polyline
- prXArray
-
This array resource specifies the data space X coordinates of the points
that define the graphic primitive.
Default: NULL
- prYArray
-
This array resource specifies the data space Y coordinates of the points
that define the graphic primitive.
Default: NULL