casa
$Rev:20696$
|
00001 //# DrawingDisplayMethod.h: actual drawing for interactive DrawingDisplayData 00002 //# Copyright (C) 1999,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_DRAWINGDISPLAYMETHOD_H 00029 #define TRIALDISPLAY_DRAWINGDISPLAYMETHOD_H 00030 00031 #include <casa/aips.h> 00032 #include <display/Display/DisplayEnums.h> 00033 #include <display/Display/WorldCanvasHolder.h> 00034 #include <display/DisplayDatas/CachingDisplayMethod.h> 00035 00036 namespace casa { //# NAMESPACE CASA - BEGIN 00037 00038 class WorldCanvas; 00039 class DrawingDisplayData; 00040 00041 // <summary> 00042 // DisplayMethod which provides actual drawing for DrawingDisplayData class. 00043 // </summary> 00044 00045 // <synopsis> 00046 // This class provides the necessary implementation for the 00047 // actual drawing of the objects contained within a 00048 // DrawingDisplayData object. 00049 // </synopsis> 00050 00051 class DrawingDisplayMethod : public CachingDisplayMethod { 00052 00053 public: 00054 00055 // Constructor. 00056 DrawingDisplayMethod(WorldCanvas *worldCanvas, 00057 AttributeBuffer *wchAttributes, 00058 AttributeBuffer *ddAttributes, 00059 CachingDisplayData *dd); 00060 00061 // Destructor. 00062 virtual ~DrawingDisplayMethod(); 00063 00064 // Clean up (ie. delete any existing cached display list). 00065 virtual void cleanup(); 00066 00067 // Draw into a cached drawing list, called by draw function. 00068 virtual Bool drawIntoList(Display::RefreshReason reason, 00069 WorldCanvasHolder &wcHolder); 00070 00071 protected: 00072 00073 // (Required) default constructor. 00074 DrawingDisplayMethod(); 00075 00076 // (Required) copy constructor. 00077 DrawingDisplayMethod(const DrawingDisplayMethod &other); 00078 00079 // (Required) copy assignment. 00080 void operator=(const DrawingDisplayMethod &other); 00081 00082 private: 00083 00084 }; 00085 00086 00087 } //# NAMESPACE CASA - END 00088 00089 #endif