casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
WCSizeControlHandler.h
Go to the documentation of this file.
00001 //# WCSizeControlHandler.h: base class for control of WorldCanvas size
00002 //# Copyright (C) 1993,1994,1995,1996,1998,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_WCSIZECONTROLHANDLER_H
00029 #define TRIALDISPLAY_WCSIZECONTROLHANDLER_H
00030 
00031 #include <casa/aips.h>
00032 namespace casa { //# NAMESPACE CASA - BEGIN
00033 
00034 class WorldCanvas;
00035 
00036 // <summary>
00037 // Base class defining the interface to controlling the WorldCanvas size.
00038 // </summary>
00039 //
00040 // <prerequisite>
00041 // <li> <linkto class="WorldCanvas">WorldCanvas</linkto>
00042 // </prerequisite>
00043 //
00044 // <etymology>
00045 // WCSizeControlHandler : WorldCanvas size control handler
00046 // </etymology>
00047 //
00048 // <synopsis>
00049 // The intention of this class is to provide a means of allowing
00050 // a group of display objects to determine among themselves the
00051 // optimum size of the display for the rendering required.
00052 //
00053 // The WCSizeControlHandler could, for example, be programmed to
00054 // fudge the display size to make it more convenient to display 
00055 // images of a certain size.
00056 // </synopsis>
00057 //
00058 // <motivation>
00059 // Allow for client programmer to control the size of the
00060 // <linkto class="WorldCanvas">WorldCanvas</linkto>.
00061 // </motivation>
00062 //
00063 // <example>
00064 // none available yet.
00065 // </example>
00066 //
00067 // <todo>
00068 // <li> Decide on implementation details
00069 // <li> Get a concrete class implemented
00070 // </todo>
00071 //
00072 
00073 class WCSizeControlHandler {
00074 
00075  public:
00076 
00077   // Default Constructor Required
00078   WCSizeControlHandler();
00079 
00080   // apply function called by world canvas
00081   // during refresh
00082   virtual Bool executeSizeControl(WorldCanvas *wc) = 0;
00083 
00084   // Destructor
00085   virtual ~WCSizeControlHandler();
00086 
00087 };
00088 
00089 
00090 } //# NAMESPACE CASA - END
00091 
00092 #endif
00093