casa
$Rev:20696$
|
00001 //# WorldCanvasPGPlotDriver.h: global functions needed for PgPlot on the WC 00002 //# Copyright (C) 1993,1994,1995,1996,1999,2000 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id$ 00027 00028 #ifndef TRIALDISPLAY_WORLDCANVASPGPLOTDRIVER_H 00029 #define TRIALDISPLAY_WORLDCANVASPGPLOTDRIVER_H 00030 00031 #include <casa/aips.h> 00032 00033 namespace casa { //# NAMESPACE CASA - BEGIN 00034 00035 class WorldCanvas; 00036 00037 // <summary> 00038 // Global driver functions need to support PgPlot on the WorldCanvas. 00039 // </summary> 00040 00041 // <synopsis> 00042 // Global driver functions are required to implement a PgPlot driver for 00043 // the WorldCanvas. They are called by the FORTRAN part of the PgPlot 00044 // library. 00045 // </synopsis> 00046 00047 // <group name="Driver functions called by FORTRAN PgPlot library"> 00048 #ifdef __cplusplus 00049 extern "C" { 00050 #endif 00051 00052 #if defined(__APPLE__) && ! (defined(__MAC_10_6) || defined(__USE_WS_X11__)) 00053 void wcdriv_(int * opc, float * rbuf, int * nbuf, 00054 char * chr, int * lchr, int len); 00055 #else 00056 void wcdriv_(int * opc, float * rbuf, int * nbuf, 00057 char * chr, int * lchr, int *mode, int len); 00058 #endif 00059 00060 #if ! defined(__APPLE__) 00061 int grexec_(int *idev, int *ifunc, float *rbuf, int *nbuf, 00062 char *chr, int *lchr, int len); 00063 #endif 00064 00065 #ifdef __cplusplus 00066 } 00067 #endif 00068 // </group> 00069 00070 // <summary> 00071 // Global utility functions need to support PgPlot on the WorldCanvas. 00072 // </summary> 00073 00074 // <synopsis> 00075 // Global utility functions are required to implement a PgPlot driver for 00076 // the WorldCanvas. They are provided herein. 00077 // </synopsis> 00078 // <group name="Global functions to attach to existing WorldCanvases"> 00079 void pgplot_queueWorldCanvas(WorldCanvas * wc); 00080 WorldCanvas * pgplot_queryWorldCanvas(Int selectID); 00081 void pgplot_setWorldCanvas(Int selectID, WorldCanvas * wc); 00082 // </group> 00083 00084 00085 } //# NAMESPACE CASA - END 00086 00087 #endif 00088