casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DisplayDataEvent.h
Go to the documentation of this file.
1 //# DisplayDataEvent.h: base class for events sent by DisplayDatas
2 //# Copyright (C) 2003
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_DISPLAYDATAEVENT_H
29 #define TRIALDISPLAY_DISPLAYDATAEVENT_H
30 
31 #include <casa/aips.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36  class DisplayData;
37 
38 // <summary>
39 // Class for events sent by DisplayDatas
40 // </summary>
41 
42 // <use visibility=local>
43 
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45 // </reviewed>
46 
47 // <etymology>
48 // "DisplayDataEvents" describes "Events" (ie. things which happen at a
49 // measurable time) which are sent by DisplayDatas.
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 a pointer
59 // to the DisplayData itself.
60 // </synopsis>
61 
62 // <example>
63 // </example>
64 
65 // <motivation>
66 // There was a need for events that can be sent by display datas to
67 // signal modifications. DisplayEHs can listen to these events from
68 // any display data that transmits DisplayDataEvents
69 // </motivation>
70 
71 // <thrown>
72 // None.
73 // </thrown>
74 
75 // <todo asof="1999/10/15">
76 // None.
77 // </todo>
78 
79  class DisplayDataEvent : public DisplayEvent {
80 
81  public:
82 
83  // Constructor, taking a pointer to a constant DD.
85 
86  // Destructor.
87  virtual ~DisplayDataEvent();
88 
89  // Return a pointer to the DD that generated the event.
90  virtual DisplayData *displayData() const {
91  return itsDisplayData;
92  }
93 
94  protected:
95 
96  // (Required) default constructor.
98 
99  // (Required) copy constructor.
100  DisplayDataEvent(const DisplayDataEvent &other);
101 
102  // (Required) copy assignment.
104 
105  private:
106 
107  // Store the DisplayData of the event here at construction.
109 
110  };
111 
112 
113 } //# NAMESPACE CASA - END
114 
115 #endif
Class for events sent by DisplayDatas.
virtual ~DisplayDataEvent()
Destructor.
DisplayDataEvent & operator=(const DisplayDataEvent &other)
(Required) copy assignment.
DisplayDataEvent()
(Required) default constructor.
Class describing the most basic event information in the display classes.
Definition: DisplayEvent.h:82
DisplayData * itsDisplayData
Store the DisplayData of the event here at construction.
virtual DisplayData * displayData() const
Return a pointer to the DD that generated the event.
Base class for display objects.
Definition: DisplayData.h:317