casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSClosed.h
Go to the documentation of this file.
1 //# DSClosed.h: Base class for all 'closed' DisplayShapes
2 //# Copyright (C) 1998,1999,2000,2001,2002
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_DSCLOSED_H
29 #define TRIALDISPLAY_DSCLOSED_H
30 
31 
32 #include <casa/aips.h>
33 
35 
36 namespace casa { //# NAMESPACE CASA - BEGIN
37 
38 // <summary>
39 // DSClosed provides common functionality for all "closed" shapes.
40 // </summary>
41 //
42 // <prerequisite>
43 // <li> <linkto class="DSBasic">DSBasic</linkto>
44 // <li> <linkto class="DisplayShape">DisplayShape</linkto>
45 // </prerequisite>
46 //
47 // <etymology>
48 // DSClosed is used to provide a common interface for all closed shapes
49 // </etymology>
50 //
51 // <synopsis>
52 // DSClosed simply manages the fill options of any closed display shapes.
53 // </synopsis>
54 //
55 // <motivation>
56 // A desire for a common interface for all closed shapes.
57 // </motivation>
58 //
59 // <example>
60 // <srcblock>
61 // </srcblock>
62 // </example>
63 
64  class DSClosed : public DSBasic {
65 
66  public:
67 
68  // Type of fill to use.
70 
71  // Constructors and destructors
72  // <group>
73  DSClosed();
74  DSClosed(const DSClosed& other);
75 
76  virtual ~DSClosed();
77  // </group>
78 
79  // Get / Set fill options
80  // <group>
81  virtual void setFillStyle(DSClosed::FillStyle fill);
83  virtual void setFillColor(casacore::String color);
85  // </group>
86 
87 
88  // General DisplayShape functions. The non abstract functions in this group
89  // simply pass on calls up the class tree.
90  // <group>
91  virtual void draw(PixelCanvas *pc);
92  virtual void rotateAbout(const casacore::Float& angle, const casacore::Float& aboutX,
93  const casacore::Float& aboutY);
94  virtual void move(const casacore::Float& dX, const casacore::Float& dY);
95  // </group>
96 
97  // Get and set options
98  // <group>
99  virtual casacore::Record getOptions();
100  virtual casacore::Bool setOptions(const casacore::Record& settings);
101  // </group>
102 
103  private:
104 
105  // Used to set up the class when default constructor called
106  virtual void setDefaultOptions();
109 
110  };
111 
112 } //# NAMESPACE CASA - END
113 
114 #endif
115 
116 
117 
118 
virtual void move(const casacore::Float &dX, const casacore::Float &dY)
casacore::String itsFillColor
Definition: DSClosed.h:108
virtual void setFillColor(casacore::String color)
DSClosed()
Constructors and destructors.
virtual casacore::Bool setOptions(const casacore::Record &settings)
virtual void setDefaultOptions()
Used to set up the class when default constructor called.
Base class defining interface to pixel-based output devices.
Definition: PixelCanvas.h:161
virtual casacore::String getFillColor()
virtual void setFillStyle(DSClosed::FillStyle fill)
Get / Set fill options.
FillStyle
Type of fill to use.
Definition: DSClosed.h:69
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual ~DSClosed()
float Float
Definition: aipstype.h:54
DSClosed::FillStyle itsFillStyle
Definition: DSClosed.h:107
DSClosed provides common functionality for all &quot;closed&quot; shapes.
Definition: DSClosed.h:64
virtual DSClosed::FillStyle getFillStyle()
String: the storage and methods of handling collections of characters.
Definition: String.h:223
virtual casacore::Record getOptions()
Get and set options.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
Base class for all &quot;basic&quot; shapes.
Definition: DSBasic.h:68
virtual void draw(PixelCanvas *pc)
General DisplayShape functions.
virtual void rotateAbout(const casacore::Float &angle, const casacore::Float &aboutX, const casacore::Float &aboutY)