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

#include <FeatherPlotWidget.qo.h>

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

Public Types

typedef FeatherDataType::DataType DataType
 
typedef FeatherCurveType::CurveType CurveType
 

Signals

void dishDiameterChanged (double newValue)
 
void rectangleZoomed (double minX, double maxX, double minY, double maxY)
 

Public Member Functions

 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...
 
virtual void setScatterCurves (const QString &, CurveType, const QList< CurveType > &)
 
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 ()
 
virtual void addZoomNeutralCurves ()=0
 
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

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
 
virtual void zoomRectangleOther (double minX, double maxX, double minY, double maxY)=0
 
virtual void zoom90Other (double dishPosition)=0
 
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 ()
 
virtual void resetColors ()
 

Protected Attributes

FeatherPlotplot
 
QwtPlot::Axis sliceAxis
 
QwtPlot::Axis weightAxis
 
QwtPlot::Axis scatterAxis
 
QMap< DataType, std::pair
< QVector< double >, QVector
< double > > > 
plotData
 
QMap< CurveType, CurveDisplaycurvePreferences
 

Private Types

enum  LeftMouseMode {
  RECTANGLE_ZOOM,
  DIAMETER_SELECTION
}
 
enum  ZoomState {
  ZOOM_NEUTRAL,
  ZOOM_90,
  ZOOM_RECTANGLE
}
 

Private Slots

void zoomRectangleSelected (const QwtDoubleRect &rect)
 
void diameterSelected (const QwtDoublePoint &pos)
 

Private Member Functions

void resetPlot (FeatherPlot::PlotType plotType)
 
void initializeZooming ()
 
void initializeDiameterMarker ()
 
void initializeDiameterSelector ()
 
void setZoomRectangleState (double minX, double maxX, double minY, double maxY)
 
void removeMarkers ()
 
void changeLeftMouseMode ()
 
QwtPlot::Axis getAxisYForData (DataType dType)
 
CurveType getCurveTypeForData (DataType dType)
 

Private Attributes

QString plotTitle
 
double dishPosition
 
const int MARKER_WIDTH
 
QwtPlotPicker * zoomer
 
QwtPlotMarker * diameterMarker
 
QwtPlotPicker * diameterSelector
 
LeftMouseMode leftMouseMode
 
ZoomState zoomState
 
double zoomMinX
 
double zoomMaxX
 
double zoomMinY
 
double zoomMaxY
 
Ui::FeatherPlotWidgetClass ui
 

Detailed Description

Definition at line 53 of file FeatherPlotWidget.qo.h.

Member Typedef Documentation

Definition at line 59 of file FeatherPlotWidget.qo.h.

Definition at line 58 of file FeatherPlotWidget.qo.h.

Member Enumeration Documentation

Enumerator
RECTANGLE_ZOOM 
DIAMETER_SELECTION 

Definition at line 162 of file FeatherPlotWidget.qo.h.

Enumerator
ZOOM_NEUTRAL 
ZOOM_90 
ZOOM_RECTANGLE 

Definition at line 164 of file FeatherPlotWidget.qo.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void casa::FeatherPlotWidget::addPlotCurve ( const QVector< double > &  xValues,
const QVector< double > &  yValues,
DataType  dType,
bool  sumCurve 
)
protected
void casa::FeatherPlotWidget::addPlotCurve ( const QVector< double > &  xValues,
const QVector< double > &  yValues,
QwtPlot::Axis  axis,
CurveType  curveType,
bool  sumCurve 
)
protected
virtual void casa::FeatherPlotWidget::addSumData ( )
virtual

Reimplemented in casa::FeatherPlotWidgetSlice.

virtual void casa::FeatherPlotWidget::addSumData ( bool  logAmplitude)
protectedvirtual

Reimplemented in casa::FeatherPlotWidgetSlice.

virtual void casa::FeatherPlotWidget::addZoomNeutralCurves ( )
pure virtual
void casa::FeatherPlotWidget::changeLeftMouseMode ( )
private
void casa::FeatherPlotWidget::changeZoom90 ( bool  zoom)

Zooming.

void casa::FeatherPlotWidget::clearData ( )
void casa::FeatherPlotWidget::clearLegend ( )
void casa::FeatherPlotWidget::clearPlot ( )
void casa::FeatherPlotWidget::diameterSelected ( const QwtDoublePoint &  pos)
privateslot
void casa::FeatherPlotWidget::dishDiameterChanged ( double  newValue)
signal
QwtPlot::Axis casa::FeatherPlotWidget::getAxisYForData ( DataType  dType)
private
CurveType casa::FeatherPlotWidget::getCurveTypeForData ( DataType  dType)
private
FeatherDataType::DataType casa::FeatherPlotWidget::getDataTypeForCurve ( CurveType  cType) const
protected
double casa::FeatherPlotWidget::getDishDiameter ( ) const
QWidget* casa::FeatherPlotWidget::getExternalAxisControl ( QwtPlot::Axis  position)
pair<double,double> casa::FeatherPlotWidget::getMaxMin ( QVector< double >  values,
FeatherCurveType::CurveType  curveType 
) const
protected
void casa::FeatherPlotWidget::initializeDiameterMarker ( )
private
void casa::FeatherPlotWidget::initializeDiameterSelector ( )
private
void casa::FeatherPlotWidget::initializeDomainLimitedData ( double  minValue,
double  maxValue,
QVector< double > &  xValues,
QVector< double > &  yValues,
const QVector< double > &  originalXValues,
const QVector< double > &  originalYValues 
) const
protected
void casa::FeatherPlotWidget::initializeMarkers ( )
protected
void casa::FeatherPlotWidget::initializeSumData ( QVector< double > &  sumX,
QVector< double > &  sumY,
bool  logScale 
)
protected
void casa::FeatherPlotWidget::initializeZooming ( )
private
void casa::FeatherPlotWidget::insertLegend ( QWidget *  parent)
bool casa::FeatherPlotWidget::isDiameterSelectorMode ( ) const
pair<QVector<double>,QVector<double> > casa::FeatherPlotWidget::limitX ( DataType  dType,
double  xCutOff 
)
protected
pair<QVector<double>,QVector<double> > casa::FeatherPlotWidget::limitX ( DataType  dType,
double  minValue,
double  maxValue 
)
protected
bool casa::FeatherPlotWidget::moveDiameterMarker ( const QPoint &  pos)

Dish diameter marker.

void casa::FeatherPlotWidget::rectangleZoomed ( double  minX,
double  maxX,
double  minY,
double  maxY 
)
signal
void casa::FeatherPlotWidget::refresh ( )
void casa::FeatherPlotWidget::removeMarkers ( )
private
virtual void casa::FeatherPlotWidget::resetColors ( )
protectedvirtual
void casa::FeatherPlotWidget::resetData ( DataType  dataType,
const casacore::Vector< float > &  xValues,
const casacore::Vector< float > &  yValues 
)
protected
void casa::FeatherPlotWidget::resetDishDiameterLineColor ( )
void casa::FeatherPlotWidget::resetPlot ( FeatherPlot::PlotType  plotType)
private
void casa::FeatherPlotWidget::resetZoomRectangleColor ( )
void casa::FeatherPlotWidget::resizeEvent ( QResizeEvent *  event)
protected
void casa::FeatherPlotWidget::setData ( const casacore::Vector< float > &  xValues,
const casacore::Vector< float > &  yValues,
DataType  dType 
)

Setting the data into the plots.

void casa::FeatherPlotWidget::setDiameterSelectorMode ( )
void casa::FeatherPlotWidget::setDishDiameter ( double  value = -1,
bool  scale = true 
)
void casa::FeatherPlotWidget::setDotSize ( int  size)
void casa::FeatherPlotWidget::setLegendVisibility ( bool  v)
void casa::FeatherPlotWidget::setLineThickness ( int  thickness)
void casa::FeatherPlotWidget::setLogScale ( bool  uvScale,
bool  logScale 
)
void casa::FeatherPlotWidget::setPlotColors ( const QMap< CurveType, CurveDisplay > &  colorMap)

Preferences.

void casa::FeatherPlotWidget::setRectangleZoomMode ( )

Left mouse mode.

virtual void casa::FeatherPlotWidget::setScatterCurves ( const QString &  ,
CurveType  ,
const QList< CurveType > &   
)
inlinevirtual

Reimplemented in casa::FeatherPlotWidgetScatter.

Definition at line 73 of file FeatherPlotWidget.qo.h.

void casa::FeatherPlotWidget::setZoomRectangleState ( double  minX,
double  maxX,
double  minY,
double  maxY 
)
private
virtual void casa::FeatherPlotWidget::zoom90Other ( double  dishPosition)
protectedpure virtual
void casa::FeatherPlotWidget::zoomNeutral ( )
void casa::FeatherPlotWidget::zoomRectangle ( double  minX,
double  maxX,
double  minY,
double  maxY 
)
virtual void casa::FeatherPlotWidget::zoomRectangleOther ( double  minX,
double  maxX,
double  minY,
double  maxY 
)
protectedpure virtual
void casa::FeatherPlotWidget::zoomRectangleSelected ( const QwtDoubleRect &  rect)
privateslot

Member Data Documentation

QMap<CurveType,CurveDisplay> casa::FeatherPlotWidget::curvePreferences
protected

Definition at line 135 of file FeatherPlotWidget.qo.h.

QwtPlotMarker* casa::FeatherPlotWidget::diameterMarker
private

Definition at line 158 of file FeatherPlotWidget.qo.h.

QwtPlotPicker* casa::FeatherPlotWidget::diameterSelector
private

Definition at line 159 of file FeatherPlotWidget.qo.h.

double casa::FeatherPlotWidget::dishPosition
private

Definition at line 155 of file FeatherPlotWidget.qo.h.

LeftMouseMode casa::FeatherPlotWidget::leftMouseMode
private

Definition at line 163 of file FeatherPlotWidget.qo.h.

const int casa::FeatherPlotWidget::MARKER_WIDTH
private

Definition at line 156 of file FeatherPlotWidget.qo.h.

FeatherPlot* casa::FeatherPlotWidget::plot
protected

Definition at line 130 of file FeatherPlotWidget.qo.h.

QMap<DataType, std::pair<QVector<double>,QVector<double> > > casa::FeatherPlotWidget::plotData
protected

Definition at line 134 of file FeatherPlotWidget.qo.h.

QString casa::FeatherPlotWidget::plotTitle
private

Definition at line 154 of file FeatherPlotWidget.qo.h.

QwtPlot::Axis casa::FeatherPlotWidget::scatterAxis
protected

Definition at line 133 of file FeatherPlotWidget.qo.h.

QwtPlot::Axis casa::FeatherPlotWidget::sliceAxis
protected

Definition at line 131 of file FeatherPlotWidget.qo.h.

Ui::FeatherPlotWidgetClass casa::FeatherPlotWidget::ui
private

Definition at line 170 of file FeatherPlotWidget.qo.h.

QwtPlot::Axis casa::FeatherPlotWidget::weightAxis
protected

Definition at line 132 of file FeatherPlotWidget.qo.h.

QwtPlotPicker* casa::FeatherPlotWidget::zoomer
private

Definition at line 157 of file FeatherPlotWidget.qo.h.

double casa::FeatherPlotWidget::zoomMaxX
private

Definition at line 167 of file FeatherPlotWidget.qo.h.

double casa::FeatherPlotWidget::zoomMaxY
private

Definition at line 169 of file FeatherPlotWidget.qo.h.

double casa::FeatherPlotWidget::zoomMinX
private

Definition at line 166 of file FeatherPlotWidget.qo.h.

double casa::FeatherPlotWidget::zoomMinY
private

Definition at line 168 of file FeatherPlotWidget.qo.h.

ZoomState casa::FeatherPlotWidget::zoomState
private

Definition at line 165 of file FeatherPlotWidget.qo.h.


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