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