From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/gio/gvmark.x | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sys/gio/gvmark.x (limited to 'sys/gio/gvmark.x') diff --git a/sys/gio/gvmark.x b/sys/gio/gvmark.x new file mode 100644 index 00000000..219f8bae --- /dev/null +++ b/sys/gio/gvmark.x @@ -0,0 +1,35 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include + +# GVMARK -- Vector polymarker. Output at sequence of markers at the vertices +# of a polygon, all markers the same type and size. The polygon is given by +# the set of points (X[i],V[i]), where the X[i] are evenly distributed from X1 +# to X2. The marker type GM_POINT is a special case. + +procedure gvmark (gp, v, npts, x1, x2, marktype, xsize, ysize) + +pointer gp # graphics descriptor +real v[ARB] # Y[i] polygon +int npts # number of points +real x1, x2 # range of X[i] +int marktype # marker type +real xsize, ysize # marker size + +int i +real dx + +begin + if (npts > 1) + if (marktype == GM_POINT) { + call gpl_settype (gp, POLYMARKER) + call gvline (gp, v, npts, x1, x2) + call gpl_settype (gp, POLYLINE) + } else { + dx = (x2 - x1) / (npts - 1) + do i = 1, npts + call gmark (gp, (i-1) * dx + x1, v[i], marktype, + xsize, ysize) + } +end -- cgit