PCTestPattern.h

Go to the documentation of this file.
00001 //# PCTestPattern.h: PixelCanvas test pattern display refresh event handler
00002 //# Copyright (C) 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_PCTESTPATTERN_H
00029 #define TRIALDISPLAY_PCTESTPATTERN_H
00030 
00031 #include <casa/aips.h>
00032 #include <display/DisplayEvents/PCRefreshEH.h>
00033 
00034 namespace casa { //# NAMESPACE CASA - BEGIN
00035 
00036 // <summary>
00037 // PixelCanvas test pattern display refresh event handler.
00038 // </summary>
00039 //
00040 // <etymology>
00041 // "PCTestPattern" refers to a PixelCanvas Test Pattern.
00042 // </etymology>
00043 //
00044 // <synopsis>
00045 // </synopsis>
00046 //
00047 // <motivation>
00048 // In a number of places, notably test programs, it is useful to
00049 // be able to see a test pattern on the PixelCanvas which displays
00050 // currently registered Colormaps for Indexed ColorTables, or
00051 // views of the color cube for RGB / HSV ColorTables.
00052 // </motivation>
00053 //
00054 // <example>
00055 // </example>
00056 //
00057 // <todo>
00058 // </todo>
00059 
00060         class PCTestPattern : public PCRefreshEH {
00061 
00062         public:
00063 
00064                 // Default (and only) constructor.
00065                 PCTestPattern();
00066 
00067                 // Destructor.
00068                 ~PCTestPattern();
00069 
00070                 // Refresh event handling operator.  This implementation draws
00071                 // the test pattern/s on the PixelCanvas stored in <src>ev</src>.
00072                 void operator()(const PCRefreshEvent &ev);
00073 
00074         protected:
00075 
00076                 // (Required) copy constructor.
00077                 PCTestPattern(const PCTestPattern &other);
00078 
00079                 // (Required) copy assignment.
00080                 PCTestPattern &operator=(const PCTestPattern &other);
00081 
00082         private:
00083 
00084                 Bool itsFirstTime;
00085                 uInt itsWidth, itsHeight;
00086                 uInt itsListLength;
00087                 uInt *itsImList;
00088 
00089         };
00090 
00091 
00092 } //# NAMESPACE CASA - END
00093 
00094 #endif
00095 
00096 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1