28 #ifndef LATTICES_LCBOX_H
29 #define LATTICES_LCBOX_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/lattices/LRegions/LCRegionFixed.h>
34 #include <casacore/casa/Arrays/Slicer.h>
35 #include <casacore/casa/Arrays/Vector.h>
virtual String type() const
Get the region type.
LCBox(const Vector< Float > &blc, const Vector< Float > &trc, const IPosition &latticeShape)
Construct from the Vector's defining the bottom-left and top-right corner of the box.
LCBox(const Slicer &box, const IPosition &latticeShape)
Construct from the Slicer defining the box.
LCBox(const IPosition &blc, const IPosition &trc, const IPosition &latticeShape)
Construct from the IPosition's defining the bottom-left and top-right corner of the box.
LCBox(const LCBox &other)
Copy constructor (reference semantics).
virtual LCRegion * cloneRegion() const
Make a copy of the derived object.
LCBox(const Vector< Double > &blc, const Vector< Double > &trc, const IPosition &latticeShape)
static Bool verify(IPosition &blc, IPosition &trc, IPosition &inc, const IPosition &shape)
Verify a box specification.
LCBox(const IPosition &latticeShape)
Construct a box for the full lattice shape.
virtual Bool operator==(const LCRegion &other) const
Comparison.
virtual TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
Vector< Float > trc() const
Get the box trc.
static LCBox * fromRecord(const TableRecord &, const String &tablename)
Convert correct object from a record.
void setSlicerBox(const IPosition &blc, const IPosition &trc)
Make a box from the blc,trc such that it does not exceed the lattice boundaries.
virtual LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Construct another LCBox (for e.g.
void fillBlcTrc()
Fill the blc and trc vector from IPositions.
Vector< Float > blc() const
Get the box blc.
static String className()
Get the class name (to store in the record).
LCBox & operator=(const LCBox &other)
Assignment (copy semantics).
const IPosition & latticeShape() const
Give the full lattice shape.
virtual IPosition shape() const
Return the shape of the region (i.e.
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.