casa
$Rev:20696$
|
00001 //# DefaultWCSizeControlHandler.h: default size control handling for WC 00002 //# Copyright (C) 1993,1994,1995,1996,2000,2001 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_DEFAULTWCSIZECONTROLHANDLER_H 00029 #define TRIALDISPLAY_DEFAULTWCSIZECONTROLHANDLER_H 00030 00031 #include <casa/aips.h> 00032 #include <display/DisplayCanvas/WCSizeControlHandler.h> 00033 00034 namespace casa { //# NAMESPACE CASA - BEGIN 00035 00036 // <summary> 00037 // Default WorldCanvas SizeControl handler 00038 // </summary> 00039 // 00040 // <etymology> 00041 // DefaultWCSizeControlHandler - Default WorldCanvas Size Control Handler. 00042 // </etymology> 00043 // 00044 // <synopsis> 00045 // This class implements default functionality for the size control handler 00046 // that the WorldCanvas creates for itself when the WorldCanvas constructor 00047 // is called. 00048 // 00049 // Presently the default size control handler does nothing, relying on the 00050 // <linkto class="WCResampleHandler">WCResampleHandler</linkto> 00051 // to fit output images to the screen pixel array when images are supposed 00052 // to be drawn. 00053 // </synopsis> 00054 // 00055 // <motivation> 00056 // Wanted to have default functionality for this to make it easier on the user 00057 // of this class and to avoid having to check all the time in the WorldCanvas 00058 // to see if a size control handler has been registered. 00059 // </motivation> 00060 // 00061 // <example> 00062 // none available yet. 00063 // </example> 00064 // 00065 // <todo> 00066 // <li> provide example 00067 // <li> consider restricting interface to accepting and modifying 00068 // a rectangle representing the largest available plotting size. 00069 // </todo> 00070 // 00071 00072 class DefaultWCSizeControlHandler : public WCSizeControlHandler { 00073 00074 public: 00075 00076 // Default Constructor Required 00077 DefaultWCSizeControlHandler(); 00078 00079 // apply modifies the world canvas parameters through the passed pointer. 00080 virtual Bool executeSizeControl(WorldCanvas * wc); 00081 00082 // Destructor 00083 virtual ~DefaultWCSizeControlHandler(); 00084 00085 }; 00086 00087 00088 } //# NAMESPACE CASA - END 00089 00090 #endif 00091 00092