26#ifndef LATTICES_LCBOX_H
27#define LATTICES_LCBOX_H
30#include <casacore/casa/aips.h>
31#include <casacore/lattices/LRegions/LCRegionFixed.h>
32#include <casacore/casa/Arrays/Slicer.h>
33#include <casacore/casa/Arrays/Vector.h>
126 const IPosition& newLatticeShape)
const override;
LCBox & operator=(const LCBox &other)
Assignment (copy semantics).
LCRegion * cloneRegion() const override
Make a copy of the derived object.
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.
LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const override
Construct another LCBox (for e.g.
LCBox(const LCBox &other)
Copy constructor (reference semantics).
static LCBox * fromRecord(const TableRecord &, const String &tablename)
Convert correct object from a record.
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.
Vector< Float > trc() const
Get the box trc.
Bool equals(const LCRegion &other) const override
Comparison.
void setSlicerBox(const IPosition &blc, const IPosition &trc)
Make a box from the blc,trc such that it does not exceed the lattice boundaries.
String type() const override
Get the region type.
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).
TableRecord toRecord(const String &tableName) const override
Convert the (derived) object to a record.
const IPosition & latticeShape() const
Give the full lattice shape.
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
IPosition shape(const RecordFieldId &) const
Get the actual shape of this field.
bool Bool
Define the standard types used by Casacore.