28 #ifndef LATTICES_LCSLICER_H
29 #define LATTICES_LCSLICER_H
248 return (!
operator==(other));
A Vector of integers, for indexing into Array<T> objects.
void setComment(const String &comment)
const String & comment() const
Get or set the comment.
const Vector< Float > & trc() const
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
Vector< Bool > itsFracTrc
Vector< Bool > itsFracInc
uInt ndim() const
Get the dimensionality of the region.
Bool isUnspecified() const
static LCSlicer * fromRecord(const TableRecord &, const String &tablename)
Convert to correct object from a record.
AbsRelType
Define if a region is absolute or relative.
Vector< Int > itsAbsRelBlc
void fillFlags(Bool fractional, Int absRel, uInt nrblc, uInt nrtrc, uInt nrinc)
Fill the pixel based flags from the general ones.
Bool isFractional() const
static String className()
Get the class name (to store in the record).
const Vector< Float > & inc() const
bool Bool
Define the standard types used by Casacore.
void fill()
Fill the remaining variables.
Bool operator!=(const LCSlicer &other) const
A hierarchical collection of named fields of various types.
const Vector< Float > & blc() const
Simple accessor functions.
Class to define a rectangular box of interest with strides.
Specify which elements to extract from an n-dimensional array.
Slicer toSlicer(const IPosition &referencePixel, const IPosition &latticeShape) const
Make the region complete using the given reference pixel and shape.
void fillFromDouble(const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc)
Fill the vectors from the values given as doubles.
TableRecord toRecord(const String &tableName) const
Convert the object to a record.
Bool operator==(const LCSlicer &other) const
Test for equality.
String: the storage and methods of handling collections of characters.
void fillFromIPosition(const IPosition &blc, const IPosition &trc, const IPosition &inc)
Fill the vectors from the values given as IPositions.
String type() const
Get the region type.
Vector< Int > itsAbsRelTrc
LCSlicer & operator=(const LCSlicer &other)
Assignment (copy semantics).
Bool isComplete() const
The region is completely specified if it is absolute, not fractional, and has no unspecified values...
Vector< Bool > itsFracBlc