AnnPolyline.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 #ifndef ANNOTATIONS_ANNPOLYLINE_H
00018 #define ANNOTATIONS_ANNPOLYLINE_H
00019
00020 #include <casa/aips.h>
00021 #include <imageanalysis/Annotations/AnnRegion.h>
00022
00023 namespace casa {
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 class AnnPolyline: public AnnRegion {
00046
00047 public:
00048
00049 AnnPolyline(
00050 const Vector<Quantity>& xPositions,
00051 const Vector<Quantity>& yPositions,
00052 const String& dirRefFrameString,
00053 const CoordinateSystem& csys,
00054 const IPosition& imShape,
00055 const Quantity& beginFreq,
00056 const Quantity& endFreq,
00057 const String& freqRefFrameString,
00058 const String& dopplerString,
00059 const Quantity& restfreq,
00060 const Vector<Stokes::StokesTypes> stokes,
00061 const Bool annotationOnly
00062 );
00063
00064
00065
00066
00067
00068
00069
00070 AnnPolyline(
00071 const Vector<Quantity>& xPositions,
00072 const Vector<Quantity>& yPositions,
00073 const CoordinateSystem& csys,
00074 const IPosition& imShape,
00075 const Vector<Stokes::StokesTypes>& stokes
00076 );
00077
00078
00079
00080 AnnPolyline& operator=(const AnnPolyline& other);
00081
00082
00083 Vector<MDirection> getCorners() const;
00084
00085
00086 void worldVertices(vector<Quantity>& x, vector<Quantity>& y) const;
00087
00088
00089 void pixelVertices(vector<Double>& x, vector<Double>& y) const;
00090
00091
00092 virtual ostream& print(ostream &os) const;
00093
00094 private:
00095 Vector<Quantity> _origXPos, _origYPos;
00096
00097 void _init();
00098 };
00099
00100 }
00101
00102 #endif