AnnVector.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef ANNOTATIONS_ANNVECTOR_H
00027 #define ANNOTATIONS_ANNVECTOR_H
00028
00029 #include <imageanalysis/Annotations/AnnotationBase.h>
00030
00031 #include <casa/Arrays/Vector.h>
00032 #include <measures/Measures/MDirection.h>
00033
00034 namespace casa {
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 class AnnVector: public AnnotationBase {
00049 public:
00050
00051 AnnVector(
00052 const Quantity& xStart,
00053 const Quantity& yStart,
00054 const Quantity& xEnd,
00055 const Quantity& yEnd,
00056 const String& dirRefFrameString,
00057 const CoordinateSystem& csys,
00058 const Quantity& beginFreq,
00059 const Quantity& endFreq,
00060 const String& freqRefFrame,
00061 const String& dopplerString,
00062 const Quantity& restfreq,
00063 const Vector<Stokes::StokesTypes>& stokes
00064 );
00065
00066 AnnVector(
00067 const Quantity& xStart,
00068 const Quantity& yStart,
00069 const Quantity& xEnd,
00070 const Quantity& yEnd,
00071 const CoordinateSystem& csys,
00072 const Vector<Stokes::StokesTypes>& stokes
00073 );
00074
00075
00076
00077
00078 AnnVector& operator=(const AnnVector& other);
00079
00080
00081
00082
00083
00084 Vector<MDirection> getEndPoints() const;
00085
00086 virtual ostream& print(ostream &os) const;
00087
00088 private:
00089 AnnotationBase::Direction _inputPoints;
00090
00091 void _init(
00092 const Quantity& xBegin, const Quantity& yBegin,
00093 const Quantity& xEnd, const Quantity& yEnd
00094 );
00095 };
00096
00097 }
00098
00099 #endif