casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TblAsContourDM.h
Go to the documentation of this file.
00001 //# TblAsContourDM.h: Display Method for contour 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_TBLASCONTOURDM_H
00030 #define TRIALDISPLAY_TBLASCONTOURDM_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 Contours 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 // <synopsis>
00057 // This class adds to the interface defined by DisplayMethod to provide 
00058 // the necessary infrastructure to draw contour displays of data from a 
00059 // table when requested to do so by the TblAsContourDD class.
00060 // </synopsis>
00061 
00062 class TblAsContourDM : public CachingDisplayMethod {
00063 
00064  public:
00065 
00066   // constructor
00067   TblAsContourDM(WorldCanvas *worldCanvas, 
00068                 AttributeBuffer *wchAttributes,
00069                 AttributeBuffer *ddAttributes,
00070                 CachingDisplayData *dd);
00071   
00072   // Destructor.
00073   virtual ~TblAsContourDM();
00074   
00075   // Clean up (ie. delete any existing cached display list).
00076   virtual void cleanup();
00077   
00078   // Draw into a cached drawing list, called by draw function.
00079   virtual Bool drawIntoList(Display::RefreshReason reason,
00080                             WorldCanvasHolder &wcHolder);
00081   
00082  protected:
00083   
00084   // (Required) default constructor.
00085   TblAsContourDM();
00086   
00087   // (Required) copy constructor.
00088   TblAsContourDM(const TblAsContourDM &other);
00089   
00090   // (Required) copy assignment.
00091   void operator=(const TblAsContourDM &other);
00092   
00093  private:
00094 
00095 };
00096 
00097 
00098 } //# NAMESPACE CASA - END
00099 
00100 #endif