25 #ifndef FEATHERPLOTWIDGET_QO_H
26 #define FEATHERPLOTWIDGET_QO_H
30 #include <guitools/Feather/FeatherPlotWidget.ui.h>
38 #include <qwt_legend.h>
40 #if QWT_VERSION < 0x060000
41 #include <qwt_polygon.h>
42 #include <qwt_double_rect.h>
65 virtual void addSumData();
72 void setPlotColors(
const QMap<CurveType,CurveDisplay>& colorMap);
74 void setLineThickness(
int thickness );
75 void setLegendVisibility(
bool v );
76 void setDotSize(
int size );
77 void setLogScale(
bool uvScale,
bool logScale );
81 void changeZoom90(
bool zoom );
82 void zoomRectangle(
double minX,
double maxX,
double minY,
double maxY);
85 void resetZoomRectangleColor();
86 virtual void addZoomNeutralCurves() = 0;
88 QWidget* getExternalAxisControl( QwtPlot::Axis position );
90 void insertLegend( QWidget* parent );
94 bool moveDiameterMarker(
const QPoint& pos );
95 double getDishDiameter()
const;
96 bool isDiameterSelectorMode()
const;
97 void setDishDiameter(
double value = -1,
bool scale=
true);
98 void resetDishDiameterLineColor();
101 void setRectangleZoomMode();
102 void setDiameterSelectorMode();
105 void dishDiameterChanged(
double newValue);
106 void rectangleZoomed(
double minX,
double maxX,
double minY,
double maxY );
111 void resizeEvent( QResizeEvent* event );
113 virtual void addSumData(
bool logAmplitude);
115 virtual void zoomRectangleOther(
double minX,
double maxX,
double minY,
double maxY )=0;
116 virtual void zoom90Other(
double dishPosition) = 0;
118 DataType dType,
bool sumCurve );
121 CurveType curveType,
bool sumCurve );
122 pair<QVector<double>,
QVector<double> > limitX( DataType dType,
double xCutOff );
123 pair<QVector<double>,
QVector<double> > limitX( DataType dType,
double minValue,
double maxValue );
124 void initializeDomainLimitedData(
double minValue,
double maxValue,
128 void initializeMarkers();
129 virtual void resetColors();
138 void zoomRectangleSelected(
const QwtDoubleRect& rect );
139 void diameterSelected(
const QwtDoublePoint& pos );
144 void initializeZooming();
145 void initializeDiameterMarker();
146 void initializeDiameterSelector();
147 void setZoomRectangleState(
double minX,
double maxX,
double minY,
double maxY);
149 void removeMarkers();
150 void changeLeftMouseMode();
151 QwtPlot::Axis getAxisYForData(
DataType dType );
164 enum ZoomState { ZOOM_NEUTRAL, ZOOM_90, ZOOM_RECTANGLE };
170 Ui::FeatherPlotWidgetClass
ui;
174 #endif // FEATHERPLOTWIDGET_H
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
CurveType
Note: Order in this listing is important.