28 #ifndef LATTICES_LCELLIPSOID_H
29 #define LATTICES_LCELLIPSOID_H
A Vector of integers, for indexing into Array<T> objects.
Vector< Float > itsCenter
virtual String type() const
Get the region type.
Slicer makeBox(const Vector< Float > &radii, const IPosition &latticeShape)
Make the bounding box from center, radii, and shape.
const Vector< Float > & center() const
Get the center.
virtual LCRegion * cloneRegion() const
Make a copy of the derived object.
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...
virtual TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
void defineMask()
Define the mask to indicate which elements are inside the ellipsoid.
const Vector< Float > & radii() const
Get the radii.
virtual Bool operator==(const LCRegion &other) const
Comparison.
Abstract base class to define a fixed region.
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.
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.
void _defineMask2D()
for 2-D ellipse with non-zero theta.
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 * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Construct another LCBox (for e.g.
static String className()
Get the class name (to store in the record).
Abstract base class to define a region of interest in lattice coordinates.