casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::AnnPolygon Class Reference

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>

Inheritance diagram for casa::AnnPolygon:
casa::AnnRegion casa::AnnotationBase

List of all members.

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.
AnnPolygonoperator= (const AnnPolygon &other)
 implicit copy constructor and destructor are fine
Vector< MDirectiongetCorners () 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

Detailed Description

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>

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Etymology

Holds the specification of a polygon annotation.

Synopsis

This class represents a polygon annotation.

Definition at line 46 of file AnnPolygon.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void casa::AnnPolygon::_init ( ) [private]

Reimplemented from casa::AnnRegion.

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


Member Data Documentation

Definition at line 96 of file AnnPolygon.h.

Definition at line 96 of file AnnPolygon.h.


The documentation for this class was generated from the following file: