QtiPlot
0.9.8.2
Main Page
Related Pages
Classes
Files
File List
File Members
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
Generated on Sat Jun 8 2013 16:32:24 for QtiPlot by
1.8.1.2