casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PCITFiddler.h
Go to the documentation of this file.
1 //# PCITFiddler.h: Colormap fiddling on the PixelCanvas
2 //# Copyright (C) 1999,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_PCITFIDDLER_H
29 #define TRIALDISPLAY_PCITFIDDLER_H
30 
31 #include <casa/aips.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36 // <summary>
37 // Colormap fiddling on the PixelCanvas.
38 // </summary>
39 //
40 // <synopsis>
41 // This class provides colormap fiddling via an invisible
42 // tool which gets registered with a specific PixelCanvas.
43 // </synopsis>
44 
45  class PCITFiddler : public PCInvisTool {
46 
47  public:
48 
49  enum FiddleType {
52  };
53 
54  // Constructor. Requires a PixelCanvas to fiddle upon, and
55  // optional specification of the fiddling type and key to
56  // detect.
57  PCITFiddler(PixelCanvas *pcanvas,
58  const PCITFiddler::FiddleType &fiddletype =
61 
62  // Destructor.
63  virtual ~PCITFiddler();
64 
65  // Set/get the fiddle type.
66  // <group>
67  virtual void setFiddleType(const PCITFiddler::FiddleType &fiddletype);
69  return itsFiddleType;
70  }
71  // </group>
72 
73  // This function is called when a new position is ready. We
74  // implement it to fiddle the Colormap in this class.
75  virtual void positionReady();
76 
77  private:
78 
80 
81  };
82 
83 
84 } //# NAMESPACE CASA - END
85 
86 #endif
virtual PCITFiddler::FiddleType getFiddleType()
Definition: PCITFiddler.h:68
virtual void setFiddleType(const PCITFiddler::FiddleType &fiddletype)
Set/get the fiddle type.
virtual ~PCITFiddler()
Destructor.
virtual void positionReady()
This function is called when a new position is ready.
Base class defining interface to pixel-based output devices.
Definition: PixelCanvas.h:161
Colormap fiddling on the PixelCanvas.
Definition: PCITFiddler.h:45
Base implementation of PCTool for invisible (non-drawing) tools.
Definition: PCInvisTool.h:45
PCITFiddler::FiddleType itsFiddleType
Definition: PCITFiddler.h:79
KeySym
Keysyms for PixelCanvas keyboard events.
Definition: DisplayEnums.h:412
PCITFiddler(PixelCanvas *pcanvas, const PCITFiddler::FiddleType &fiddletype=PCITFiddler::StretchAndShift, Display::KeySym keysym=Display::K_Pointer_Button1)
Constructor.