17 #ifndef ANNOTATIONS_ANNPOLYGON_H
18 #define ANNOTATIONS_ANNPOLYGON_H
89 void worldVertices(std::vector<casacore::Quantity>& x, std::vector<casacore::Quantity>& y)
const;
92 void pixelVertices(std::vector<casacore::Double>& x, std::vector<casacore::Double>& y)
const;
95 virtual std::ostream&
print(std::ostream &os)
const;
casacore::Vector< casacore::Quantity > _origYPos
A Vector of integers, for indexing into Array<T> objects.
casacore::Vector< casacore::MDirection > getCorners() const
get the vertices converted to the coordinate system used at construction.
A Measure: astronomical direction.
A 1-D Specialization of the Array class.
AnnPolygon(const casacore::Vector< casacore::Quantity > &xPositions, const casacore::Vector< casacore::Quantity > &yPositions, const casacore::String &dirRefFrameString, const casacore::CoordinateSystem &csys, const casacore::IPosition &imShape, const casacore::Quantity &beginFreq, const casacore::Quantity &endFreq, const casacore::String &freqRefFrameString, const casacore::String &dopplerString, const casacore::Quantity &restfreq, const casacore::Vector< casacore::Stokes::StokesTypes > stokes, const casacore::Bool annotationOnly, const casacore::Bool requireImageRegion=true)
void _doCorners(const casacore::Quantity &widthx, const casacore::Quantity widthy)
virtual std::ostream & print(std::ostream &os) const
void _initCenterRectCorners(const casacore::Quantity ¢erx, const casacore::Quantity ¢ery, const casacore::Quantity &widthx, const casacore::Quantity &widthy, const casacore::Quantity &positionAngle)
This class represents a annotation referring to a region specified in an ascii region file as propose...
void pixelVertices(std::vector< casacore::Double > &x, std::vector< casacore::Double > &y) const
get the pixel coordinates of the polygon vertices
This class represents a single polygon (in position coordinates) annotation specified in an ascii reg...
void worldVertices(std::vector< casacore::Quantity > &x, std::vector< casacore::Quantity > &y) const
get the world coordinates of the polygon vertices
void _initCorners(const casacore::Quantity &blcx, const casacore::Quantity &blcy, const casacore::Quantity &trcx, const casacore::Quantity &trcy)
bool Bool
Define the standard types used by Casacore.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
AnnPolygon & operator=(const AnnPolygon &other)
implicit copy constructor and destructor are fine
String: the storage and methods of handling collections of characters.
Interconvert pixel and world coordinates.
casacore::Vector< casacore::Quantity > _origXPos