CurveStyleConfig.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_STYLE_CONFIG_H
20 #define RQT_MULTIPLOT_CURVE_STYLE_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  CurveStyleConfig(QObject* parent = 0, Type type = Lines, bool
37  linesInterpolate = false, Qt::Orientation sticksOrientation =
38  Qt::Vertical, double sticksBaseline = 0.0, bool stepsInvert =
39  false, size_t penWidth = 1, Qt::PenStyle penStyle = Qt::SolidLine,
40  bool renderAntialias = false);
42 
43  void setType(Type type);
44  Type getType() const;
45 
46  void setLinesInterpolate(bool interpolate);
47  bool areLinesInterpolated() const;
48  void setSticksOrientation(Qt::Orientation orientation);
49  Qt::Orientation getSticksOrientation() const;
50  void setSticksBaseline(double baseline);
51  double getSticksBaseline() const;
52  void setStepsInvert(bool invert);
53  bool areStepsInverted() const;
54 
55  void setPenWidth(size_t width);
56  size_t getPenWidth() const;
57  void setPenStyle(Qt::PenStyle style);
58  Qt::PenStyle getPenStyle() const;
59  void setRenderAntialias(bool antialias);
60  bool isRenderAntialiased() const;
61 
62  void save(QSettings& settings) const;
63  void load(QSettings& settings);
64  void reset();
65 
66  void write(QDataStream& stream) const;
67  void read(QDataStream& stream);
68 
70 
71  signals:
72  void typeChanged(int type);
73  void linesInterpolateChanged(bool interpolate);
74  void sticksOrientationChanged(int orientation);
75  void sticksBaselineChanged(double baseline);
76  void stepsInvertChanged(bool invert);
77  void penWidthChanged(size_t width);
78  void penStyleChanged(int style);
79  void renderAntialiasChanged(bool antialias);
80 
81  private:
83 
85  Qt::Orientation sticksOrientation_;
88 
89  size_t penWidth_;
90  Qt::PenStyle penStyle_;
92  };
93 };
94 
95 #endif
void sticksOrientationChanged(int orientation)
CurveStyleConfig(QObject *parent=0, Type type=Lines, bool linesInterpolate=false, Qt::Orientation sticksOrientation=Qt::Vertical, double sticksBaseline=0.0, bool stepsInvert=false, size_t penWidth=1, Qt::PenStyle penStyle=Qt::SolidLine, bool renderAntialias=false)
void setLinesInterpolate(bool interpolate)
void renderAntialiasChanged(bool antialias)
void save(QSettings &settings) const
void sticksBaselineChanged(double baseline)
void setSticksBaseline(double baseline)
void write(QDataStream &stream) const
void penWidthChanged(size_t width)
void setPenStyle(Qt::PenStyle style)
void setSticksOrientation(Qt::Orientation orientation)
void linesInterpolateChanged(bool interpolate)
Qt::Orientation getSticksOrientation() const
void load(QSettings &settings)
void setRenderAntialias(bool antialias)
CurveStyleConfig & operator=(const CurveStyleConfig &src)
void read(QDataStream &stream)
void stepsInvertChanged(bool invert)


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