28 #ifndef TRIALDISPLAY_PROFILE2DDD_H
29 #define TRIALDISPLAY_PROFILE2DDD_H
47 template <
class T>
class LatticePADisplayData;
48 template <
class T>
class DParameterRange;
52 class DParameterColorChoice;
53 class DParameterMapKeyChoice;
54 class DParameterSwitch;
virtual casacore::Double profileXMin() const
Return Minimum X value.
casacore::Int itsDependentAxis
The dependent (world) axis of itsDD.
Implementation of DParameterChoice to store color selection parameters.
virtual casacore::Bool isRegionProfile() const
Return true if the last requested profile was for a region.
virtual casacore::Bool showRestFrequency() const
Return the rest frequency display status (to draw or not to draw)
casacore::Vector< casacore::Double > itsRegionTrc
casacore::Bool getRegionProfile(casacore::Vector< casacore::Double > &fpixelBlc, casacore::Vector< casacore::Double > &fpixelTrc)
Extract the profile data from the provided pixel region and place it into itsData.
Class providing active behaviour for 2d CachingDisplayDatas.
Assistance class for auto-caching of DisplayData objects.
LatticePADisplayData< casacore::Float > * itsDD
A pointer to the attached DisplayData.
DParameterRange< casacore::Float > * itsParamLineWidth
Class which stores WorldCanvas refresh event information.
casacore::Bool getPointProfile(const casacore::Vector< casacore::Double > &world)
Extract the profile data from the provided world position and place it into itsData.
casacore::Bool cropRegion(casacore::Vector< casacore::Double > &fpixelBlc, casacore::Vector< casacore::Double > &fpixelTrc)
Crop the region so that it does not define areas outside the data.
Profile2dDD()
(Required) default constructor.
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
virtual void operator()(const WCMotionEvent &ev)
Motion Event Handler.
virtual casacore::Bool attachDD(LatticePADisplayData< casacore::Float > *dd)
Attach a Display casacore::Data to this Profile2dDD.
virtual casacore::Bool profileAutoscale() const
Return the autoscale status (On or Off)
casacore::Bool itsIsRegionProfile
Flag to indicate whether the last drawn profile was for a region or for a single point.
DisplayDataType
WorldCanvasHolder - what type of DisplayData is this, need to know for drawing order.
Buffer for storing Attributes.
casacore::Bool itsTrackingState
A flag to indicate whether tracking is on.
Base class for handling WorldCanvas motion events.
casacore::Vector< casacore::String > itsRegionCalcChoices
The choices for region calculations.
virtual void detachDD()
Detach the currently attached Display Data.
DParameterColorChoice * itsParamColor
Display Parameters for.
casacore::Vector< casacore::Double > itsPixelPosition
The pixel position on the world canvas when the last motion' event was received. ...
A DisplayData to draw Profiles.
virtual casacore::Double restFrequency() const
Return rest frequency.
virtual casacore::Bool sizeControl(WorldCanvasHolder &wcHolder, AttributeBuffer &holderBuf)
Overloading ActiveCaching2dDD::sizeControl.
casacore::Vector< casacore::Double > itsCurrentTrc
virtual AttributeBuffer optionsAsAttributes()
Return the current options of this DisplayData as an AttributeBuffer.
DParameterSwitch * itsParamShowRestFrequency
DParameterSwitch * itsParamAutoscale
casacore::Double itsRestFrequency
Rest Frequency.
casacore::Bool createCoordinateSystem()
Helper function.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
virtual ~Profile2dDD()
Destructor.
casacore::Bool value() const
Return the current value of this parameter.
DParameterRange< casacore::Int > * itsParamRegionYRadius
virtual CachingDisplayMethod * newDisplayMethod(WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd)
Create a new CachingDisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers are ...
Class which stores WorldCanvas motion event information.
Base class for auto-caching DisplayData objects.
DParameterMapKeyChoice * itsParamRegionStatType
Class describing the most basic event information in the display classes.
virtual casacore::String showValue(const casacore::Vector< casacore::Double > &world)
Returns an empty string.
virtual void sendDDModEvent()
Send out DDModEvents to all DisplayEHs listening.
Class which provides non-linear axis labelling using a DisplayCoordinateSystem.
WCCSNLAxisLabeller itsAxisLabeller
The Axis Labeller used to draw Axes.
casacore::Vector< casacore::Double > itsWorldPosition
The world position on the world canvas when the last motion' event was received.
virtual casacore::Bool labelAxes(const WCRefreshEvent &ev)
Draws and labels the axes based on the refresh event.
virtual void regionDimensions(casacore::Vector< casacore::Double > ®ionBlc, casacore::Vector< casacore::Double > ®ionTrc)
get the region dimensions, in pixels, of the last region submitted to Profile2dDD.
virtual casacore::Float profileLineWidth() const
Return Profile Line Width.
casacore::Double itsYAxisInc
Increment value for the linear coordinate on the Y axis.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
StatisticsTypes
This enum StatisticTypes is provided for use with the LatticeStatistics<T>::setPlotting function...
virtual void setDefaultOptions()
Install the default options for this DisplayData.
virtual casacore::Int regionYRadius() const
Return the y value added to the pixel at a pixel position to create a region.
virtual casacore::Double profileYMin() const
Return Minimum Y value.
virtual void getMaskData(casacore::Vector< casacore::Bool > &mask)
Store the mask in mask vector.
virtual casacore::LatticeStatsBase::StatisticsTypes regionStatType() const
Return the statistics used for region calculations.
casacore::Vector< casacore::Bool > itsMask
The Mask Data.
Implementation of DParameterChoice to store parameter and associated key.
casacore::Int keyValue()
Return the current value of this parameter.
virtual Display::LineStyle profileLineStyle()
Return Profile LineStyle.
virtual Display::DisplayDataType classType()
Return the type of this DisplayData.
virtual casacore::String profileColor() const
Return Profile Color.
T value()
Return the current value of this parameter.
A DisplayMethod to draw Profiles.
Class which stores WorldCanvas position event information.
virtual casacore::Int regionXRadius() const
Return the x value added to the pixel at a pixel position to create a region.
A holder to interface between DisplayDatas and a WorldCanvas.
Implementation of drawing in world coordinates on top of a PixelCanvas.
virtual void notifyUnregister(WorldCanvasHolder &wcHolder, casacore::Bool ignoreRefresh=false)
Take actions on removal from WC[H] (notably, deletion of drawlists).
virtual casacore::Int profileAxis()
Return the profile axis number (from the original image)
virtual const casacore::Unit dataUnit()
Return the data unit.
DParameterRange< casacore::Int > * itsParamRegionXRadius
casacore::Vector data - can go next
virtual casacore::Record getOptions(bool scrub=false) const
Retrieve the current and default options and parameter types.
casacore::String value()
Return the current value of this parameter.
String: the storage and methods of handling collections of characters.
virtual casacore::Double profileYMax() const
Return Maximum Y value.
casacore::Vector< casacore::Double > itsRegionBlc
The region dimensions, in pixels, of the last region event received by Profile2dDD.
virtual void getDrawData(casacore::Matrix< casacore::Double > &data, const casacore::Bool world=false)
Store the data to be drawn in the data Matrix.
virtual casacore::Bool canLabelAxes() const
casacore::Vector< casacore::Double > itsCurrentBlc
Minimum and maximum X/Y values.
Base class for handling WorldCanvas position events.
casacore::Vector< casacore::Int > itsWorldAxisMap
The axis map between input DD's casacore::Coordinate system and itsCompleteCS.
casacore::Vector< casacore::String > itsDefaultAxisLabels
The default x and y axis labels.
virtual casacore::Double profileXMax() const
Return Maximum X value.
virtual void constructParameters()
Construct the parameters for getOptions and setOptions.
casacore::Matrix< casacore::Double > itsData
The Profile Data.
Implementation of DisplayParameter to store choice parameters.
casacore::Bool updateCoordinateSys(DisplayCoordinateSystem &cs)
Update the coordinate system of this Display casacore::Data and the axis labeller.
virtual void handleEvent(DisplayEvent &ev)
Display Event Handler.
DParameterMapKeyChoice * itsParamLineStyle
virtual casacore::Bool setOptions(casacore::Record &rec, casacore::Record &recOut)
Apply options stored in rec to the DisplayData.
void operator=(const Profile2dDD &other)
(Required) copy assignment.
casacore::Vector< casacore::Int > itsPixelAxisMap
LineStyle
Style of line to use.
virtual void destructParameters()
Delete the parameters for getOptions() and setOptions()
virtual void getProfileAsRecord(casacore::Record &rec)
Store the details of the current profile in rec casacore::Record structure similar to position event ...