>  Docs Center  >  Libraries  >  Coyote  >  CGARROW
Libraries

CGARROW

CGARROW
  Provides a device-independent and color-model-independent way of drawing an arrow
  in a specified color.
 

Categories


    Graphics
   

Params


    x0: in, required, type=integer/float
        The x location of the blunt end of the arrow. May be a vector. Assumes
        device coordinates.
    x1: in, required, type=integer/float
        The x location of the sharp end of the arrow. May be a vector. Assumes
        device coordinates.
    y0: in, required, type=integer/float
        The y location of the blunt end of the arrow. May be a vector. Assumes
        device coordinates.
    y1: in, required, type=integer/float
        The y location of the sharp end of the arrow. May be a vector. Assumes
        device coordinates.
     

Keywords


    color: in, optional, type=string/integer/long, default='white'
        An alternative way to specify the color to use in erasing the graphics window.
        Color names are those used with cgColor. This parameter is used in
        preference to the background_color parameter.
    data: in, optional, type=boolean, default=0
          Set this keyword of the arrow locations are in data coordinates.
          Device coordinates are assumed.
    hsize: in, optional, type=float
        The size of the the arrow head. By default 1/64th the width
        of the device. (!D.X_SIZE / 64.)
    hthick: in, optional, type=float, default=1.0
        The thickness of the line drawing the arrowhead.
    linestyle: in, optional, type=integer, default=0
        The line style of the arrow. Line style integers as in PLOT.
    normal: in, optional, type=boolean, default=0
          Set this keyword of the arrow locations are in normalized coordinates.
          Device coordinates are assumed.
    solid: in, optional, type=boolean, default=0
          Set this keyword to draw solid, filled arrows.
    thick: in, optional, type=float, default=1.0
        The thickness of the line drawing the shaft of the arrow.
    window: in, optional, type=boolean, default=0
        Set this keyword to add the command to an cgWindow application.
       

Examples


    Used to draw arrows::
      IDL> cgArrow, 50, 50, 100, 100, /Solid
     

Author


      FANNING SOFTWARE CONSULTING::
          David W. Fanning
          1645 Sheely Drive
          Fort Collins, CO 80526 USA
          Phone: 970-221-0438
          E-mail: david@idlcoyote.com
          Coyote's Guide to IDL Programming: http://www.idlcoyote.com

History


    Change History::
        Written, 23 November 2010. DWF. Based on old Arrow routine in IDL.
        Added Window keyword 24 January 2011. DWF.
        Modified error handler to restore the entry decomposition state if there is an error. 17 March 2011. DWF

Copyright


    Copyright (c) 2010, Fanning Software Consulting, Inc.



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