CurveAxisScaleConfig.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_AXIS_SCALE_CONFIG_H
20 #define RQT_MULTIPLOT_CURVE_AXIS_SCALE_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 {
33  };
34 
35  CurveAxisScaleConfig(QObject* parent = 0, Type type = Auto, double
36  absoluteMinimum = 0.0, double absoluteMaximum = 1000.0, double
37  relativeMinimum = -1000.0, double relativeMaximum = 0.0);
39 
40  void setType(Type type);
41  Type getType() const;
42  void setAbsoluteMinimum(double minimum);
43  double getAbsoluteMinimum() const;
44  void setAbsoluteMaximum(double maximum);
45  double getAbsoluteMaximum() const;
46  void setRelativeMinimum(double minimum);
47  double getRelativeMinimum() const;
48  void setRelativeMaximum(double maximum);
49  double getRelativeMaximum() const;
50  bool isValid() const;
51 
52  void save(QSettings& settings) const;
53  void load(QSettings& settings);
54  void reset();
55 
56  void write(QDataStream& stream) const;
57  void read(QDataStream& stream);
58 
60 
61  signals:
62  void typeChanged(int type);
63  void absoluteMinimumChanged(double minimum);
64  void absoluteMaximumChanged(double maxnimum);
65  void relativeMinimumChanged(double minimum);
66  void relativeMaximumChanged(double maxnimum);
67 
68  private:
74  };
75 };
76 
77 #endif
void write(QDataStream &stream) const
void relativeMaximumChanged(double maxnimum)
void relativeMinimumChanged(double minimum)
void absoluteMinimumChanged(double minimum)
void save(QSettings &settings) const
void absoluteMaximumChanged(double maxnimum)
CurveAxisScaleConfig & operator=(const CurveAxisScaleConfig &src)
CurveAxisScaleConfig(QObject *parent=0, Type type=Auto, double absoluteMinimum=0.0, double absoluteMaximum=1000.0, double relativeMinimum=-1000.0, double relativeMaximum=0.0)


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