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>
AbsRelType
Define if a region is absolute or relative.
String: the storage and methods of handling collections of characters.
virtual String type() const
Return region type.
virtual Bool operator==(const WCRegion &other) const
Comparison.
static WCPolygon * fromRecord(const TableRecord &rec, const String &tableName)
Convert to a WCPolygon from a record.
WCPolygon(const WCPolygon &other)
Copy constructor (reference semantics).
virtual TableRecord toRecord(const String &tableName) const
Convert the WCPolygon object to a record.
WCPolygon(const Quantum< Vector< Double > > &x, const Quantum< Vector< Double > > &y, const IPosition &pixelAxes, const CoordinateSystem &cSys, const RegionType::AbsRelType absRel=RegionType::Abs)
Construct from two vectors of world coordinates defining the polygon vertices.
virtual Bool canExtend() const
WCPolygon cannot extend a region.
WCPolygon & operator=(const WCPolygon &other)
Assignment (copy semantics)
RegionType::AbsRelType itsAbsRel
virtual WCRegion * cloneRegion() const
Clone a WCPolygon object.
static String className()
Returns "WCPolygon".
WCPolygon(const LCPolygon &polygon, const IPosition &pixelAxes, const CoordinateSystem &cSys)
Construct from an LCPolygon.
Quantum< Vector< Double > > itsX
Quantum< Vector< Double > > itsY
virtual ~WCPolygon()
Destructor.
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.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.