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

MAPBOX2B

MAPBOX2B

Name


      MAPBOX2B

Purpose


      Two button interactive map box, can return a position box.

Category


Calling Sequence


      mapbox2b, x1, x2, y1, y2

Inputs


Keyword Parameters


Keywords


        POSBOX=posbox Return a position box (normalized by default).
          Can be used in POSITION=posbox in a PLOT call.
        /DEVICE means return position box in device coordinates.
        DX=dx (x2-x1+1).
        DY=dy (y2-y1+1).
        /LOCK lock box to initial size (box must be defined).
        /XMODE use XOR mode for box.
        /STATUS means display box size and position.
          Use FACT=fct to correct for demagged image.
        MENU=txtarr Text array with exit menu options.
          Def=['OK','Abort','Continue']. Continue is added.
        /NOMENU Inhibits exit menu.
        EXITCODE=code. 0=normal exit, 1=alternate exit.
          If MENU is given then code is option index.
        /YREVERSE makes y=0 be the top line.
        FACT=fact Factor to correct image coordinates.
          If an image is dispayed half size give FACT=2 to get
          full size image coordinates (def=1).
        CHANGE=routine Name of a procedure to execute when box
          changed. Do box2b,/ch_details for details.
        CTEXT=txt change routine toggle text for menu.

Outputs


      x1, x2 = min and max lon. in, out
      y1, y2 = min and max lat. in, out
      Set all values to -1000 for new box.

Common Blocks


Notes


      Notes: Works in data coordinates.
        Drag open a new box. Corners or sides may be dragged.
        Box may be dragged by clicking inside.
        Click any other button to exit.
        A returned value of -1 means box undefined.

Modification History


      R. Sterner, 2014 Apr 15 from box2b.pro
      R. Sterner, 2014 Apr 18 --- Got working.
  Copyright (C) 2014, 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.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us