28 #ifndef LATTICES_LATTICESLICE1D_H
29 #define LATTICES_LATTICESLICE1D_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Vector.h>
35 #include <casacore/casa/iosstrfwd.h>
41 template <
class T>
class MaskedLattice;
167 #ifndef CASACORE_NO_AUTO_TEMPLATES
168 #include <casacore/lattices/LatticeMath/LatticeSlice1D.tcc>
LatticeSlice1D(const MaskedLattice< T > &lattice, Method method=LINEAR)
Constructor
LatticeSlice1D()
Default constructor - object useless.
void checkCurve(IPosition &blc, IPosition &trc, const IPosition &coord, const PixelCurve1D &curve)
Check the suppliec curve is valid.
void getSlice(Vector< T > &data, Vector< Bool > &mask, const PixelCurve1D &curve, uInt axis0, uInt axis1, const IPosition &coord)
Get 1-D slice.
virtual ~LatticeSlice1D()
Destructor.
void getSlice(Vector< T > &data, Vector< Bool > &mask, const IPosition &blc, const IPosition &trc, uInt nPts=0)
Get 1-D slice between blc & trc.
Method
Interpolation method.
LatticeSlice1D(const LatticeSlice1D< T > &other)
Copy constructor (reference semantics)
LatticeSlice1D< T > & operator=(const LatticeSlice1D< T > &other)
Assignment operator (reference semantics)
Interpolate2D * itsInterpPtr
void getPosition(uInt &axis0, uInt &axis1, Vector< Float > &x, Vector< Float > &y, Vector< Float > &distance) const
Get the (x,y) pixel coordinates from the last slice and the distance along the slice in pixels.
Method interpolationMethod() const
Recover interpolation method.
MaskedLattice< T > * itsLatticePtr
void doGetSlice(Vector< T > &data, Vector< Bool > &mask, const PixelCurve1D &curve, const IPosition &blc, const IPosition &trc)
Get the interpolated slice.
static Method stringToMethod(const String &method)
void findPlane(const IPosition &blc, const IPosition &trc)
Find the slice plane.
void makeInterpolator(Method method)
Make Interpolator.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.