casa
$Rev:20696$
|
This class represents a single polygon (in position coordinates) annotation specified in an ascii region file as proposed in CAS-2285 <author>Dave Mehringer</author> More...
#include <AnnPolygon.h>
Public Member Functions | |
AnnPolygon (const Vector< Quantity > &xPositions, const Vector< Quantity > &yPositions, const String &dirRefFrameString, const CoordinateSystem &csys, const IPosition &imShape, const Quantity &beginFreq, const Quantity &endFreq, const String &freqRefFrameString, const String &dopplerString, const Quantity &restfreq, const Vector< Stokes::StokesTypes > stokes, const Bool annotationOnly) | |
AnnPolygon (const Vector< Quantity > &xPositions, const Vector< Quantity > &yPositions, const CoordinateSystem &csys, const IPosition &imShape, const Vector< Stokes::StokesTypes > &stokes) | |
Simplified constructor. | |
AnnPolygon & | operator= (const AnnPolygon &other) |
implicit copy constructor and destructor are fine | |
Vector< MDirection > | getCorners () const |
get the vertices converted to the coordinate system used at construction. | |
void | worldVertices (vector< Quantity > &x, vector< Quantity > &y) const |
get the world coordinates of the polygon vertices | |
void | pixelVertices (vector< Double > &x, vector< Double > &y) const |
get the pixel coordinates of the polygon vertices | |
virtual ostream & | print (ostream &os) const |
Private Member Functions | |
void | _init () |
Private Attributes | |
Vector< Quantity > | _origXPos |
Vector< Quantity > | _origYPos |
This class represents a single polygon (in position coordinates) annotation specified in an ascii region file as proposed in CAS-2285 <author>Dave Mehringer</author>
Public interface
Holds the specification of a polygon annotation.
This class represents a polygon annotation.
Definition at line 46 of file AnnPolygon.h.
casa::AnnPolygon::AnnPolygon | ( | const Vector< Quantity > & | xPositions, |
const Vector< Quantity > & | yPositions, | ||
const String & | dirRefFrameString, | ||
const CoordinateSystem & | csys, | ||
const IPosition & | imShape, | ||
const Quantity & | beginFreq, | ||
const Quantity & | endFreq, | ||
const String & | freqRefFrameString, | ||
const String & | dopplerString, | ||
const Quantity & | restfreq, | ||
const Vector< Stokes::StokesTypes > | stokes, | ||
const Bool | annotationOnly | ||
) |
casa::AnnPolygon::AnnPolygon | ( | const Vector< Quantity > & | xPositions, |
const Vector< Quantity > & | yPositions, | ||
const CoordinateSystem & | csys, | ||
const IPosition & | imShape, | ||
const Vector< Stokes::StokesTypes > & | stokes | ||
) |
Simplified constructor.
all frequencies are used (these can be set after construction). xPositions and yPositions must be in the same frame as the csys direction coordinate. is a region (not just an annotation), although this value can be changed after construction.
void casa::AnnPolygon::_init | ( | ) | [private] |
Reimplemented from casa::AnnRegion.
Vector<MDirection> casa::AnnPolygon::getCorners | ( | ) | const |
get the vertices converted to the coordinate system used at construction.
AnnPolygon& casa::AnnPolygon::operator= | ( | const AnnPolygon & | other | ) |
implicit copy constructor and destructor are fine
void casa::AnnPolygon::pixelVertices | ( | vector< Double > & | x, |
vector< Double > & | y | ||
) | const |
get the pixel coordinates of the polygon vertices
virtual ostream& casa::AnnPolygon::print | ( | ostream & | os | ) | const [virtual] |
Implements casa::AnnotationBase.
void casa::AnnPolygon::worldVertices | ( | vector< Quantity > & | x, |
vector< Quantity > & | y | ||
) | const |
get the world coordinates of the polygon vertices
Vector<Quantity> casa::AnnPolygon::_origXPos [private] |
Definition at line 96 of file AnnPolygon.h.
Vector<Quantity> casa::AnnPolygon::_origYPos [private] |
Definition at line 96 of file AnnPolygon.h.