casa
$Rev:20696$
|
00001 //# PCRefreshEH.h: PixelCanvas refresh event handler 00002 //# Copyright (C) 1993,1994,1995,1996,1999,2000 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id$ 00027 00028 #ifndef TRIALDISPLAY_PCREFRESHEH_H 00029 #define TRIALDISPLAY_PCREFRESHEH_H 00030 00031 #include <casa/aips.h> 00032 #include <display/DisplayEvents/PCRefreshEvent.h> 00033 00034 namespace casa { //# NAMESPACE CASA - BEGIN 00035 00036 class PixelCanvas; 00037 00038 // 00039 // <summary> 00040 // WorldCanvas Event Handler for managing events 00041 // </summary> 00042 // 00043 // <etymology> 00044 // WCMotionEH : WorldCanvas Motion Event Handler 00045 // </etymology> 00046 // 00047 // <synopsis> 00048 // Designed for derivation, this class is the base class which 00049 // is communicated to when the it is necessary to refresh the 00050 // display. The application programmer should derive 00051 // from this class, add any data fields needed, and override 00052 // operator () to redraw the screen properly. 00053 // </synopsis> 00054 // 00055 // <motivation> 00056 // Wanted a standard method for event management. It was felt 00057 // that a class might be more flexible than callback methods 00058 // because a class can contain data and other functions as 00059 // well. 00060 // </motivation> 00061 // 00062 // <example> 00063 // <ul> 00064 // <li>see the <linkto class="WorldCanvas">WorldCanvas</linkto> class 00065 // code. 00066 // <li>see the Display test directory 00067 // </ul> 00068 // 00069 // </example> 00070 // 00071 // <todo> 00072 // <li> write and test! 00073 // </todo> 00074 // 00075 00076 class PCRefreshEH { 00077 00078 public: 00079 00080 // Default Constructor Required 00081 PCRefreshEH(); 00082 00083 // Default just prints the event to cout 00084 virtual void operator ()(const PCRefreshEvent & eh); 00085 00086 // Destructor 00087 virtual ~PCRefreshEH(); 00088 00089 }; 00090 00091 00092 } //# NAMESPACE CASA - END 00093 00094 #endif 00095 00096