/*
 * $Id: Plotter.h,v 1.0 91/08/22 15:34:05 gnb Exp $
 * $Source: /export/data/sources/x/At/Plotter/RCS/Plotter.h,v $
 * 
 * $Log:	Plotter.h,v $
 * Revision 1.0  91/08/22  15:34:05  gnb
 * Initial revision
 * 
 * 
 */

/*

Copyright 1990,1991 by the Massachusetts Institute of Technology

All rights reserved.

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of the Massachusetts
Institute of Technology (M.I.T.) not be used in advertising or publicity
pertaining to distribution of the software without specific, written
prior permission.

M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

*/

#ifndef _AtPlotter_h
#define _AtPlotter_h

#ifdef _AtDevelopment_
#include "Plot.h"
#else
#include <At/Plot.h>
#endif

/***************** resource names and classes *****************/
    
#define XtNtitle "title"
#define XtNlegendTitle "legendTitle"   

#define XtNfontFamily "fontFamily"

#define XtNtitleSize "titleSize"
#define XtNlegendTitleSize "legendTitleSize"    
#define XtNlegendSize "legendSize"

#define XtNtitleStyle "titleStyle"
#define XtNlegendTitleStyle "legendTitleStyle"
#define XtNlegendStyle "legendStyle"

#define XtNtitleColor "titleColor"
#define XtNlegendColor "legendColor"

#define XtNshowLegend "showLegend"    
#define XtNlegendWidth "legendWidth"
#define XtNlegendSpacing "legendSpacing"

#define XtNmarginWidth "marginWidth"
#define XtNmarginHeight "marginHeight"

#define XtNrankChildren "rankChildren"

#define XtNxAxis "xAxis"
#define XtNyAxis "yAxis"
#define XtNx2Axis "x2Axis"
#define XtNy2Axis "y2Axis"

/****************************************************************/
    
#define XtCTitle "Title"
#define XtCLegendTitle "LegendTitle"    

#define XtCFontFamily "FontFamily"
#define XtCFontSize "FontSize"    

#define XtCShowLegend "ShowLegend"    
#define XtCLegendWidth "LegendWidth"

#define XtCRankChildren "RankChildren"

#define XtCXAxis "XAxis"
#define XtCYAxis "YAxis"
#define XtCX2Axis "X2Axis"
#define XtCY2Axis "Y2Axis"

/* constraint resource names and classes */

#define XtNdisplayed "displayed"
#define XtNlegendName "legendName"
#define XtNuseX2Axis "useX2Axis"
#define XtNuseY2Axis "useY2Axis"
#define XtNrankOrder "rankOrder"

/****************************************************************/

#define XtCDisplayed "Displayed"
#define XtCLegendName "LegendName"
#define XtCUseX2Axis "UseX2Axis"
#define XtCUseY2Axis "UseY2Axis"
#define XtCRankOrder "RankOrder"

/* Class record constants */

extern WidgetClass atPlotterWidgetClass;

typedef struct _AtPlotterClassRec * AtPlotterWidgetClass;
typedef struct _AtPlotterRec      * AtPlotterWidget;



#ifndef P
# ifdef __STDC__
#  define P(args) args
# else
#  define P(args) ()
# endif 
#endif 


void AtPlotterGeneratePostscript P((char *, AtPlotterWidget, char *,
				    int, int, int, int, int landscape));
extern void AtPlotterDrawPS P((FILE *, AtPlotterWidget, int, int, int, int));

/*
 * These functions are for the plot children to communicate with the parent
 */
typedef struct {
    double xmin, xmax, ymin, ymax;
} BoundingBox;

extern void AtPlotterPlotExtended P((AtPlotWidget, BoundingBox *, 
				     int from, int to));
extern void AtPlotterPlotDataChanged P((AtPlotWidget, BoundingBox *, int));
extern void AtPlotterRefreshRequired P((AtPlotWidget));
extern void AtPlotterRedrawRequired P((AtPlotWidget));
extern void AtPlotterLayoutRequired P((AtPlotWidget));
extern void AtPlotterRescaleRequired P((AtPlotWidget));
extern void AtPlotterRecalcThisPlot P((AtPlotWidget)); 

#endif /* _AtPlotter_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

