PlotAxesConfig.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_PLOT_AXES_CONFIG_H
20 #define RQT_MULTIPLOT_PLOT_AXES_CONFIG_H
21 
22 #include <rqt_multiplot/Config.h>
24 
25 namespace rqt_multiplot {
27  public Config {
28  Q_OBJECT
29  public:
30  enum Axis {
31  X,
32  Y
33  };
34 
35  PlotAxesConfig(QObject* parent = 0);
37 
38  PlotAxisConfig* getAxisConfig(Axis axis) const;
39 
40  void save(QSettings& settings) const;
41  void load(QSettings& settings);
42  void reset();
43 
44  void write(QDataStream& stream) const;
45  void read(QDataStream& stream);
46 
48 
49  private:
50  QMap<Axis, PlotAxisConfig*> axisConfig_;
51 
52  private slots:
53  void axisConfigChanged();
54  };
55 };
56 
57 #endif
PlotAxesConfig(QObject *parent=0)
QMap< Axis, PlotAxisConfig * > axisConfig_
void write(QDataStream &stream) const
PlotAxisConfig * getAxisConfig(Axis axis) const
void read(QDataStream &stream)
PlotAxesConfig & operator=(const PlotAxesConfig &src)
void load(QSettings &settings)
void save(QSettings &settings) const


rqt_multiplot_plugin
Author(s): Ralf Kaestner
autogenerated on Fri Jan 15 2021 03:47:53