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.
LCSlicer(const Vector< Float > &blc, const Vector< Float > &trc, const Vector< Float > &inc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
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.
LCSlicer(const Vector< Double > &blc, const Vector< Double > &trc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
Slicer toSlicer(const Vector< Double > &referencePixel, const IPosition &latticeShape) const
Vector< Int > itsAbsRelBlc
String type() const
Get the region type.
Bool isUnspecified() const
LCSlicer(const Slicer &slicer)
AbsRelType
Define if a region is absolute or relative.
LCSlicer(const IPosition &blc, const IPosition &trc, const IPosition &inc, RegionType::AbsRelType=RegionType::Abs)
static LCSlicer * fromRecord(const TableRecord &, const String &tablename)
Convert to correct object from a record.
LCSlicer(const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
LCSlicer & operator=(const LCSlicer &other)
Assignment (copy semantics).
Vector< Bool > itsFracBlc
TableRecord toRecord(const String &tableName) const
Convert the object to a record.
LCSlicer(const Vector< Float > &blc, const Vector< Float > &trc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
Construct a slicer from the blc, trc, and stride (default 1).
void setComment(const String &comment)
LCSlicer(const IPosition &blc, const IPosition &trc, const IPosition &inc, const Vector< Int > &absRelBlc, const Vector< Int > &absRelTrc)
LCSlicer(const IPosition &blc, const IPosition &trc, RegionType::AbsRelType=RegionType::Abs)
this file contains all the compiler specific defines
Bool operator==(const LCSlicer &other) const
Test for equality.
Slicer toSlicer(const Vector< Float > &referencePixel, const IPosition &newLatticeShape) const
uInt ndim() const
Get the dimensionality of the region.
Vector< Bool > itsFracInc
Bool isFractional() const
LCSlicer(const Vector< Float > &blc, const Vector< Float > &trc, const Vector< Float > &inc, const Vector< Bool > &fractionalBlc, const Vector< Bool > &fractionalTrc, const Vector< Bool > &fractionalInc, const Vector< Int > &absRelBlc, const Vector< Int > &absRelTrc)
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.
LCSlicer(const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc, const Vector< Bool > &fractionalBlc, const Vector< Bool > &fractionalTrc, const Vector< Bool > &fractionalInc, const Vector< Int > &absRelBlc, const Vector< Int > &absRelTrc)
Vector< Int > itsAbsRelTrc
LCSlicer(const LCSlicer &other)
Copy constructor (reference semantics).
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.