labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

XYDataReductionCurve.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : XYDataReductionCurve.h
3  Project : LabPlot
4  Description : A xy-curve defined by a data reduction
5  --------------------------------------------------------------------
6  Copyright : (C) 2016 Stefan Gerlach (stefan.gerlach@uni.kn)
7  Copyright : (C) 2017 Alexander Semke (alexander.semke@web.de)
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 
30 #ifndef XYDATAREDUCTIONCURVE_H
31 #define XYDATAREDUCTIONCURVE_H
32 
34 
35 extern "C" {
37 }
38 
40 
42  Q_OBJECT
43 
44 public:
47 
49  bool autoTolerance{true}; // automatic tolerance
50  double tolerance{0.0}; // tolerance
51  bool autoTolerance2{true}; // automatic tolerance2
52  double tolerance2{0.0}; // tolerance2
53  bool autoRange{true}; // use all data?
54  QVector<double> xRange; // x range for integration
55  };
58 
59  bool available{false};
60  bool valid{false};
61  QString status;
62  qint64 elapsedTime{0};
63  size_t npoints{0};
64  double posError{0};
65  double areaError{0};
66  };
67 
68  explicit XYDataReductionCurve(const QString& name);
70 
71  void recalculate() override;
72  QIcon icon() const override;
73  void save(QXmlStreamWriter*) const override;
74  bool load(XmlStreamReader*, bool preview) override;
75 
78 
80 
81 protected:
83 
84 private:
85  Q_DECLARE_PRIVATE(XYDataReductionCurve)
86 
87 signals:
89  void completed(int); //!< int ranging from 0 to 100 notifies about the status of the analysis process
90 };
91 
92 #endif
QString name() const
Base class for all analysis curves.
A xy-curve defined by a data reduction.
~XYDataReductionCurve() override
const DataReductionResult & dataReductionResult() const
XYDataReductionCurve(const QString &name)
QIcon icon() const override
XYDataReductionCurvePrivate Private
void save(QXmlStreamWriter *) const override
Save as XML.
void completed(int)
int ranging from 0 to 100 notifies about the status of the analysis process
bool load(XmlStreamReader *, bool preview) override
Load from XML.
void dataReductionDataChanged(const XYDataReductionCurve::DataReductionData &)
XML stream parser that supports errors as well as warnings. This class also adds line and column numb...
#define CLASS_D_ACCESSOR_DECL(type, method, Method)
Definition: macros.h:134
nsl_geom_linesim_type
@ nsl_geom_linesim_type_douglas_peucker_variant