28 #ifndef TRIALDISPLAY_LATTICEPADD_H
29 #define TRIALDISPLAY_LATTICEPADD_H
44 template <
class T>
class Array;
45 template <
class T>
class Lattice;
46 template <
class T>
class MaskedLattice;
52 class WCResampleHandler;
64 template <
class T>
class LatticePADisplayData :
public PrincipalAxesDD {
103 std::shared_ptr<casacore::ImageInterface<casacore::Float> >
imageinterface( );
235 std::vector<std::vector<double> >
beams_;
269 const DisplayCoordinateSystem& cSysIn)
const;
278 #ifndef AIPS_NO_TEMPLATE_SRC
279 #include <display/DisplayDatas/LatticePADD.tcc>
281 #endif //# AIPS_NO_TEMPLATE_SRC
A Vector of integers, for indexing into Array<T> objects.
virtual Display::ComplexToRealMethod complexMode()
casacore::ImageRegion * itsRegionPtr
Is itsLattice a casacore::SubImage?
virtual casacore::Bool insertFloat(casacore::Record &toGoInto, casacore::Float toInsert, const casacore::String fieldname)
virtual casacore::Bool insertArray(casacore::Record &toGoInto, casacore::Vector< casacore::Float > toInsert, const casacore::String fieldname)
Insert an array into a Record.
casacore::Bool updateHistogram(casacore::Record &rec, casacore::MaskedLattice< casacore::Complex > &pImage)
Update the histogram, and attach it to the supplied record.
casacore::WCLELMask * itsMaskPtr
OTF mask.
virtual casacore::String getBrightnessUnits() const
Return the brightness unit as a string.
DParameterChoice * beamColor_
virtual T dataValue(casacore::IPosition pos)
virtual casacore::String showValue(const casacore::Vector< casacore::Double > &world)
casacore::Format a string containing value information at the given world coordinate ...
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
WCResampleHandler * itsResampleHandler
pointer to resampler
virtual casacore::String className() const
Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future u...
virtual casacore::Record getOptions(bool scrub=false) const
retrieve the current and default options and parameter types.
casacore::String itsResample
storage for the display parameters
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
casacore::Bool transferPreferences(DisplayCoordinateSystem &cSysInOut, const DisplayCoordinateSystem &cSysIn) const
Transfer preferences between CoordinateSystems.
virtual void getMinAndMax()
A templated, abstract base class for array-like objects with masks.
casacore::String majorunit_
ComplexToRealMethod
WorldCanvas - what to do with complex data if it is presented to WorldCanvas::drawImage() ...
std::shared_ptr< casacore::MaskedLattice< T > > itsMaskedLatticePtr
The masked lattice, effectively referencing one of itsBaseImagePtr or itsBaseArray, or some sub-region of said.
casacore::String description() const
virtual void setComplexMode(Display::ComplexToRealMethod method)
void delTmpImage()
Delete temporary image data.
casacore::String itsComplexMode
virtual void drawBeamEllipse_(WorldCanvas *wc)
Will draw the beam ellipse if applicable (i.e., the LatticePADD has an image with beam data...
casacore::ImageRegion * makeRegion(const casacore::RecordInterface ®ion)
casacore::WCLELMask * makeMask(const casacore::RecordInterface &mask)
casacore::String dataType() const
Pure virtual function from DisplayData...
virtual const casacore::Unit dataUnit() const
std::shared_ptr< casacore::ImageInterface< T > > itsBaseImagePtr
The base image cloned at construction.
casacore::Bool isRegionDifferent(casacore::ImageRegion *&pRegion)
DParameterRange< casacore::Float > * beamXCenter_
casacore::Array< T > * itsBaseArrayPtr
The base array cloned at construction.
virtual casacore::Bool maskValue(const casacore::IPosition &pos)
return mask value at given position
A base class for astronomical images.
casacore::Unit itsDataUnit
The data unit.
std::vector< std::vector< double > > beams_
Class to define a mask as a LEL expression.
Compute and display various statistics from a lattice.
virtual casacore::uInt dataDim() const
virtual WCResampleHandler * resampleHandler()
virtual void SetUpBeamData_()
Called by constructors: set up data for beam drawing, if applicable.
casacore::String minorunit_
casacore::LatticeStatistics< casacore::Float > * itsLatticeStatisticsPtr
Object to use for calculating statistics.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Bool itsDeleteMLPointer
Says whether the destructor should delete itsMaskedLattice or not.
virtual void setupElements()=0
left as pure virtual for implementation in concrete class
DParameterChoice * beamOnOff_
virtual void setDefaultOptions()
install the default options for this DisplayData
Display::ComplexToRealMethod itsComplexToRealMethod
the complex to real method
DParameterRange< casacore::Float > * beamYCenter_
void updateLatticeStatistics()
update itsLatticeStatistics
Implementation of DisplayParameter to store choice parameters.
casacore::Bool isMaskDifferent(casacore::WCLELMask *&pMask)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
virtual const casacore::IPosition dataShape() const
required functions to help inherited "setup" amongst other things
template <class T, class U> class vector;
LatticePADisplayData(casacore::Array< T > *array, const casacore::uInt xAxis, const casacore::uInt yAxis, const casacore::uInt mAxis, const casacore::IPosition fixedPos)
Constructors (no default) LatticePADisplayData();
casacore::Record imageHistogram
The image histogram.
Base class for resampling data pixels to World/PixelCanvas pixels.
Class to hold a region of interest in an image.
virtual ~LatticePADisplayData()
Destructor.
std::shared_ptr< casacore::ImageInterface< casacore::Float > > imageinterface()
Returns a pointer that should not be deleted...
DParameterRange< casacore::Int > * beamLineWidth_
Implementation of drawing in world coordinates on top of a PixelCanvas.
String: the storage and methods of handling collections of characters.
virtual casacore::Bool setOptions(casacore::Record &rec, casacore::Record &recOut)
apply options stored in val to the DisplayData; return value true means a refresh is needed...
DParameterChoice * beamStyle_
Abstract base class for Record classes.
static casacore::Bool useStriding(const casacore::IPosition &shape, casacore::IPosition &stride, casacore::uInt maxPixels=1000000u, casacore::uInt minPerAxis=20u)
Aids updateHistogram() by computing a stride to use for efficiency when computing histograms (could b...
casacore::Bool calcHist
Whether to always calculate the histogram or not.
virtual std::shared_ptr< casacore::MaskedLattice< T > > maskedLattice()
virtual casacore::Record getHist() const
Return the last calculated histogram.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.