casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PSWorldCanvasApp.h
Go to the documentation of this file.
1 //# PSWorldCanvasApp.h: simple PostScript WorldCanvas application
2 //# Copyright (C) 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_PSWORLDCANVASAPP_H
29 #define TRIALDISPLAY_PSWORLDCANVASAPP_H
30 
31 //# aips includes:
32 #include <casa/aips.h>
33 
34 //# trial includes:
35 
36 //# display library includes:
40 
41 namespace casa { //# NAMESPACE CASA - BEGIN
42 
43 // <summary>
44 // Simple PostScript WorldCanvas application
45 // </summary>
46 //
47 // <prerequisite>
48 // <li> <linkto class="PSPixelCanvas">PSPixelCanvas</linkto>
49 // <li> <linkto class="WorldCanvas">WorldCanvas</linkto>
50 // </prerequisite>
51 //
52 // <etymology>
53 // PSWorldCanvasApp stands for PostScript WorldCanvas Application
54 // </etymology>
55 //
56 // <synopsis>
57 // PSWorldCanvasApp provides a basic infrastructure, including
58 // a PostScript PixelCanvas and a WorldCanvas, which can be used
59 // to write a simple application providing PostScript output.
60 // </synopsis>
61 //
62 // <motivation>
63 // Test class for the PostScript PixelCanvas
64 // </motivation>
65 
67 
68  public:
69 
70  // default constructor
72 
73  // default destructor
74  virtual ~PSWorldCanvasApp();
75 
76  // retrieve a pointer to the WorldCanvas
78  return itsWorldCanvas;
79  }
80 
81  // Run the application
82  void run();
83 
84  PSDriver *getDriver()const {
85  return ps_;
86  }
88  return itsPixelCanvas;
89  }
90  protected:
91 
92  private:
93 
94  // Pointer to the PixelCanvas
96 
97  // Pointer to the WorldCanvas
99 
101  };
102 
103 
104 } //# NAMESPACE CASA - END
105 
106 #endif
WorldCanvas * worldCanvas() const
retrieve a pointer to the WorldCanvas
PSDriver * getDriver() const
Low level interface between PSPixelCanvas{ColorTable} and PostScript.
Definition: PSDriver.h:109
PSWorldCanvasApp(PSDriver *ps)
default constructor
virtual ~PSWorldCanvasApp()
default destructor
Implementation of the PixelCanvas for PostScript devices.
void run()
Run the application.
Simple PostScript WorldCanvas application.
PSPixelCanvas * pixelCanvas() const
WorldCanvas * itsWorldCanvas
Pointer to the WorldCanvas.
Implementation of drawing in world coordinates on top of a PixelCanvas.
Definition: WorldCanvas.h:204
PSPixelCanvas * itsPixelCanvas
Pointer to the PixelCanvas.