casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TblAsRasterDM.h
Go to the documentation of this file.
00001 //# TblAsRasterDM.h: Display Method for raster displays of data from a table
00002 //# Copyright (C) 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 //#
00027 //# $Id$
00028 
00029 #ifndef TRIALDISPLAY_TBLASRASTERDM_H
00030 #define TRIALDISPLAY_TBLASRASTERDM_H
00031 
00032 #include <casa/aips.h>
00033 #include <tables/Tables/Table.h>           
00034 #include <display/Display/WorldCanvas.h>                  
00035 #include <display/DisplayDatas/CachingDisplayMethod.h>
00036 
00037 namespace casa { //# NAMESPACE CASA - BEGIN
00038 
00039 //# Forward Declarations
00040 // <summary> 
00041 // A DisplayMethod to draw Raster images from table data
00042 // </summary>
00043 //
00044 // <use visibility=local>   or   <use visibility=export>
00045 
00046 // <reviewed reviewer="" date="" tests="" demos="">
00047 // </reviewed>
00048 //
00049 // <prerequisite>
00050 //   <li> DisplayMethod
00051 //   <li> CachingDisplayMethod
00052 // </prerequisite>
00053 //
00054 // <etymology>
00055 // </etymology>
00056 //
00057 // <synopsis>
00058 // This class adds to the interface defined by DisplayMethod to provide 
00059 // the necessary infrastructure to draw raster displays of data from a 
00060 // table when requested to do so by the TblAsRasterDD class.
00061 // </synopsis>
00062 
00063 class TblAsRasterDM : public CachingDisplayMethod {
00064 
00065  public:
00066 
00067   // constructor
00068   TblAsRasterDM(WorldCanvas *worldCanvas, 
00069                 AttributeBuffer *wchAttributes,
00070                 AttributeBuffer *ddAttributes,
00071                 CachingDisplayData *dd);
00072   
00073   // Destructor.
00074   virtual ~TblAsRasterDM();
00075   
00076   // Clean up (ie. delete any existing cached display list).
00077   virtual void cleanup();
00078   
00079   // Draw into a cached drawing list, called by draw function.
00080   virtual Bool drawIntoList(Display::RefreshReason reason,
00081                             WorldCanvasHolder &wcHolder);
00082   
00083  protected:
00084   
00085   // (Required) default constructor.
00086   TblAsRasterDM();
00087   
00088   // (Required) copy constructor.
00089   TblAsRasterDM(const TblAsRasterDM &other);
00090   
00091   // (Required) copy assignment.
00092   void operator=(const TblAsRasterDM &other);
00093   
00094  private:
00095 
00096 };
00097 
00098 
00099 } //# NAMESPACE CASA - END
00100 
00101 #endif