12 #include <QtCore/QList>
18 class Histogram1DFloat;
virtual QList< Data * > data()
retrieve the displayed data
QAction * _legendControl
an action to control the legend of curves
OneDViewer(QString title, QWidget *parent=0)
constructor
contains the base class for all data viewers
true Then one can use the IsHit Processor later on
quint8 _gridLines
flags to tell which grid lines should be drawn
virtual QString type() const
retrieve the type of the data viewer
virtual QStringList dataFileSuffixes() const
suffixes for the data of this viewer
a viewer that displays 1d data
widget to control the min and max values
QAction * _axisTitleControl
an action to control the legend of curves
QAction * _gridControl
an action to control the grid in the plot
virtual void saveData(const QString &filename)
save the data to file
void change_curve_color(PlotCurve *curve=0)
change the curves color
void on_legend_checked(const QVariant &item, bool on)
react when an legend item has been clicked
void change_curve_width(PlotCurve *curve=0)
change the curves line width
virtual void dataChanged()
update the plot
void on_grid_triggered()
react on when the gridControl has been triggered
void on_legend_right_clicked(QPoint pos)
react when an legend item has been selected
QList< OneDViewerData * > _curvesData
this plots curves
MinMaxControl * _xControl
control for the x-axis
void replot()
redraw the plot
MinMaxControl * _yControl
control for the y-axis
QwtPlotGrid * _grid
a grid in the plot
an alternative curve plot
QwtLegend * _legend
a legend for the different curves
QList< PlotCurve * > _curves
this plots curves
void on_add_graph_triggered()
react when addGraph action has been triggered
virtual ~OneDViewer()
destructor
void remove_curve(PlotCurve *curve=0)
remove the curve from the plot