casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WorldAxesDM.h
Go to the documentation of this file.
1 //# WorldAxesDM.h: axis label drawing for AxesDisplayData
2 //# Copyright (C) 1999,2000,2001,2004
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef TRIALDISPLAY_WORLDAXESDM_H
29 #define TRIALDISPLAY_WORLDAXESDM_H
30 
31 #include <casa/aips.h>
35 
36 namespace casa { //# NAMESPACE CASA - BEGIN
37 
38  class WorldCanvas;
39 
40 // <summary>
41 // Class to draw a single set of axis labels for AxesDisplayData.
42 // </summary>
43 //
44 // <synopsis>
45 // This class adds to the interface defined by DisplayMethod to
46 // provide the necessary infrastructure to draw a single set of
47 // axis labels when requested by the AxesDisplayData class.
48 // </synopsis>
49 
51 
52  public:
53 
54  // Constructor.
56  AttributeBuffer *wchAttributes,
57  AttributeBuffer *ddAttributes,
58  CachingDisplayData *dd);
59 
60  // Destructor.
61  virtual ~WorldAxesDM();
62 
63  // Clean up (ie. delete any existing cached display list).
64  virtual void cleanup();
65 
66  // Draw into a cached drawing list, called by draw function.
68  WorldCanvasHolder &wcHolder);
69 
70  protected:
71 
72  // (Required) default constructor.
73  WorldAxesDM();
74 
75  // (Required) copy constructor.
76  WorldAxesDM(const WorldAxesDM &other);
77 
78  // (Required) copy assignment.
79  void operator=(const WorldAxesDM &other);
80 
81  private:
82 
83  };
84 
85 
86 } //# NAMESPACE CASA - END
87 
88 #endif
Assistance class for auto-caching of DisplayData objects.
void operator=(const WorldAxesDM &other)
(Required) copy assignment.
WorldAxesDM()
(Required) default constructor.
Class to draw a single set of axis labels for AxesDisplayData.
Definition: WorldAxesDM.h:50
Buffer for storing Attributes.
virtual WorldCanvas * worldCanvas()
Return the WorldCanvas recorded in this CachingDisplayMethod.
virtual void cleanup()
Clean up (ie.
Base class for auto-caching DisplayData objects.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual ~WorldAxesDM()
Destructor.
RefreshReason
Callback reasons for PCRefreshEvent and WCRefreshEvent.
Definition: DisplayEnums.h:267
virtual casacore::Bool drawIntoList(Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
Draw into a cached drawing list, called by draw function.
A holder to interface between DisplayDatas and a WorldCanvas.
Implementation of drawing in world coordinates on top of a PixelCanvas.
Definition: WorldCanvas.h:204