casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WorldCanvasPGPlotDriver.h
Go to the documentation of this file.
1 //# WorldCanvasPGPlotDriver.h: global functions needed for PgPlot on the WC
2 //# Copyright (C) 1993,1994,1995,1996,1999,2000
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef TRIALDISPLAY_WORLDCANVASPGPLOTDRIVER_H
29 #define TRIALDISPLAY_WORLDCANVASPGPLOTDRIVER_H
30 
31 #include <casa/aips.h>
32 
33 namespace casa { //# NAMESPACE CASA - BEGIN
34 
35  class WorldCanvas;
36 
37 // <summary>
38 // Global driver functions need to support PgPlot on the WorldCanvas.
39 // </summary>
40 
41 // <synopsis>
42 // Global driver functions are required to implement a PgPlot driver for
43 // the WorldCanvas. They are called by the FORTRAN part of the PgPlot
44 // library.
45 // </synopsis>
46 
47 // <group name="Driver functions called by FORTRAN PgPlot library">
48 #ifdef __cplusplus
49  extern "C" {
50 #endif
51 
52 #if defined(__APPLE__) && ! (defined(__MAC_10_6) || defined(__USE_WS_X11__))
53  void wcdriv_(int * opc, float * rbuf, int * nbuf,
54  char * chr, int * lchr, int len);
55 #else
56  void wcdriv_(int * opc, float * rbuf, int * nbuf,
57  char * chr, int * lchr, int *mode, int len);
58 #endif
59 
60 #if ! defined(__APPLE__)
61  int grexec_(int *idev, int *ifunc, float *rbuf, int *nbuf,
62  char *chr, int *lchr, int len);
63 #endif
64 
65 #ifdef __cplusplus
66  }
67 #endif
68 // </group>
69 
70 // <summary>
71 // Global utility functions need to support PgPlot on the WorldCanvas.
72 // </summary>
73 
74 // <synopsis>
75 // Global utility functions are required to implement a PgPlot driver for
76 // the WorldCanvas. They are provided herein.
77 // </synopsis>
78 // <group name="Global functions to attach to existing WorldCanvases">
79  void pgplot_queueWorldCanvas(WorldCanvas * wc);
80  WorldCanvas * pgplot_queryWorldCanvas(casacore::Int selectID);
81  void pgplot_setWorldCanvas(casacore::Int selectID, WorldCanvas * wc);
82 // </group>
83 
84 
85 } //# NAMESPACE CASA - END
86 
87 #endif
88 
int Int
Definition: aipstype.h:50
Implementation of drawing in world coordinates on top of a PixelCanvas.
Definition: WorldCanvas.h:204