casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PCTestPattern.h
Go to the documentation of this file.
1 //# PCTestPattern.h: PixelCanvas test pattern display refresh event handler
2 //# Copyright (C) 2000
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_PCTESTPATTERN_H
29 #define TRIALDISPLAY_PCTESTPATTERN_H
30 
31 #include <casa/aips.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36 // <summary>
37 // PixelCanvas test pattern display refresh event handler.
38 // </summary>
39 //
40 // <etymology>
41 // "PCTestPattern" refers to a PixelCanvas Test Pattern.
42 // </etymology>
43 //
44 // <synopsis>
45 // </synopsis>
46 //
47 // <motivation>
48 // In a number of places, notably test programs, it is useful to
49 // be able to see a test pattern on the PixelCanvas which displays
50 // currently registered Colormaps for Indexed ColorTables, or
51 // views of the color cube for RGB / HSV ColorTables.
52 // </motivation>
53 //
54 // <example>
55 // </example>
56 //
57 // <todo>
58 // </todo>
59 
60  class PCTestPattern : public PCRefreshEH {
61 
62  public:
63 
64  // Default (and only) constructor.
65  PCTestPattern();
66 
67  // Destructor.
69 
70  // Refresh event handling operator. This implementation draws
71  // the test pattern/s on the PixelCanvas stored in <src>ev</src>.
72  void operator()(const PCRefreshEvent &ev);
73 
74  protected:
75 
76  // (Required) copy constructor.
77  PCTestPattern(const PCTestPattern &other);
78 
79  // (Required) copy assignment.
80  PCTestPattern &operator=(const PCTestPattern &other);
81 
82  private:
83 
88 
89  };
90 
91 
92 } //# NAMESPACE CASA - END
93 
94 #endif
95 
96 
WorldCanvas Event Handler for managing events.
Definition: PCRefreshEH.h:76
casacore::Bool itsFirstTime
Definition: PCTestPattern.h:84
casacore::uInt * itsImList
Definition: PCTestPattern.h:87
PCTestPattern & operator=(const PCTestPattern &other)
(Required) copy assignment.
Class which stores PixelCanvas refresh event information.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
PixelCanvas test pattern display refresh event handler.
Definition: PCTestPattern.h:60
~PCTestPattern()
Destructor.
void operator()(const PCRefreshEvent &ev)
Refresh event handling operator.
casacore::uInt itsWidth
Definition: PCTestPattern.h:85
casacore::uInt itsListLength
Definition: PCTestPattern.h:86
casacore::uInt itsHeight
Definition: PCTestPattern.h:85
PCTestPattern()
Default (and only) constructor.
unsigned int uInt
Definition: aipstype.h:51