casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnnText.h
Go to the documentation of this file.
1 //# ComponentShape.h: Base class for component shapes
2 //# Copyright (C) 1998,1999,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 //# $Id: ComponentShape.h 20739 2009-09-29 01:15:15Z Malte.Marquarding $
27 
28 #ifndef ANNOTATIONS_ANNTEXT_H
29 #define ANNOTATIONS_ANNTEXT_H
30 
32 
33 namespace casa {
34 
35 // <summary>Represents a text annotation</summary>
36 
37 // <use visibility=export>
38 
39 // <reviewed reviewer="" date="yyyy/mm/dd">
40 // </reviewed>
41 
42 // <synopsis>
43 
44 // Represents an ascii text annotation
45 // </synopsis>
46 
47 class AnnText: public AnnotationBase {
48 public:
49 
50  AnnText(
51  const casacore::Quantity& xPos, const casacore::Quantity& yPos,
52  const casacore::String& dirRefFrameString,
53  const casacore::CoordinateSystem& csys,
54  const casacore::String& text,
55  const casacore::Quantity& beginFreq,
56  const casacore::Quantity& endFreq,
57  const casacore::String& freqRefFrame,
58  const casacore::String& dopplerString,
59  const casacore::Quantity& restfreq,
61  );
62 
63  AnnText(
64  const casacore::Quantity& xPos, const casacore::Quantity& yPos,
65  const casacore::CoordinateSystem& csys,
66  const casacore::String& text,
68  );
69 
70  // implicit copy constructor and destructor are fine
71 
72  AnnText& operator=(const AnnText& other);
73 
74  // left most point of text string
76 
77  casacore::String getText() const;
78 
79  virtual std::ostream& print(std::ostream &os) const;
80 
81 private:
84 
85  void _init(const casacore::Quantity& x, const casacore::Quantity& y);
86 
87 };
88 
89 }
90 
91 #endif
A Measure: astronomical direction.
Definition: MDirection.h:174
A 1-D Specialization of the Array class.
Base class for annotations.
virtual std::ostream & print(std::ostream &os) const
Represents a text annotation.
Definition: AnnText.h:47
AnnText & operator=(const AnnText &other)
implicit copy constructor and destructor are fine
AnnText(const casacore::Quantity &xPos, const casacore::Quantity &yPos, const casacore::String &dirRefFrameString, const casacore::CoordinateSystem &csys, const casacore::String &text, const casacore::Quantity &beginFreq, const casacore::Quantity &endFreq, const casacore::String &freqRefFrame, const casacore::String &dopplerString, const casacore::Quantity &restfreq, const casacore::Vector< casacore::Stokes::StokesTypes > &stokes)
casacore::String getText() const
AnnotationBase::Direction _inputDirection
Definition: AnnText.h:82
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::String _text
Definition: AnnText.h:83
casacore::MDirection getDirection() const
left most point of text string
Interconvert pixel and world coordinates.