QtiPlot 0.9.7.3
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes

ScreenPickerTool Class Reference

#include <ScreenPickerTool.h>

Inheritance diagram for ScreenPickerTool:
PlotToolInterface DrawPointTool ImageProfilesTool

List of all members.

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

Detailed Description

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.


Member Enumeration Documentation

Enumerator:
NoRestriction 
Vertical 
Horizontal 

Constructor & Destructor Documentation

ScreenPickerTool::ScreenPickerTool ( Graph graph,
const QObject *  status_target = NULL,
const char *  status_slot = "" 
)
ScreenPickerTool::~ScreenPickerTool ( ) [virtual]

Member Function Documentation

void ScreenPickerTool::append ( const QwtDoublePoint &  pos) [virtual]
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]
double ScreenPickerTool::yValue ( ) [inline]

Member Data Documentation

Referenced by append(), and setMoveRestriction().

QwtPlotMarker ScreenPickerTool::d_selection_marker [protected]

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