; TVWEDGE
;---------------------------------------------------------------
;! Show a linear wedge on the TV
;# VERB TV
;-----------------------------------------------------------------------
;;  Copyright (C) 1995, 2017, 2019
;;  Associated Universities, Inc. Washington DC, USA.
;;
;;  This program is free software; you can redistribute it and/or
;;  modify it under the terms of the GNU General Public License as
;;  published by the Free Software Foundation; either version 2 of
;;  the License, or (at your option) any later version.
;;
;;  This program is distributed in the hope that it will be useful,
;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;  GNU General Public License for more details.
;;
;;  You should have received a copy of the GNU General Public
;;  License along with this program; if not, write to the Free
;;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
;;  MA 02139, USA.
;;
;;  Correspondence concerning AIPS should be addressed as follows:
;;         Internet email: aipsmail@nrao.edu.
;;         Postal address: AIPS Project Office
;;                         National Radio Astronomy Observatory
;;                         520 Edgemont Road
;;                         Charlottesville, VA 22903-2475 USA
;-----------------------------------------------------------------------
TVWEDGE   LLLLLLLLLLLLUUUUUUUUUUUU CCCCCCCCCCCCCCCCCCCCCCCCCCCCC
TVWEDGE:  Verb to load a step wedge of image intensities as
          previously loaded (shows only the map values actually
          loaded).
              No inputs
              Optional immediate argument gives width of wedge
                 in pixels (default 16).  If argument < 0,
                 program uses TV cursor to determine where to
                 put wedge (default below bottom or above top
                 of image).  Point to left or right of image
                 to get a vertical wedge.
              Uses TV cursor to select the image with which
                 the wedge is associated (if needed).
----------------------------------------------------------------
TVWEDGE
Type:  Verb
Use:   To load a linear wedge into a TV memory plane using the same
       transfer function and clipping used in loading the associated
       image.  TVWEDGE constructs the wedge with intensities from the
       PIXRANGE(1) to PIXRANGE(2) used in loading the image to the TV.
       If there is more than one image on the TV, the routine asks the
       user to point out the image with which the wedge is to be
       associated.  There is an optional imediate argument:
               TVWEDGE (n)
       If n is missing, use n=16, where n is the width of the wedge in
       pixels.  If n<0 use abs(n) as the width of the wedge and ask
       the user to indicate where to draw the wedge.  The default
       locations of the wedge are: (a) If there is only one image
       visible, far enough below or above the image to allow for
       complete labeling, (b) just below the image (if it will fit),
       (c) above the image (if it will fit), and (d) overlaying the
       bottom rows of the image.

       To get a vertical wedge, use n < 0 and select a point to the
       right or left of the image.  The X position you select is taken
       as the left edge of the vertical wedge.  For horizontal wedges
       use n > 0 or, with n < 0, point below or above or inside the
       image.  The point you select is the bottom of the horizontal
       wedge.

       Note that, if TVWEDGE is used in a FOR or WHILE loop or in an
       IF-THEN-ELSE construct, then the immediate argument is
       required.  Otherwise, some item necessary to the loop/construct
       will be taken as the immediate argument.

Adverbs:     None
----------------------------------------------------------------
