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