28 #ifndef LATTICES_LCELLIPSOID_H 29 #define LATTICES_LCELLIPSOID_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/lattices/LRegions/LCRegionFixed.h> 34 #include <casacore/casa/Arrays/Vector.h> A Vector of integers, for indexing into Array<T> objects.
Vector< Float > itsCenter
Slicer makeBox(const Vector< Float > &radii, const IPosition &latticeShape)
Make the bounding box from center, radii, and shape.
void defineMask()
Define the mask to indicate which elements are inside the ellipsoid.
virtual String type() const
Get the region type.
Abstract base class to define a fixed region.
virtual LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Construct another LCBox (for e.g.
Define an N-dimensional ellipsoidal region of interest.
void _doOutside()
set the mask in the case the center lies outside the lattice
Float _theta
for 2-D case only
const IPosition & latticeShape() const
Give the full lattice shape.
virtual Bool operator==(const LCRegion &other) const
Comparison.
bool Bool
Define the standard types used by Casacore.
Vector< Float > _epsilon
small offset to guard against roundoff error
A hierarchical collection of named fields of various types.
LCEllipsoid & operator=(const LCEllipsoid &other)
Assignment (copy semantics).
Specify which elements to extract from an n-dimensional array.
const Float & theta() const
Get the angle of the major axis of the ellipse relative to the x-axis 2-D only, throws exception if e...
void _defineMask2D()
for 2-D ellipse with non-zero theta.
const Vector< Float > & radii() const
Get the radii.
Bool _centerIsInside
is center inside the lattice?
static LCEllipsoid * fromRecord(const TableRecord &, const String &tableName)
Convert correct object from a record.
void fillCenter(const IPosition ¢er)
Fill the itsCenter vector from an IPosition.
String: the storage and methods of handling collections of characters.
virtual LCRegion * cloneRegion() const
Make a copy of the derived object.
virtual TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
const Vector< Float > & center() const
Get the center.
this file contains all the compiler specific defines
static String className()
Get the class name (to store in the record).
Abstract base class to define a region of interest in lattice coordinates.