28 #ifndef TRIALDISPLAY_STANDALONEDISPLAYAPP_H
29 #define TRIALDISPLAY_STANDALONEDISPLAYAPP_H
52 #if defined(__APPLE__)
55 extern void (*late_binding_pgplot_driver_1)(
int *,
float *,
int *,
char *,
57 extern void (*late_binding_pgplot_driver_2)(
int *,
float *,
int *,
char *,
59 extern void (*late_binding_pgplot_driver_3)(
int *,
float *,
int *,
char *,
61 #if defined(__USE_WS_X11__) || defined(__MAC_10_6)
62 extern void add_late_binding_pgdriver(
void (*driver)(
int *,
float *,
int *,
char *,
int *,
int *,
int));
63 extern void wcdriv_(
int *,
float *,
int *,
char *,
int *,
int *,
int);
64 #define INITIALIZE_PGPLOT add_late_binding_pgdriver(wcdriv_);
66 extern void wcdriv_(
int *,
float *,
int *,
char *,
int *,
int);
67 #define INITIALIZE_PGPLOT \
68 if ( ! late_binding_pgplot_driver_1 ) \
69 late_binding_pgplot_driver_1 = wcdriv_; \
70 else if ( ! late_binding_pgplot_driver_2 ) \
71 late_binding_pgplot_driver_2 = wcdriv_; \
72 else if ( ! late_binding_pgplot_driver_3 ) \
73 late_binding_pgplot_driver_3 = wcdriv_; \
75 std::cerr << "no free late-binding driver slots" << std::endl;
81 #define INITIALIZE_PGPLOT
85 void wcdriv_(
int *,
float *,
int *,
char *,
int*,
int *,
int);
87 void nudriv_(
int *,
float *,
int *,
char *,
int *,
int);
92 int grexec_(
int *idev,
int *ifunc,
float *rbuf,
int *nbuf,
93 char *chr,
int *lchr,
int len) {
101 nudriv_(ifunc, rbuf, nbuf, chr, lchr, len);
104 wcdriv_(ifunc, rbuf, nbuf, chr, lchr, &one, len);
107 std::cerr <<
"StandAloneDisplayApp: unknown pgplot device " << *idev
int grexec_(int *idev, int *ifunc, float *rbuf, int *nbuf, char *chr, int *lchr, int len)
This global function will over-ride the default PGPlot function.