h16081
s 00001/00001/00042
d D 1.3 83/03/02 17:14:43 mrk 3 2
c modified to allow 16 pie slices
e
s 00000/00000/00043
d D 1.2 83/01/28 14:08:18 tes 2 1
c initial_internal_update
e
s 00043/00000/00000
d D 1.1 83/01/28 13:06:25 tes 1 0
c date and time created 83/01/28 13:06:25 by tes
e
u
tes
mjb
mrk
mmm
U
t
T
I 1
subroutine pieslc (slice, explod, fill, color)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Label a slice of a pie chart                           #
#                                                                      #
#     Input Parameters:                                                #
#            slice - slice number in the order the pie was defined     #
#            explod - explode status of slice                          #
#                      0 = no (default)                                #
#                      1 = yes                                         #
#            fill - pattern to be used to fill slice                   #
#            color -  color of fill                                    #
#                                                                      #
#     Output Parameters:                                               #
#            none                                                      #
#                                                                      #
#     Routines Called:                                                 #
#            none                                                      #
#                                                                      #
########################################################################
integer slice, explod, fill, color
integer index, gimnmx
 
include(`pltcom')
 
DxB write (DEBUGxUNIT, 100) slice, explod, fill, color
DxB 100 format (' pieslc:', 4i5)
 
D 3
   index = gimnmx(slice, 1, 15)
E 3
I 3
   index = gimnmx(slice, 1, 16)
E 3
   npslcx(index) = explod         # Set the explode status
   npslcf(index) = fill         # Set the fill pattern index
   npslcc(index) = color        # Set the fill pattern color index
 
   return
end
E 1
