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));
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
Vector< Bool > itsFracTrc
void fillFromDouble(const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc)
Fill the vectors from the values given as doubles.
Vector< Int > itsAbsRelBlc
Slicer toSlicer(const Vector< Float > &referencePixel, const IPosition &newLatticeShape) const
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).
LCSlicer(const IPosition &blc, const IPosition &trc, RegionType::AbsRelType=RegionType::Abs)
Bool isUnspecified() const
LCSlicer(const LCSlicer &other)
Copy constructor (reference semantics).
static LCSlicer * fromRecord(const TableRecord &, const String &tablename)
Convert to correct object from a record.
Bool operator!=(const LCSlicer &other) const
Slicer toSlicer(const Vector< Double > &referencePixel, const IPosition &latticeShape) const
Bool isComplete() const
The region is completely specified if it is absolute, not fractional, and has no unspecified values.
Bool isFractional() const
String type() const
Get the region type.
void fillFlags(Bool fractional, Int absRel, uInt nrblc, uInt nrtrc, uInt nrinc)
Fill the pixel based flags from the general ones.
LCSlicer(const IPosition &blc, const IPosition &trc, const IPosition &inc, const Vector< Int > &absRelBlc, const Vector< Int > &absRelTrc)
LCSlicer(const Vector< Double > &blc, const Vector< Double > &trc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
LCSlicer(const Vector< Float > &blc, const Vector< Float > &trc, const Vector< Float > &inc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
uInt ndim() const
Get the dimensionality of the region.
TableRecord toRecord(const String &tableName) const
Convert the object to a record.
const String & comment() const
Get or set the comment.
void setComment(const String &comment)
Bool operator==(const LCSlicer &other) const
Test for equality.
const Vector< Float > & inc() const
LCSlicer(const IPosition &blc, const IPosition &trc, const IPosition &inc, RegionType::AbsRelType=RegionType::Abs)
static String className()
Get the class name (to store in the record).
Vector< Bool > itsFracBlc
const Vector< Float > & trc() const
Vector< Int > itsAbsRelTrc
LCSlicer & operator=(const LCSlicer &other)
Assignment (copy semantics).
Slicer toSlicer(const IPosition &referencePixel, const IPosition &latticeShape) const
Make the region complete using the given reference pixel and shape.
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)
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)
LCSlicer(const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc, Bool fractionalBlcTrc=False, RegionType::AbsRelType=RegionType::Abs)
const Vector< Float > & blc() const
Simple accessor functions.
Vector< Bool > itsFracInc
void fillFromIPosition(const IPosition &blc, const IPosition &trc, const IPosition &inc)
Fill the vectors from the values given as IPositions.
void fill()
Fill the remaining variables.
LCSlicer(const Slicer &slicer)
AbsRelType
Define if a region is absolute or relative.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.