
The Fortran name of this function is NhlFDataPolyline.
Given arrays containing the X and Y coordinates of points in data coordinate space, this function outputs an immediate-mode polyline connecting each of the points.
#include <ncarg/hlu/hlu.h>
#include <hfile for Transform class object>
NhlErrorTypes NhlDataPolyline(
int pid,
int gsid,
float *x,
float *y,
int n,
)
subroutine NhlFDataPolyline(pid, gsid, x, y, n, ierr)
integer pid, gsid, n, ierr
real x(n), y(n)
Type name: NhlTErrorTypes
Definition:
typedef enum _NhlErrType{
NhlFATAL = -4, /* "FATAL" */
NhlWARNING = -3, /* "WARNING" */
NhlINFO = -2, /* "INFO" */
NhlNOERROR = -1 /* "NOERROR" */
} NhlErrorTypes;
You specify the polyline's attributes by passing in a
GraphicStyle object using the parameter
gsid. If gsid is set to NhlNULLOBJID
(0) then the line attributes are determined by the current settings of
the Workstation default GraphicStyle
object. Retrieve the id of the default GraphicStyle
object using the read-only Workstation resource
wkDefGraphicStyleId.
Value | Meaning --------+------------------------------------------------- NOERROR | function successful --------+------------------------------------------------- INFO | minor recoverable error --------+------------------------------------------------- WARNING | recoverable error --------+------------------------------------------------- FATAL | function failed; continuing the program | may result in core dump
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?