QtiPlot 0.9.8.2
|
#include <ScreenPickerTool.h>
Public Types | |
enum | MoveRestriction { NoRestriction, Vertical, Horizontal } |
Signals | |
void | statusText (const QString &) |
Public Member Functions | |
virtual void | append (const QwtDoublePoint &pos) |
ScreenPickerTool (Graph *graph, const QObject *status_target=NULL, const char *status_slot="") | |
void | setMoveRestriction (ScreenPickerTool::MoveRestriction r) |
double | xValue () |
double | yValue () |
virtual | ~ScreenPickerTool () |
Protected Member Functions | |
virtual void | append (const QPoint &point) |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Protected Attributes | |
MoveRestriction | d_move_restriction |
QwtPlotMarker | d_selection_marker |
Plot tool for selecting arbitrary points.
This is a rather thin wrapper around QwtPlotPicker, providing selection of points on a Graph/Plot and displaying coordinates.
ScreenPickerTool::ScreenPickerTool | ( | Graph * | graph, |
const QObject * | status_target = NULL , |
||
const char * | status_slot = "" |
||
) |
References PlotToolInterface::d_graph, d_selection_marker, and statusText().
ScreenPickerTool::~ScreenPickerTool | ( | ) | [virtual] |
References PlotToolInterface::d_graph, and d_selection_marker.
void ScreenPickerTool::append | ( | const QwtDoublePoint & | pos | ) | [virtual] |
Reimplemented in ImageProfilesTool.
References PlotToolInterface::d_graph, d_move_restriction, d_selection_marker, Horizontal, Graph::multiLayer(), NoRestriction, statusText(), and Vertical.
Referenced by append(), and eventFilter().
void ScreenPickerTool::append | ( | const QPoint & | point | ) | [protected, virtual] |
References append().
bool ScreenPickerTool::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) | [protected, virtual] |
Reimplemented in DrawPointTool.
References append(), and d_selection_marker.
void ScreenPickerTool::setMoveRestriction | ( | ScreenPickerTool::MoveRestriction | r | ) | [inline] |
References d_move_restriction.
void ScreenPickerTool::statusText | ( | const QString & | ) | [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 ImageProfilesTool::append(), append(), DrawPointTool::appendPoint(), and ScreenPickerTool().
double ScreenPickerTool::xValue | ( | ) | [inline] |
References d_selection_marker.
Referenced by ImageProfilesTool::clone().
double ScreenPickerTool::yValue | ( | ) | [inline] |
References d_selection_marker.
Referenced by ImageProfilesTool::clone().
MoveRestriction ScreenPickerTool::d_move_restriction [protected] |
Referenced by append(), and setMoveRestriction().
QwtPlotMarker ScreenPickerTool::d_selection_marker [protected] |