casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnnLine.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_ANNLINE_H
29 #define ANNOTATIONS_ANNLINE_H
30 
32 
33 #include <casa/Arrays/Vector.h>
35 
36 namespace casa {
37 
38 // <summary>Represents a line annotation</summary>
39 
40 // <use visibility=export>
41 
42 // <reviewed reviewer="" date="yyyy/mm/dd">
43 // </reviewed>
44 
45 // <synopsis>
46 
47 // Represents an ascii line annotation
48 // </synopsis>
49 
50 class AnnLine: public AnnotationBase {
51 public:
52 
53  AnnLine(
54  const casacore::Quantity& xPoint1,
55  const casacore::Quantity& yPoint1,
56  const casacore::Quantity& xPoint2,
57  const casacore::Quantity& yPoint2,
58  const casacore::String& dirRefFrameString,
59  const casacore::CoordinateSystem& csys,
60  const casacore::Quantity& beginFreq,
61  const casacore::Quantity& endFreq,
62  const casacore::String& freqRefFrame,
63  const casacore::String& dopplerString,
64  const casacore::Quantity& restfreq,
66  );
67 
68  // simplified constructor. Direction quantities must be in the same reference frame as
69  // <src>csys</src> and all frequencies are valid.
70  AnnLine(
71  const casacore::Quantity& xPoint1,
72  const casacore::Quantity& yPoint1,
73  const casacore::Quantity& xPoint2,
74  const casacore::Quantity& yPoint2,
75  const casacore::CoordinateSystem& csys,
77  );
78 
79  // implicit copy constructor and destructor are fine
80 
81  AnnLine& operator=(const AnnLine& other);
82 
83  // get the end point directions, transformed to
84  // the input coordinate system if necessary
86 
87  virtual std::ostream& print(std::ostream &os) const;
88 
89 protected:
91 
92 };
93 
94 }
95 
96 #endif
casacore::Vector< casacore::MDirection > getEndPoints() const
get the end point directions, transformed to the input coordinate system if necessary ...
A 1-D Specialization of the Array class.
Base class for annotations.
virtual std::ostream & print(std::ostream &os) const
Represents a line annotation.
Definition: AnnLine.h:50
AnnotationBase::Direction _inputPoints
Definition: AnnLine.h:90
String: the storage and methods of handling collections of characters.
Definition: String.h:223
AnnLine & operator=(const AnnLine &other)
implicit copy constructor and destructor are fine
AnnLine(const casacore::Quantity &xPoint1, const casacore::Quantity &yPoint1, const casacore::Quantity &xPoint2, const casacore::Quantity &yPoint2, const casacore::String &dirRefFrameString, const casacore::CoordinateSystem &csys, 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)
Interconvert pixel and world coordinates.