casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
casa::FeatherPlotWidgetScatter Class Reference

A specialization of FeatherPlotWidget for scatter plots. More...

#include <FeatherPlotWidgetScatter.h>

Inheritance diagram for casa::FeatherPlotWidgetScatter:
casa::FeatherPlotWidget

Public Member Functions

 FeatherPlotWidgetScatter (const QString &title, FeatherPlot::PlotType plotType, QWidget *parent=0)
 
virtual void setScatterCurves (const QString &title, CurveType xScatter, const QList< CurveType > &yScatters)
 
virtual ~FeatherPlotWidgetScatter ()
 
- Public Member Functions inherited from casa::FeatherPlotWidget
 FeatherPlotWidget (const QString &title, FeatherPlot::PlotType plotType, QWidget *parent=0)
 
void setData (const casacore::Vector< float > &xValues, const casacore::Vector< float > &yValues, DataType dType)
 Setting the data into the plots. More...
 
virtual void addSumData ()
 
void clearPlot ()
 
void clearData ()
 
void clearLegend ()
 
void setPlotColors (const QMap< CurveType, CurveDisplay > &colorMap)
 Preferences. More...
 
void setLineThickness (int thickness)
 
void setLegendVisibility (bool v)
 
void setDotSize (int size)
 
void setLogScale (bool uvScale, bool logScale)
 
void refresh ()
 
void changeZoom90 (bool zoom)
 Zooming. More...
 
void zoomRectangle (double minX, double maxX, double minY, double maxY)
 
void zoomNeutral ()
 
void resetZoomRectangleColor ()
 
QWidget * getExternalAxisControl (QwtPlot::Axis position)
 
void insertLegend (QWidget *parent)
 
 ~FeatherPlotWidget ()
 
bool moveDiameterMarker (const QPoint &pos)
 Dish diameter marker. More...
 
double getDishDiameter () const
 
bool isDiameterSelectorMode () const
 
void setDishDiameter (double value=-1, bool scale=true)
 
void resetDishDiameterLineColor ()
 
void setRectangleZoomMode ()
 Left mouse mode. More...
 
void setDiameterSelectorMode ()
 

Protected Member Functions

virtual void resetColors ()
 
virtual void addZoomNeutralCurves ()
 
virtual void zoomRectangleOther (double minX, double maxX, double minY, double maxY)
 
virtual void zoom90Other (double dishPosition)
 
- Protected Member Functions inherited from casa::FeatherPlotWidget
FeatherDataType::DataType getDataTypeForCurve (CurveType cType) const
 
void resizeEvent (QResizeEvent *event)
 
void resetData (DataType dataType, const casacore::Vector< float > &xValues, const casacore::Vector< float > &yValues)
 
virtual void addSumData (bool logAmplitude)
 
pair< double, double > getMaxMin (QVector< double > values, FeatherCurveType::CurveType curveType) const
 
void addPlotCurve (const QVector< double > &xValues, const QVector< double > &yValues, DataType dType, bool sumCurve)
 
void addPlotCurve (const QVector< double > &xValues, const QVector< double > &yValues, QwtPlot::Axis axis, CurveType curveType, bool sumCurve)
 
pair< QVector< double >
, QVector< double > > 
limitX (DataType dType, double xCutOff)
 
pair< QVector< double >
, QVector< double > > 
limitX (DataType dType, double minValue, double maxValue)
 
void initializeDomainLimitedData (double minValue, double maxValue, QVector< double > &xValues, QVector< double > &yValues, const QVector< double > &originalXValues, const QVector< double > &originalYValues) const
 
void initializeSumData (QVector< double > &sumX, QVector< double > &sumY, bool logScale)
 
void initializeMarkers ()
 

Private Member Functions

bool isOverlap (double minX, double maxX, double minY, double maxY) const
 
QVector< double > populateVector (FeatherCurveType::CurveType curveType)
 
void addScatterCurve (const QVector< double > &xVals, const QVector< double > &yVals, double dataLimit, FeatherCurveType::CurveType curveType, bool sumCurve)
 
QVector< double > scaleValues (const QVector< double > &values) const
 
QVector< double > unscaleValues (const QVector< double > &values) const
 
pair< QVector< double >
, QVector< double > > 
restrictData (const QVector< double > &sourceX, const QVector< double > &sourceY, double valueMinX, double valueMaxX)
 
pair< QVector< double >
, QVector< double > > 
restrictData (const QVector< double > &sourceX, const QVector< double > &sourceY, double valueMinX, double valueMaxX, double valueMinY, double valueMaxY)
 

Private Attributes

CurveType xScatter
 
QList< CurveTypeyScatters
 

Additional Inherited Members

- Public Types inherited from casa::FeatherPlotWidget
typedef FeatherDataType::DataType DataType
 
typedef FeatherCurveType::CurveType CurveType
 
- Signals inherited from casa::FeatherPlotWidget
void dishDiameterChanged (double newValue)
 
void rectangleZoomed (double minX, double maxX, double minY, double maxY)
 
- Protected Attributes inherited from casa::FeatherPlotWidget
FeatherPlotplot
 
QwtPlot::Axis sliceAxis
 
QwtPlot::Axis weightAxis
 
QwtPlot::Axis scatterAxis
 
QMap< DataType, std::pair
< QVector< double >, QVector
< double > > > 
plotData
 
QMap< CurveType, CurveDisplaycurvePreferences
 

Detailed Description

A specialization of FeatherPlotWidget for scatter plots.

Definition at line 37 of file FeatherPlotWidgetScatter.h.

Constructor & Destructor Documentation

casa::FeatherPlotWidgetScatter::FeatherPlotWidgetScatter ( const QString &  title,
FeatherPlot::PlotType  plotType,
QWidget *  parent = 0 
)
virtual casa::FeatherPlotWidgetScatter::~FeatherPlotWidgetScatter ( )
virtual

Member Function Documentation

void casa::FeatherPlotWidgetScatter::addScatterCurve ( const QVector< double > &  xVals,
const QVector< double > &  yVals,
double  dataLimit,
FeatherCurveType::CurveType  curveType,
bool  sumCurve 
)
private
virtual void casa::FeatherPlotWidgetScatter::addZoomNeutralCurves ( )
protectedvirtual
bool casa::FeatherPlotWidgetScatter::isOverlap ( double  minX,
double  maxX,
double  minY,
double  maxY 
) const
private
QVector<double> casa::FeatherPlotWidgetScatter::populateVector ( FeatherCurveType::CurveType  curveType)
private
virtual void casa::FeatherPlotWidgetScatter::resetColors ( )
protectedvirtual

Reimplemented from casa::FeatherPlotWidget.

pair<QVector<double>, QVector<double> > casa::FeatherPlotWidgetScatter::restrictData ( const QVector< double > &  sourceX,
const QVector< double > &  sourceY,
double  valueMinX,
double  valueMaxX 
)
private
pair<QVector<double>, QVector<double> > casa::FeatherPlotWidgetScatter::restrictData ( const QVector< double > &  sourceX,
const QVector< double > &  sourceY,
double  valueMinX,
double  valueMaxX,
double  valueMinY,
double  valueMaxY 
)
private
QVector<double> casa::FeatherPlotWidgetScatter::scaleValues ( const QVector< double > &  values) const
private
virtual void casa::FeatherPlotWidgetScatter::setScatterCurves ( const QString &  title,
CurveType  xScatter,
const QList< CurveType > &  yScatters 
)
virtual

Reimplemented from casa::FeatherPlotWidget.

QVector<double> casa::FeatherPlotWidgetScatter::unscaleValues ( const QVector< double > &  values) const
private
virtual void casa::FeatherPlotWidgetScatter::zoom90Other ( double  dishPosition)
protectedvirtual
virtual void casa::FeatherPlotWidgetScatter::zoomRectangleOther ( double  minX,
double  maxX,
double  minY,
double  maxY 
)
protectedvirtual

Member Data Documentation

CurveType casa::FeatherPlotWidgetScatter::xScatter
private

Definition at line 49 of file FeatherPlotWidgetScatter.h.

QList<CurveType> casa::FeatherPlotWidgetScatter::yScatters
private

Definition at line 50 of file FeatherPlotWidgetScatter.h.


The documentation for this class was generated from the following file: