28 #ifndef LATTICES_LCPOLYGON_H
29 #define LATTICES_LCPOLYGON_H
39 template<
class T>
class Matrix;
A Vector of integers, for indexing into Array<T> objects.
static Bool _isNear(Float val1, Float val2)
takes into account when one value is zero and the other is absolutely (as opposed to relatively) near...
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
static LCPolygon * fromRecord(const TableRecord &, const String &tablename)
Convert correct object from a record.
void defineMask()
Define the mask to indicate which elements are inside the polygon.
LCPolygon & operator=(const LCPolygon &other)
Assignment (copy semantics).
Abstract base class to define a fixed region.
virtual Bool operator==(const LCRegion &other) const
Comparison.
virtual LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Construct another LCPolygon (for e.g.
virtual TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
void defineBox()
Make the bounding box.
virtual String type() const
Get the region type.
static String className()
Get the class name (to store in the record).
virtual LCRegion * cloneRegion() const
Make a copy of the derived object.
const IPosition & latticeShape() const
Give the full lattice shape.
bool Bool
Define the standard types used by Casacore.
A hierarchical collection of named fields of various types.
String: the storage and methods of handling collections of characters.
const Vector< Float > & x() const
Get the X-values.
Int truncateStart(Float v)
Truncate a start value to a pixel point.
void fillMask(Bool *mask, Int nx, Int ny, Int blcx, Int blcy, const Float *ptrX, const Float *ptrY, uInt nrline)
Fill the mask from the given points.
Int truncateEnd(Float v, Int maxEnd)
Truncate an end value to a pixel point.
const Vector< Float > & y() const
Get the Y-values.
Define a 2-dimensional region by a polygon.
Abstract base class to define a region of interest in lattice coordinates.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.