casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
WorldAxesDM.h
Go to the documentation of this file.
00001 //# WorldAxesDM.h: axis label drawing for AxesDisplayData
00002 //# Copyright (C) 1999,2000,2001,2004
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_WORLDAXESDM_H
00029 #define TRIALDISPLAY_WORLDAXESDM_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 
00040 // <summary> 
00041 // Class to draw a single set of axis labels for AxesDisplayData.
00042 // </summary>
00043 //
00044 // <synopsis>
00045 // This class adds to the interface defined by DisplayMethod to
00046 // provide the necessary infrastructure to draw a single set of
00047 // axis labels when requested by the AxesDisplayData class.
00048 // </synopsis>
00049 
00050 class WorldAxesDM : public CachingDisplayMethod {
00051 
00052  public:
00053 
00054   // Constructor.
00055   WorldAxesDM(WorldCanvas *worldCanvas, 
00056               AttributeBuffer *wchAttributes,
00057               AttributeBuffer *ddAttributes,
00058               CachingDisplayData *dd);
00059   
00060   // Destructor.
00061   virtual ~WorldAxesDM();
00062   
00063   // Clean up (ie. delete any existing cached display list).
00064   virtual void cleanup();
00065   
00066   // Draw into a cached drawing list, called by draw function.
00067   virtual Bool drawIntoList(Display::RefreshReason reason,
00068                             WorldCanvasHolder &wcHolder);
00069   
00070  protected:
00071 
00072   // (Required) default constructor.
00073   WorldAxesDM();
00074 
00075   // (Required) copy constructor.
00076   WorldAxesDM(const WorldAxesDM &other);
00077 
00078   // (Required) copy assignment.
00079   void operator=(const WorldAxesDM &other);
00080 
00081  private:
00082 
00083 };
00084 
00085 
00086 } //# NAMESPACE CASA - END
00087 
00088 #endif