casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PixelCanvasEvent.h
Go to the documentation of this file.
1 //# PixelCanvasEvent.h: base class for event information for PixelCanvases
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_PIXELCANVASEVENT_H
29 #define TRIALDISPLAY_PIXELCANVASEVENT_H
30 
31 #include <casa/aips.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36  class PixelCanvas;
37 
38 // <summary>
39 // Base class describing event information for PixelCanvases.
40 // </summary>
41 
42 // <use visibility=local>
43 
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45 // </reviewed>
46 
47 // <etymology>
48 // "PixelCanvasEvents" describes "Events" (ie. things which happen at a
49 // measurable time) which occur on PixelCanvases.
50 // </etymology>
51 
52 // <prerequisite>
53 // <li> <linkto class=DisplayEvent>DisplayEvent</linkto>
54 // </prerequisite>
55 
56 // <synopsis>
57 // This class adds to the information stored in the <linkto
58 // class=DisplayEvent>DisplayEvent</linkto> class. It adds
59 // information specific to events occuring on PixelCanvases, viz.
60 // a pointer to the PixelCanvas itself.
61 // </synopsis>
62 
63 // <example>
64 // </example>
65 
66 // <motivation>
67 // It is desirable to locate in a single place the information which
68 // is common to all events occuring on PixelCanvases.
69 // </motivation>
70 
71 // <thrown>
72 // None.
73 // </thrown>
74 
75 // <todo asof="1999/10/15">
76 // None.
77 // </todo>
78 
79  class PixelCanvasEvent : public DisplayEvent {
80 
81  public:
82 
83  // Constructor, taking a pointer to a PixelCanvas.
85 
86  // Destructor.
87  virtual ~PixelCanvasEvent();
88 
89  // Return a pointer to the PixelCanvas on which the event occurred.
90  virtual PixelCanvas *pixelCanvas() const {
91  return itsPixelCanvas;
92  }
93 
94  protected:
95 
96  // (Required) default constructor.
98 
99  // (Required) copy constructor.
100  PixelCanvasEvent(const PixelCanvasEvent &other);
101 
102  // (Required) copy assignment.
104 
105  private:
106 
107  // Store the PixelCanvas of the event here at construction.
109 
110  };
111 
112 
113 } //# NAMESPACE CASA - END
114 
115 #endif
virtual PixelCanvas * pixelCanvas() const
Return a pointer to the PixelCanvas on which the event occurred.
PixelCanvasEvent & operator=(const PixelCanvasEvent &other)
(Required) copy assignment.
Base class defining interface to pixel-based output devices.
Definition: PixelCanvas.h:161
PixelCanvasEvent()
(Required) default constructor.
Class describing the most basic event information in the display classes.
Definition: DisplayEvent.h:82
PixelCanvas * itsPixelCanvas
Store the PixelCanvas of the event here at construction.
virtual ~PixelCanvasEvent()
Destructor.
Base class describing event information for PixelCanvases.