>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  DRAWPOLY
Libraries

DRAWPOLY

DRAWPOLY

Name


      DRAWPOLY

Purpose


      Draw a polygon using mouse.

Category


Calling Sequence


      drawpoly, x, y

Inputs


Keyword Parameters


Keywords


        /CURVE draw a curve instead of a polygon.
        /DEVICE use device coordinates (def).
        /DATA use data coordinates.
        /NORMAL use normalized coordinates.
        /NOPLOT erase on exit (def=plot).
        COLOR=c outline or curve color (def=!p.color).
        THICK=t outline or curve thickness (def=0).
        LINESTYLE=s outline or curve line style (def=0).
        FILL=f polygon fill color (def= -1 = no fill).
        /MENU gives an exit menu: Done, Continue.
        /MAG use a cross-hair cursor with a mag window.
          This option is not very good yet.

Outputs


      x,y = polygon vertices. out

Common Blocks


Notes


Modification History


      R. Sterner, 2 Oct, 1990
      R. Sterner, 23 Oct, 1990 --- added some keywords.
      R. Sterner, 26 Feb, 1991 --- renamed from draw_polygon.pro
      R. Sterner, 1994 Mar 17 --- Default color=!p.color.
      R. Sterner, 2008 Jun 20 --- Added MENU keyword.
      R. Sterner, 2008 Jul 02 --- Added /MAG option.
      R. Sterner, 2010 May 04 --- Converted arrays from () to [].
  Copyright (C) 1990, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us