/*******************************************************************
 *   globals.h                                        Version 1.0  *
 *   Last Modification : today                                     *
 *-----------------------------------------------------------------*
 * Copyright (c) 1993, 1994                                        *
 * The Board of Trustees of the Leland Stanford Junior University. *
 * All rights reserved.                                            *
 * Author: Gene McKenna                                            *
 *******************************************************************/

IP_DataSet *IPlotData;         /* the current working data set               */
IP_DataSet IPlotDataSets[MAX_NUM_DATA_SETS];  /* storage for many data sets  */

double min_x, min_y;           /* the extent of the current data set in      */
double max_x, max_y;           /*    data coordinates                        */
double x_scale, y_scale;       /* scale values for cnvrting to screen coords */
int    x_trans, y_trans;       /* x and y translation                        */

double current_gridsize_x;     /* size of the superimposed grid lines in     */
double current_gridsize_y;     /*    screen coords (nothing to do with mesh) */

char   current_title_space[MAX_TITLE_SIZE]; /* local title                   */
char   current_xaxis_space[MAX_AXIS_SIZE];  /* local x-axis label            */
char   current_yaxis_space[MAX_AXIS_SIZE];  /* local y-axis label            */

char   *current_xaxis = current_xaxis_space;
char   *current_yaxis = current_yaxis_space;
char   *current_title = current_title_space;

int    plot_geom;                 /* Plotting flags for Geom, Mesh,          */
int    plot_mesh;                 /*           Contour, Nodes and 1D         */
int    plot_contour;              /* -1 Don't plot, 0 Already plotted,       */
int    plot_node;                 /*  1 Need to plot                         */
int    plot_1d;                   /*                                         */

int    noof_data_sets;         /* number of data sets currently in memory    */
int    current_noof_regions;   /* number of regions in current data set      */
int    color_mode;             /* 16 color mode or black and white ?         */
int    current_dimen;          /* is the current data set 1D or 2D           */
int    scale_type;             /* 0 = Linear    1 = Log10                    */

/******************************************************************************
 ******************************************************************************
 *
 *                          VARIABLE LINKS
 *                         Between C and TCL
 *
 * The following global variables have the following LINKS to variables
 * in TCL. LINK definitions are made in the file tkAppInit.c
 *
 * TCL_VARIABLE          C_VARIABLE         Description
 * --------------------------------------------------------
 * ipl_min_x          min_x                Transformation parameter
 * ipl_min_y          min_y                          "
 * ipl_max_x          max_x                          " 
 * ipl_max_y          max_y                          " 
 * ipl_scale_x        x_scale                        "
 * ipl_scale_y        y_scale                        "
 * ipl_trans_x        x_trans                        "
 * ipl_trans_y        y_trans                        "
 *
 * ipl_gridsize_x     current_gridsize_x    Grid Lines and Axis Value Spacing
 * ipl_gridsize_y     current_gridsize_y               "
 * ipl_toplabel       current_title         Title of current data set   
 * ipl_bottomlabel    current_xaxis         Current X-Axis label
 * ipl_leftlabel      current_yaxis         Current Y-Axis label
 *
 * ipl_plotgeom       plot_geom             should geometry be plotted?
 * ipl_plotmesh       plot_mesh                "   mesh        "
 * ipl_plotcontour    plot_contour             "   contours    "
 * ipl_plotnode       plot_node                "   nodes       "
 * ipl_plot1d         plot_1d                  "   1D stuff    "
 *
 * ipl_noofregions    current_noof_regions  Num of regions in current dataset
 * ipl_colormode      color_mode            16 Color or B&W mode
 * ipl_noofdatasets   noof_data_sets        total num data sets in memory
 * ipl_dimension      current_dimen         is current data set 1D or 2D
 * ipl_scaletype      scale_type;           0 = Linear    1 = Log10
 *
 ******************************************************************************
 *****************************************************************************/

/*
 * name the 16 colors used (colors are predefined by X)
 *
 * (Colors can also be entered as RGB values. There are lots of predefined
 *  names, however, in the file /eecf/X11R5/lib/X11/rgb.txt
 */

char color[][16] = { "red","green","blue","purple","magenta","seagreen",
		       "yellow","orange","skyblue","cyan","maroon","brown",
		       "aquamarine","pink","white","black" 
		       };

/*
 * name the 16 bitmap patterns used (Definitions are in the file .Ipl_bitmaps)
 * (mostly for black and white screens/printers)
 */

char pattern[][16] = { "grey1","grey10","grey15","dots","grey25","grey50",
			 "horz25","horz50","vert25","vert50","funk25","tile",
			 "lip","brick","balls","weave"
			 };

/*
 * Names for the materials used 
 * Identical to those found in SUPREM IV
 * include/material.h
 */

char material[][9] = { "GAS", "SiO2", "SiNi", "Si", "Poly", "OxNi", "Al", 
			 "PhRs", "GaAs" 
			 };

