casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Profile2dDM.h
Go to the documentation of this file.
1 //# Profile2dDM.h: Drawing Method for 2d Profile DisplayDatas
2 //# Copyright (C) 2003
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_PROFILE2DDM_H
29 #define TRIALDISPLAY_PROFILE2DDM_H
30 
31 #include <casa/aips.h>
36 namespace casa { //# NAMESPACE CASA - BEGIN
37 
38 // <summary>
39 // A DisplayMethod to draw Profiles
40 // </summary>
41 //
42 // <use visibility=export>
43 //
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45 // </reviewed>
46 //
47 // <prerequisite>
48 // <li> DisplayMethod
49 // <li> CachingDisplayMethod
50 // </prerequisite>
51 //
52 // <etymology>
53 // </etymology>
54 // <synopsis>
55 //
56 // </synopsis>
57 
59 
60  public:
61 
62  // Constructor.
64  AttributeBuffer *wchAttributes,
65  AttributeBuffer *ddAttributes,
66  CachingDisplayData *dd);
67 
68  // Destructor.
69  virtual ~Profile2dDM();
70 
71  // Clean up (ie. delete any existing cached display list).
72  virtual void cleanup();
73 
74  // Draw into a cached drawing list, called by draw function.
76  WorldCanvasHolder &wcHolder);
77 
78  protected:
79 
80  // (Required) default constructor.
81  Profile2dDM();
82 
83  // (Required) copy constructor.
84  Profile2dDM(const Profile2dDM &other);
85 
86  // (Required) copy assignment.
87  void operator=(const Profile2dDM &other);
88 
89  private:
90  // <group>
91  // Set the appropriate styes and rules for drawing the profile
92  void setStyles(WorldCanvas *wc, Profile2dDD *parent);
93  // Restore the appropriate styles and rules after drawing
94  // is completed
95  void restoreStyles(WorldCanvas *wc);
96  // </group>
97  };
98 
99 
100 } //# NAMESPACE CASA - END
101 
102 #endif
Assistance class for auto-caching of DisplayData objects.
Buffer for storing Attributes.
A DisplayData to draw Profiles.
Definition: Profile2dDD.h:122
void restoreStyles(WorldCanvas *wc)
Restore the appropriate styles and rules after drawing is completed.
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
A DisplayMethod to draw Profiles.
Definition: Profile2dDM.h:58
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
Profile2dDM()
(Required) default constructor.
virtual casacore::Bool drawIntoList(Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
Draw into a cached drawing list, called by draw function.
void operator=(const Profile2dDM &other)
(Required) copy assignment.
void setStyles(WorldCanvas *wc, Profile2dDD *parent)
Set the appropriate styes and rules for drawing the profile.
virtual void cleanup()
Clean up (ie.
virtual ~Profile2dDM()
Destructor.