CurveDataConfig.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2015 by Ralf Kaestner *
3  * ralf.kaestner@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the Lesser GNU General Public License as published by*
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * Lesser GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the Lesser GNU General Public License *
16  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17  ******************************************************************************/
18 
19 #ifndef RQT_MULTIPLOT_CURVE_DATA_CONFIG_H
20 #define RQT_MULTIPLOT_CURVE_DATA_CONFIG_H
21 
22 #include <rqt_multiplot/Config.h>
23 
24 namespace rqt_multiplot {
26  public Config {
27  Q_OBJECT
28  public:
29  enum Type {
34  };
35 
36  CurveDataConfig(QObject* parent = 0, Type type = Vector, size_t
37  circularBufferCapacity = 1000, double timeFrameLength = 10.0);
39 
40  void setType(Type type);
41  Type getType() const;
42  void setCircularBufferCapacity(size_t capacity);
43  size_t getCircularBufferCapacity() const;
44  void setTimeFrameLength(double length);
45  double getTimeFrameLength() const;
46 
47  void save(QSettings& settings) const;
48  void load(QSettings& settings);
49  void reset();
50 
51  void write(QDataStream& stream) const;
52  void read(QDataStream& stream);
53 
55 
56  signals:
57  void typeChanged(int type);
58  void circularBufferCapacityChanged(size_t capacity);
59  void timeFrameLengthChanged(double length);
60 
61  private:
65  };
66 };
67 
68 #endif
size_t getCircularBufferCapacity() const
CurveDataConfig(QObject *parent=0, Type type=Vector, size_t circularBufferCapacity=1000, double timeFrameLength=10.0)
void save(QSettings &settings) const
void read(QDataStream &stream)
void circularBufferCapacityChanged(size_t capacity)
void setCircularBufferCapacity(size_t capacity)
void setTimeFrameLength(double length)
void write(QDataStream &stream) const
void timeFrameLengthChanged(double length)
void load(QSettings &settings)
CurveDataConfig & operator=(const CurveDataConfig &src)


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44