WedgeDM.h

Go to the documentation of this file.
00001 //# WedgeDM.h: drawing for Wedge DisplayDatas
00002 //# Copyright (C) 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_WEDGEDM_H
00029 #define TRIALDISPLAY_WEDGEDM_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 // <summary>
00039 // The DisplayMethod to draw Wedges
00040 // </summary>
00041 //
00042 // <use visibility=export>
00043 //
00044 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00045 // </reviewed>
00046 //
00047 // <etymology>
00048 // </etymology>
00049 //
00050 // <synopsis> This class supplies the actual drawing of the wedge via
00051 // the drawIntoList method
00052 // </synopsis>
00053 //
00054 // <example>
00055 // <srcBlock>
00056 // </srcBlock>
00057 // </example>
00058 //
00059 // <motivation>
00060 // Users want wedges
00061 //</motivation>
00062 //
00063 // <todo>
00064 // Transposed wedge drawing
00065 // </todo>
00066 //
00067 
00068         class WedgeDM : public CachingDisplayMethod {
00069 
00070         public:
00071 
00072                 // Constructor.
00073                 WedgeDM(WorldCanvas *worldCanvas,
00074                         AttributeBuffer *wchAttributes,
00075                         AttributeBuffer *ddAttributes,
00076                         CachingDisplayData *dd);
00077 
00078                 // Destructor.
00079                 virtual ~WedgeDM();
00080 
00081                 // Clean up (ie. delete any existing cached display list).
00082                 virtual void cleanup();
00083 
00084                 // Draw into a cached drawing list, called by draw function.
00085                 virtual Bool drawIntoList(Display::RefreshReason reason,
00086                                           WorldCanvasHolder &wcHolder);
00087 
00088         protected:
00089 
00090                 // (Required) default constructor.
00091                 WedgeDM();
00092 
00093                 // (Required) copy constructor.
00094                 WedgeDM(const WedgeDM &other);
00095 
00096                 // (Required) copy assignment.
00097                 void operator=(const WedgeDM &other);
00098 
00099         private:
00100 
00101         };
00102 
00103 
00104 } //# NAMESPACE CASA - END
00105 
00106 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1