QtiPlot
0.9.8.2
qtiplot
src
plot2D
SubtractLineTool.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : SubtractLineTool.h
3
Project : QtiPlot
4
--------------------------------------------------------------------
5
Copyright : (C) 2010 by Ion Vasilief
6
Email (use @ for *) : ion_vasilief*yahoo.fr
7
Description : Plot tool for substracting a straight line
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
#ifndef SUBSTRACT_LINE_TOOL
30
#define SUBSTRACT_LINE_TOOL
31
32
#include "
PlotToolInterface.h
"
33
#include <QObject>
34
#include <QLineF>
35
36
#include "
ScreenPickerTool.h
"
37
38
class
ApplicationWindow
;
39
class
QwtPlotCurve;
40
class
QwtPlotMarker;
41
44
class
SubtractLineTool
:
public
QObject,
public
PlotToolInterface
45
{
46
Q_OBJECT
47
public
:
48
SubtractLineTool
(
Graph
*graph,
ApplicationWindow
*app,
const
QObject *status_target,
const
char
*status_slot);
49
virtual
~SubtractLineTool
();
50
51
virtual
int
rtti
()
const
{
return
PlotToolInterface::Rtti_SubtractLineTool
;};
52
signals:
57
void
statusText
(
const
QString&);
58
protected
slots:
59
void
selectPoint
(
const
QwtDoublePoint &pos);
60
61
private
:
62
void
finalize
();
63
int
d_selected_points
;
64
ScreenPickerTool
*
d_picker_tool
;
65
QwtPlotMarker *
d_first_point_marker
;
66
QLineF
d_line
;
67
};
68
69
#endif
Graph
A 2D-plotting widget.
Definition:
Graph.h:123
SubtractLineTool::SubtractLineTool
SubtractLineTool(Graph *graph, ApplicationWindow *app, const QObject *status_target, const char *status_slot)
Definition:
SubtractLineTool.cpp:40
SubtractLineTool::rtti
virtual int rtti() const
Definition:
SubtractLineTool.h:51
SubtractLineTool
Definition:
SubtractLineTool.h:44
SubtractLineTool::d_selected_points
int d_selected_points
Definition:
SubtractLineTool.h:63
SubtractLineTool::finalize
void finalize()
Definition:
SubtractLineTool.cpp:86
PlotToolInterface::Rtti_SubtractLineTool
Definition:
PlotToolInterface.h:76
ApplicationWindow
QtiPlot's main window.
Definition:
ApplicationWindow.h:133
SubtractLineTool::d_first_point_marker
QwtPlotMarker * d_first_point_marker
Definition:
SubtractLineTool.h:65
PlotToolInterface.h
PlotToolInterface
Definition:
PlotToolInterface.h:60
SubtractLineTool::~SubtractLineTool
virtual ~SubtractLineTool()
Definition:
SubtractLineTool.cpp:56
ScreenPickerTool.h
SubtractLineTool::statusText
void statusText(const QString &)
ScreenPickerTool
Definition:
ScreenPickerTool.h:54
SubtractLineTool::d_line
QLineF d_line
Definition:
SubtractLineTool.h:66
SubtractLineTool::selectPoint
void selectPoint(const QwtDoublePoint &pos)
Definition:
SubtractLineTool.cpp:64
SubtractLineTool::d_picker_tool
ScreenPickerTool * d_picker_tool
Definition:
SubtractLineTool.h:64
Generated by
1.8.12