casa
$Rev:20696$
|
00001 //# TblAsXYDM.h: Display Method for xy 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_TBLASXYDM_H 00030 #define TRIALDISPLAY_TBLASXYDM_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 00041 // <summary> 00042 // A DisplayMethod to draw XY plots from table data 00043 // </summary> 00044 // 00045 // <use visibility=local> or <use visibility=export> 00046 00047 // <reviewed reviewer="" date="" tests="" demos=""> 00048 // </reviewed> 00049 // 00050 // <prerequisite> 00051 // <li> DisplayMethod 00052 // <li> CachingDisplayMethod 00053 // </prerequisite> 00054 // 00055 // <etymology> 00056 // </etymology> 00057 // 00058 // <synopsis> 00059 // This class adds to the interface defined by DisplayMethod to provide 00060 // the necessary infrastructure to draw xy displays of data from a 00061 // table when requested to do so by the TblAsXYDD class. 00062 // </synopsis> 00063 00064 class TblAsXYDM : public CachingDisplayMethod { 00065 00066 public: 00067 00068 // constructor 00069 TblAsXYDM(WorldCanvas *worldCanvas, 00070 AttributeBuffer *wchAttributes, 00071 AttributeBuffer *ddAttributes, 00072 CachingDisplayData *dd); 00073 00074 // Destructor. 00075 virtual ~TblAsXYDM(); 00076 00077 // Clean up (ie. delete any existing cached display list). 00078 virtual void cleanup(); 00079 00080 // Draw into a cached drawing list, called by draw function. 00081 virtual Bool drawIntoList(Display::RefreshReason reason, 00082 WorldCanvasHolder &wcHolder); 00083 00084 protected: 00085 00086 // (Required) default constructor. 00087 TblAsXYDM(); 00088 00089 // (Required) copy constructor. 00090 TblAsXYDM(const TblAsXYDM &other); 00091 00092 // (Required) copy assignment. 00093 void operator=(const TblAsXYDM &other); 00094 00095 private: 00096 00097 }; 00098 00099 00100 } //# NAMESPACE CASA - END 00101 00102 #endif