QtiPlot  0.9.8.2
Public Member Functions | Protected Member Functions | List of all members
BaselineTool Class Reference

Plot tool for selecting and moving individual points of a baseline curve. More...

#include <DataPickerTool.h>

Inheritance diagram for BaselineTool:
DataPickerTool PlotToolInterface

Public Member Functions

 BaselineTool (QwtPlotCurve *curve, Graph *graph, ApplicationWindow *app)
- Public Member Functions inherited from DataPickerTool
ApplicationWindowapplicationWindow ()
void copySelection ()
void cutSelection ()
 DataPickerTool (Graph *graph, ApplicationWindow *app, Mode mode, const QObject *status_target=NULL, const char *status_slot="")
virtual bool eventFilter (QObject *obj, QEvent *event)
int findClosestPoint (QwtPlotCurve *c, double x, bool up)
 Searches the index of the closest point to the given x coordinate.
bool keyEventFilter (QKeyEvent *ke)
Mode mode ()
 Returns the information about the functioning mode of the tool.
void pasteSelection ()
void removePoint ()
virtual int rtti () const
QwtPlotCurve * selectedCurve () const
int selectedPointIndex ()
void selectTableRow ()
void setMode (Mode m)
void setSelectedCurve (QwtPlotCurve *c)
virtual ~DataPickerTool ()
- Public Member Functions inherited from PlotToolInterface
 PlotToolInterface (Graph *graph, const QObject *status_target=NULL, const char *status_slot="")
virtual ~PlotToolInterface ()

Protected Member Functions

void setSelection (QwtPlotCurve *curve, int point_index)
- Protected Member Functions inherited from DataPickerTool
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)

Additional Inherited Members

- Public Types inherited from DataPickerTool
enum  Mode { Display, Move, Remove, MoveCurve }
enum  MoveMode { Free, Vertical, Horizontal }
- Public Slots inherited from DataPickerTool
void pasteSelectionAsLayerText ()
- Signals inherited from DataPickerTool
void selected (QwtPlotCurve *, int)
 Emitted whenever a new data point has been selected.
void statusText (const QString &)
- Protected Attributes inherited from DataPickerTool
ApplicationWindowd_app
Mode d_mode
MoveMode d_move_mode
QPoint d_restricted_move_pos
QwtPlotCurve * d_selected_curve
int d_selected_point
QwtPlotMarker d_selection_marker

Detailed Description

Plot tool for selecting and moving individual points of a baseline curve.

Constructor & Destructor Documentation

BaselineTool::BaselineTool ( QwtPlotCurve *  curve,
Graph graph,
ApplicationWindow app 
)

Member Function Documentation

void BaselineTool::setSelection ( QwtPlotCurve *  curve,
int  point_index 
)
protectedvirtual

Reimplemented from DataPickerTool.

References DataPickerTool::d_selected_curve.


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