DataPickerTool Class Reference

#include <DataPickerTool.h>

Inheritance diagram for DataPickerTool:

PlotToolInterface

List of all members.


Detailed Description

Plot tool for selecting, moving or removing individual points of a curve.

Public Types

enum  Mode { Display, Move, Remove }

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)
QwtPlotCurve * selectedCurve () const
virtual ~DataPickerTool ()

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 movePoint (const QPoint &cursor)
void removePoint ()
void setSelection (QwtPlotCurve *curve, int point_index)

Private Attributes

ApplicationWindowd_app
Mode d_mode
QwtPlotCurve * d_selected_curve
int d_selected_point
QwtPlotMarker d_selection_marker

Member Enumeration Documentation

enum DataPickerTool::Mode

Enumerator:
Display 
Move 
Remove 


Constructor & Destructor Documentation

DataPickerTool::DataPickerTool ( Graph graph,
ApplicationWindow app,
Mode  mode,
const QObject *  status_target = NULL,
const char *  status_slot = "" 
)

DataPickerTool::~DataPickerTool (  )  [virtual]


Member Function Documentation

void DataPickerTool::append ( const QPoint &  point  )  [protected, virtual]

bool DataPickerTool::end ( bool  ok  )  [protected, virtual]

bool DataPickerTool::eventFilter ( QObject *  obj,
QEvent *  event 
) [virtual]

bool DataPickerTool::keyEventFilter ( QKeyEvent *  ke  ) 

void DataPickerTool::move ( const QPoint &  point  )  [protected, virtual]

void DataPickerTool::moveBy ( int  dx,
int  dy 
) [protected]

void DataPickerTool::movePoint ( const QPoint &  cursor  )  [protected]

void DataPickerTool::removePoint (  )  [protected]

void DataPickerTool::selected ( QwtPlotCurve *  ,
int   
) [signal]

Emitted whenever a new data point has been selected.

QwtPlotCurve* DataPickerTool::selectedCurve (  )  const [inline]

void DataPickerTool::setSelection ( QwtPlotCurve *  curve,
int  point_index 
) [protected]

void DataPickerTool::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.


Member Data Documentation

ApplicationWindow* DataPickerTool::d_app [private]

Mode DataPickerTool::d_mode [private]

QwtPlotCurve* DataPickerTool::d_selected_curve [private]

int DataPickerTool::d_selected_point [private]

QwtPlotMarker DataPickerTool::d_selection_marker [private]


The documentation for this class was generated from the following files:
Generated on Mon Oct 15 06:11:43 2007 for QtiPlot by  doxygen 1.5.3