|
SciDAVis
1.D4
|
Plot tool for selecting, moving or removing individual points of a curve. More...
#include <DataPickerTool.h>
Public Types | |
| enum | Mode { Display, Move, Remove } |
| enum | MoveMode { Free, Vertical, Horizontal } |
Public Types inherited from PlotToolInterface | |
| enum | RTTI { DataPicker, ScreenPicker, LineProfile, MultiPeak, RangeSelector, TranslateCurve } |
Signals | |
| void | selected (QwtPlotCurve *, int) |
| Emitted whenever a new data point has been selected. | |
| void | statusText (const QString &) |
Public Member Functions | |
| DataPickerTool (Graph *graph, ApplicationWindow *app, Mode mode, const QObject *status_target=NULL, const char *status_slot="") | |
| virtual bool | eventFilter (QObject *obj, QEvent *event) |
| bool | keyEventFilter (QKeyEvent *ke) |
| Mode | mode () const |
| virtual RTTI | rtti () const |
| QwtPlotCurve * | selectedCurve () const |
| virtual | ~DataPickerTool () |
Public Member Functions inherited from PlotToolInterface | |
| PlotToolInterface (Graph *graph) | |
| virtual | ~PlotToolInterface () |
Protected Member Functions | |
| virtual void | append (const QPoint &point) |
| virtual bool | end (bool ok) |
| virtual void | move (const QPoint &point) |
| void | moveBy (int dx, int dy) |
| void | removePoint () |
| void | setSelection (QwtPlotCurve *curve, int point_index) |
| virtual QwtText | trackerText (const QwtDoublePoint &point) const |
Private Attributes | |
| ApplicationWindow * | d_app |
| Mode | d_mode |
| MoveMode | d_move_mode |
| QPoint | d_move_target_pos |
| QwtPlotCurve * | d_selected_curve |
| int | d_selected_point |
| QwtPlotMarker | d_selection_marker |
Additional Inherited Members | |
Protected Attributes inherited from PlotToolInterface | |
| Graph * | d_graph |
Plot tool for selecting, moving or removing individual points of a curve.
| enum DataPickerTool::Mode |
| DataPickerTool::DataPickerTool | ( | Graph * | graph, |
| ApplicationWindow * | app, | ||
| Mode | mode, | ||
| const QObject * | status_target = NULL, |
||
| const char * | status_slot = "" |
||
| ) |
References PlotToolInterface::d_graph, d_mode, d_selected_curve, d_selection_marker, Display, Move, Graph::plotWidget(), Remove, and statusText().
|
virtual |
References PlotToolInterface::d_graph, d_selection_marker, and Graph::plotWidget().
|
protectedvirtual |
|
protectedvirtual |
References Table::colIndex(), Table::column(), Table::columnType(), d_app, PlotToolInterface::d_graph, d_mode, d_move_target_pos, d_selected_curve, d_selected_point, Graph::Function, ApplicationWindow::modifiedProject(), Move, Table::Numeric, Graph::plotWidget(), Column::setValueAt(), and ApplicationWindow::updateCurves().
Referenced by moveBy().
|
virtual |
References d_mode, d_move_mode, d_selected_curve, d_selected_point, Free, Horizontal, keyEventFilter(), Remove, removePoint(), selected(), and Vertical.
| bool DataPickerTool::keyEventFilter | ( | QKeyEvent * | ke | ) |
References Graph::curve(), Graph::curveIndex(), Graph::curves(), PlotToolInterface::d_graph, d_mode, d_selected_curve, d_selected_point, Move, moveBy(), Graph::plotWidget(), selected(), and setSelection().
Referenced by eventFilter().
|
protectedvirtual |
References d_app, ApplicationWindow::d_decimal_digits, PlotToolInterface::d_graph, d_mode, d_move_mode, d_move_target_pos, d_selected_curve, d_selected_point, d_selection_marker, Free, Horizontal, Move, Graph::plotWidget(), Graph::replot(), statusText(), and Vertical.
Referenced by moveBy().
|
protected |
References d_move_target_pos, d_selected_curve, end(), and move().
Referenced by keyEventFilter().
|
protected |
|
inlinevirtual |
Implements PlotToolInterface.
References PlotToolInterface::DataPicker.
|
signal |
Emitted whenever a new data point has been selected.
Referenced by eventFilter(), and keyEventFilter().
|
inline |
References d_selected_curve.
|
protected |
References Table::colIndex(), d_app, ApplicationWindow::d_decimal_digits, PlotToolInterface::d_graph, d_move_target_pos, d_selected_curve, d_selected_point, d_selection_marker, Graph::Function, Graph::plotWidget(), statusText(), and Table::text().
Referenced by append(), and keyEventFilter().
|
signal |
Emitted whenever a new message should be presented to the user.
You don't have to connect to this signal if you alreay specified a reciever during initialization.
Referenced by DataPickerTool(), move(), and setSelection().
|
protectedvirtual |
|
private |
Referenced by end(), move(), and setSelection().
|
private |
Referenced by DataPickerTool(), end(), eventFilter(), keyEventFilter(), mode(), and move().
|
private |
Referenced by eventFilter(), and move().
|
private |
Referenced by end(), move(), moveBy(), and setSelection().
|
private |
Referenced by append(), DataPickerTool(), end(), eventFilter(), keyEventFilter(), move(), moveBy(), removePoint(), selectedCurve(), and setSelection().
|
private |
Referenced by append(), end(), eventFilter(), keyEventFilter(), move(), removePoint(), and setSelection().
|
private |
Referenced by DataPickerTool(), move(), removePoint(), setSelection(), and ~DataPickerTool().
1.8.1