/* testPhase.c */ static char SCCSID[] = "@(#)testPhase.c 1.1 4/6/92"; #include #include #include "spin/Spin.h" #include "phase.h" #include "space.h" #include "phaseP.h" #include "drawEvent.h" #define MAXPARTCOLOR 30 Pixel ParticleColors[MAXPARTCOLOR]; /* Size of the color table. */ double XPinVertexPoints[NUMPINSPHI][NUMPINSTETA]; double YPinVertexPoints[NUMPINSPHI][NUMPINSTETA]; double ZPinVertexPoints[NUMPINSPHI][NUMPINSTETA]; StdHepWindow *WindowList = NULL; extern void exit(); void main (int argc, char **argv) { XtAppContext context; Display *display; /* ** Initialize toolkit and open display. */ XtToolkitInitialize (); context = XtCreateApplicationContext(); /* ** Keep the same application name, so I don't have to muck around the ** Xdefaults file */ display = XtOpenDisplay (context, NULL, "phase", "Space", NULL, 0, &argc, argv); if (!display) { XtWarning("Space: Can't open display"); exit(0); } /* ** Create an event display panel */ DisplayEventFileSp(display, exit); /* ** Process events. */ XtAppMainLoop (context); }