QtiPlot
0.9.8.2
|
#include <SubtractLineTool.h>
Signals | |
void | statusText (const QString &) |
Public Member Functions | |
virtual int | rtti () const |
SubtractLineTool (Graph *graph, ApplicationWindow *app, const QObject *status_target, const char *status_slot) | |
virtual | ~SubtractLineTool () |
Protected Slots | |
void | selectPoint (const QwtDoublePoint &pos) |
Private Member Functions | |
void | finalize () |
Private Attributes | |
QwtPlotMarker * | d_first_point_marker |
QLineF | d_line |
ScreenPickerTool * | d_picker_tool |
int | d_selected_points |
Plot tool for substracting a straight line.
SubtractLineTool::SubtractLineTool | ( | Graph * | graph, |
ApplicationWindow * | app, | ||
const QObject * | status_target, | ||
const char * | status_slot | ||
) |
References PlotToolInterface::d_graph, d_picker_tool, d_selected_points, selectPoint(), and statusText().
SubtractLineTool::~SubtractLineTool | ( | ) | [virtual] |
References PlotToolInterface::d_graph, and d_picker_tool.
void SubtractLineTool::finalize | ( | ) | [private] |
References Graph::activeTool(), Table::colIndex(), Graph::curveCount(), d_first_point_marker, PlotToolInterface::d_graph, d_line, d_picker_tool, Graph::dataCurve(), DataCurve::endRow(), Graph::ErrorBars, Table::notifyChanges(), PlotToolInterface::rtti(), PlotToolInterface::Rtti_RangeSelector, Graph::setActiveTool(), Table::setCell(), DataCurve::startRow(), DataCurve::table(), Table::text(), and PlotCurve::type().
Referenced by selectPoint().
virtual int SubtractLineTool::rtti | ( | ) | const [inline, virtual] |
Reimplemented from PlotToolInterface.
References PlotToolInterface::Rtti_SubtractLineTool.
void SubtractLineTool::selectPoint | ( | const QwtDoublePoint & | pos | ) | [protected, slot] |
References d_first_point_marker, PlotToolInterface::d_graph, d_line, d_selected_points, finalize(), and statusText().
Referenced by SubtractLineTool().
void SubtractLineTool::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 selectPoint(), and SubtractLineTool().
QwtPlotMarker* SubtractLineTool::d_first_point_marker [private] |
Referenced by finalize(), and selectPoint().
QLineF SubtractLineTool::d_line [private] |
Referenced by finalize(), and selectPoint().
ScreenPickerTool* SubtractLineTool::d_picker_tool [private] |
Referenced by finalize(), SubtractLineTool(), and ~SubtractLineTool().
int SubtractLineTool::d_selected_points [private] |
Referenced by selectPoint(), and SubtractLineTool().