casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MWCEvents.h
Go to the documentation of this file.
1 //# MWCEvents.h: various small MWCTool Event classes.
2 //# Copyright (C) 1993,1994,1995,1996,1998,1999,2000,2002
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_MWCEVENTS_H
29 #define TRIALDISPLAY_MWCEVENTS_H
30 
31 #include <casa/aips.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36 // <summary>
37 // Event sent to tell MWCCrosshairTool to reset.
38 // </summary>
39 
40 // <synopsis>
41 // ResetCrosshairEvent is created and sent to MWCCrosshairTool
42 // (via WorldCanvas::handleEvent()) to tell the crosshair to reset itself.
43 // </synopsis>
44 
45 // <motivation>
46 // This allows display library objects (e.g. MSAsRaster) to remove the
47 // crosshair from the screen when appropriate (e.g. when it has received
48 // a selection event from it).
49 // </motivation>
50 
52 
53  public:
54  // caller sets skipRefresh=true iff it is handling refresh itself.
57  virtual casacore::Bool skipRefresh() const {
58  return skipRefresh_;
59  }
60 
61  private:
63  };
64 
65 
66 // <summary>
67 // Event sent to tell MWCRTRegionTool to reset.
68 // </summary>
69 
70 // <synopsis>
71 // ResetRTRegionEvent is created and sent to MWCRTRegionTool
72 // (via WorldCanvas::handleEvent()) to tell the RTRegion to reset itself.
73 // </synopsis>
74 
75 // <motivation>
76 // This allows display library objects (e.g. MSAsRaster) to remove the
77 // rectangle from the screen when appropriate (e.g. when it has received
78 // a selection event from it).
79 // </motivation>
80 
82 
83  public:
84  // caller sets skipRefresh=true iff it is handling refresh itself.
87  virtual casacore::Bool skipRefresh() const {
88  return skipRefresh_;
89  }
90 
91  private:
93  };
94 
95 
96 } //# NAMESPACE CASA - END
97 
98 #endif
99 
100 
Event sent to tell MWCCrosshairTool to reset.
Definition: MWCEvents.h:51
ResetCrosshairEvent(casacore::Bool skipRefresh=false)
caller sets skipRefresh=true iff it is handling refresh itself.
Definition: MWCEvents.h:55
Event sent to tell MWCRTRegionTool to reset.
Definition: MWCEvents.h:81
ResetRTRegionEvent(casacore::Bool skipRefresh=false)
caller sets skipRefresh=true iff it is handling refresh itself.
Definition: MWCEvents.h:85
Class describing the most basic event information in the display classes.
Definition: DisplayEvent.h:82
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Bool skipRefresh_
Definition: MWCEvents.h:62
virtual casacore::Bool skipRefresh() const
Definition: MWCEvents.h:87
casacore::Bool skipRefresh_
Definition: MWCEvents.h:92
virtual casacore::Bool skipRefresh() const
Definition: MWCEvents.h:57