casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
PCMotionEH.h
Go to the documentation of this file.
00001 //# PCMotionEH.h: PixelCanvas motion 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_PCMOTIONEH_H
00029 #define TRIALDISPLAY_PCMOTIONEH_H
00030 
00031 #include <casa/aips.h>
00032 #include <display/DisplayEvents/PCMotionEvent.h>
00033 
00034 namespace casa { //# NAMESPACE CASA - BEGIN
00035 
00036 class PixelCanvas;
00037 
00038 //
00039 // <summary>
00040 // PixelCanvas Event Handler for managing pointer motion events  
00041 // </summary>
00042 //
00043 // <prerequisite>
00044 // <li> <linkto class="PCMotionEvent">PCMotionEvent</linkto>
00045 // </prerequisite>
00046 //
00047 // <etymology>
00048 // PCMotionEH : PixelCanvas Motion Event Handler
00049 // </etymology>
00050 //
00051 // <synopsis>
00052 // Designed for derivation, this class is the base class which
00053 // is communicated to when the pointer moves across the
00054 // display window.  The application programmer should derive
00055 // from this class, add any data fields needed, and override
00056 // operator () to handle mouse motion.
00057 // </synopsis>
00058 //
00059 // <motivation>
00060 // Wanted a standard method for event management.  It was felt
00061 // that a class might be more flexible than callback methods
00062 // because a class can contain data and other functions as
00063 // well.
00064 // </motivation>
00065 //
00066 // <example>
00067 // see the <linkto class="WorldCanvas">WorldCanvas</linkto> code
00068 // see the Display test directory
00069 // </example>
00070 //
00071 
00072 class PCMotionEH {
00073 
00074  public:
00075 
00076   // Default Constructor Required
00077   PCMotionEH();
00078 
00079   // Default just prints the event to cout
00080   virtual void operator ()(const PCMotionEvent & eh);  
00081 
00082   // Destructor
00083   virtual ~PCMotionEH();
00084 
00085 };
00086 
00087 
00088 } //# NAMESPACE CASA - END
00089 
00090 #endif
00091