casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WedgeDM.h
Go to the documentation of this file.
1 //# WedgeDM.h: drawing for Wedge DisplayDatas
2 //# Copyright (C) 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 //# $Id$
27 
28 #ifndef TRIALDISPLAY_WEDGEDM_H
29 #define TRIALDISPLAY_WEDGEDM_H
30 
31 #include <casa/aips.h>
35 
36 namespace casa { //# NAMESPACE CASA - BEGIN
37 
38 // <summary>
39 // The DisplayMethod to draw Wedges
40 // </summary>
41 //
42 // <use visibility=export>
43 //
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45 // </reviewed>
46 //
47 // <etymology>
48 // </etymology>
49 //
50 // <synopsis> This class supplies the actual drawing of the wedge via
51 // the drawIntoList method
52 // </synopsis>
53 //
54 // <example>
55 // <srcBlock>
56 // </srcBlock>
57 // </example>
58 //
59 // <motivation>
60 // Users want wedges
61 //</motivation>
62 //
63 // <todo>
64 // Transposed wedge drawing
65 // </todo>
66 //
67 
68  class WedgeDM : public CachingDisplayMethod {
69 
70  public:
71 
72  // Constructor.
74  AttributeBuffer *wchAttributes,
75  AttributeBuffer *ddAttributes,
76  CachingDisplayData *dd);
77 
78  // Destructor.
79  virtual ~WedgeDM();
80 
81  // Clean up (ie. delete any existing cached display list).
82  virtual void cleanup();
83 
84  // Draw into a cached drawing list, called by draw function.
86  WorldCanvasHolder &wcHolder);
87 
88  protected:
89 
90  // (Required) default constructor.
91  WedgeDM();
92 
93  // (Required) copy constructor.
94  WedgeDM(const WedgeDM &other);
95 
96  // (Required) copy assignment.
97  void operator=(const WedgeDM &other);
98 
99  private:
100 
101  };
102 
103 
104 } //# NAMESPACE CASA - END
105 
106 #endif
virtual casacore::Bool drawIntoList(Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
Draw into a cached drawing list, called by draw function.
Assistance class for auto-caching of DisplayData objects.
Buffer for storing Attributes.
virtual WorldCanvas * worldCanvas()
Return the WorldCanvas recorded in this CachingDisplayMethod.
virtual ~WedgeDM()
Destructor.
WedgeDM()
(Required) default constructor.
Base class for auto-caching DisplayData objects.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
The DisplayMethod to draw Wedges.
Definition: WedgeDM.h:68
void operator=(const WedgeDM &other)
(Required) copy assignment.
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
virtual void cleanup()
Clean up (ie.