casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WCSizeControlHandler.h
Go to the documentation of this file.
1 //# WCSizeControlHandler.h: base class for control of WorldCanvas size
2 //# Copyright (C) 1993,1994,1995,1996,1998,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_WCSIZECONTROLHANDLER_H
29 #define TRIALDISPLAY_WCSIZECONTROLHANDLER_H
30 
31 #include <casa/aips.h>
32 namespace casa { //# NAMESPACE CASA - BEGIN
33 
34  class WorldCanvas;
35 
36 // <summary>
37 // Base class defining the interface to controlling the WorldCanvas size.
38 // </summary>
39 //
40 // <prerequisite>
41 // <li> <linkto class="WorldCanvas">WorldCanvas</linkto>
42 // </prerequisite>
43 //
44 // <etymology>
45 // WCSizeControlHandler : WorldCanvas size control handler
46 // </etymology>
47 //
48 // <synopsis>
49 // The intention of this class is to provide a means of allowing
50 // a group of display objects to determine among themselves the
51 // optimum size of the display for the rendering required.
52 //
53 // The WCSizeControlHandler could, for example, be programmed to
54 // fudge the display size to make it more convenient to display
55 // images of a certain size.
56 // </synopsis>
57 //
58 // <motivation>
59 // Allow for client programmer to control the size of the
60 // <linkto class="WorldCanvas">WorldCanvas</linkto>.
61 // </motivation>
62 //
63 // <example>
64 // none available yet.
65 // </example>
66 //
67 // <todo>
68 // <li> Decide on implementation details
69 // <li> Get a concrete class implemented
70 // </todo>
71 //
72 
74 
75  public:
76 
77  // Default Constructor Required
79 
80  // apply function called by world canvas
81  // during refresh
83 
84  // Destructor
85  virtual ~WCSizeControlHandler();
86 
87  };
88 
89 
90 } //# NAMESPACE CASA - END
91 
92 #endif
93 
Base class defining the interface to controlling the WorldCanvas size.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual casacore::Bool executeSizeControl(WorldCanvas *wc)=0
apply function called by world canvas during refresh
Implementation of drawing in world coordinates on top of a PixelCanvas.
Definition: WorldCanvas.h:204
WCSizeControlHandler()
Default Constructor Required.
virtual ~WCSizeControlHandler()
Destructor.