LibEngsas
echartvalues.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef ECHARTVALUES_H
21 #define ECHARTVALUES_H
22 
23 #include "echarts.h"
24 
25 #include <QList>
26 #include <QVariant>
27 
33 {
34  public:
35  EChartValues();
36  EChartValues(const QVariant x, const QVariant y);
37 
38  void add(QVariant x, QVariant y);
39  inline QList<QVariant> xValues() const { return myXValues; }
40  QVariant y(const QVariant x) const;
41 
42  private:
43  QList<QVariant> myXValues;
44  QList<QVariant> myYValues;
45 };
46 
47 #endif // ECHARTVALUES_H
QList< QVariant > xValues() const
Definition: echartvalues.h:39
QList< QVariant > myYValues
Definition: echartvalues.h:44
QList< QVariant > myXValues
Definition: echartvalues.h:43
#define E_CHARTS_EXPORT
Definition: echarts.h:31
Class to store x and y values vectors.
Definition: echartvalues.h:32