Go to the documentation of this file.
29 #ifndef IMAGES_WCPOLYGON_H
30 #define IMAGES_WCPOLYGON_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/coordinates/Coordinates/CoordinateSystem.h>
35 #include <casacore/images/Regions/WCRegion.h>
36 #include <casacore/lattices/LRegions/RegionType.h>
37 #include <casacore/casa/Arrays/Vector.h>
38 #include <casacore/casa/Quanta/Quantum.h>
Interconvert pixel and world coordinates.
A Vector of integers, for indexing into Array<T> objects.
A hierarchical collection of named fields of various types.
virtual WCRegion * cloneRegion() const
Clone a WCPolygon object.
RegionType::AbsRelType itsAbsRel
Quantum< Vector< Double > > itsX
Base class to define world coordinate regions of interest in an image.
static WCPolygon * fromRecord(const TableRecord &rec, const String &tableName)
Convert to a WCPolygon from a record.
AbsRelType
Define if a region is absolute or relative.
virtual TableRecord toRecord(const String &tableName) const
Convert the WCPolygon object to a record.
virtual String type() const
Return region type.
virtual LCRegion * doToLCRegion(const CoordinateSystem &cSys, const IPosition &latticeShape, const IPosition &pixelAxesMap, const IPosition &outOrder) const
Convert to an LCRegion using the given coordinate system.
virtual ~WCPolygon()
Destructor.
Abstract base class to define a region of interest in lattice coordinates.
virtual Bool operator==(const WCRegion &other) const
Comparison.
this file contains all the compiler specific defines
WCPolygon & operator=(const WCPolygon &other)
Assignment (copy semantics)
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
Define a 2-dimensional region by a polygon.
Class to define a 2-D polygonal world coordinate region in an image.
Quantum< Vector< Double > > itsY
Quantities (i.e. dimensioned values)
static String className()
Returns "WCPolygon".
virtual Bool canExtend() const
WCPolygon cannot extend a region.