casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TblAsRasterDM.h
Go to the documentation of this file.
1 //# TblAsRasterDM.h: Display Method for raster displays of data from a table
2 //# Copyright (C) 2000,2001
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 //#
27 //# $Id$
28 
29 #ifndef TRIALDISPLAY_TBLASRASTERDM_H
30 #define TRIALDISPLAY_TBLASRASTERDM_H
31 
32 #include <casa/aips.h>
33 #include <tables/Tables/Table.h>
36 
37 namespace casa { //# NAMESPACE CASA - BEGIN
38 
39 //# Forward Declarations
40 // <summary>
41 // A DisplayMethod to draw Raster images from table data
42 // </summary>
43 //
44 // <use visibility=local> or <use visibility=export>
45 
46 // <reviewed reviewer="" date="" tests="" demos="">
47 // </reviewed>
48 //
49 // <prerequisite>
50 // <li> DisplayMethod
51 // <li> CachingDisplayMethod
52 // </prerequisite>
53 //
54 // <etymology>
55 // </etymology>
56 //
57 // <synopsis>
58 // This class adds to the interface defined by DisplayMethod to provide
59 // the necessary infrastructure to draw raster displays of data from a
60 // table when requested to do so by the TblAsRasterDD class.
61 // </synopsis>
62 
64 
65  public:
66 
67  // constructor
69  AttributeBuffer *wchAttributes,
70  AttributeBuffer *ddAttributes,
71  CachingDisplayData *dd);
72 
73  // Destructor.
74  virtual ~TblAsRasterDM();
75 
76  // Clean up (ie. delete any existing cached display list).
77  virtual void cleanup();
78 
79  // Draw into a cached drawing list, called by draw function.
81  WorldCanvasHolder &wcHolder);
82 
83  protected:
84 
85  // (Required) default constructor.
86  TblAsRasterDM();
87 
88  // (Required) copy constructor.
89  TblAsRasterDM(const TblAsRasterDM &other);
90 
91  // (Required) copy assignment.
92  void operator=(const TblAsRasterDM &other);
93 
94  private:
95 
96  };
97 
98 
99 } //# NAMESPACE CASA - END
100 
101 #endif
Assistance class for auto-caching of DisplayData objects.
virtual void cleanup()
Clean up (ie.
void operator=(const TblAsRasterDM &other)
(Required) copy assignment.
Buffer for storing Attributes.
TblAsRasterDM()
(Required) default constructor.
A DisplayMethod to draw Raster images from table data.
Definition: TblAsRasterDM.h:63
virtual ~TblAsRasterDM()
Destructor.
virtual WorldCanvas * worldCanvas()
Return the WorldCanvas recorded in this CachingDisplayMethod.
Base class for auto-caching DisplayData objects.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual casacore::Bool drawIntoList(Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
Draw into a cached drawing list, called by draw function.
RefreshReason
Callback reasons for PCRefreshEvent and WCRefreshEvent.
Definition: DisplayEnums.h:267
A holder to interface between DisplayDatas and a WorldCanvas.
Implementation of drawing in world coordinates on top of a PixelCanvas.
Definition: WorldCanvas.h:204