CurveAxisScaleConfig.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (C) 2015 by Ralf Kaestner                                        *
00003  * ralf.kaestner@gmail.com                                                    *
00004  *                                                                            *
00005  * This program is free software; you can redistribute it and/or modify       *
00006  * it under the terms of the Lesser GNU General Public License as published by*
00007  * the Free Software Foundation; either version 3 of the License, or          *
00008  * (at your option) any later version.                                        *
00009  *                                                                            *
00010  * This program is distributed in the hope that it will be useful,            *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the               *
00013  * Lesser GNU General Public License for more details.                        *
00014  *                                                                            *
00015  * You should have received a copy of the Lesser GNU General Public License   *
00016  * along with this program. If not, see <http://www.gnu.org/licenses/>.       *
00017  ******************************************************************************/
00018 
00019 #ifndef RQT_MULTIPLOT_CURVE_AXIS_SCALE_CONFIG_H
00020 #define RQT_MULTIPLOT_CURVE_AXIS_SCALE_CONFIG_H
00021 
00022 #include <rqt_multiplot/Config.h>
00023 
00024 namespace rqt_multiplot {
00025   class CurveAxisScaleConfig :
00026     public Config {
00027   Q_OBJECT
00028   public:
00029     enum Type {
00030       Auto,
00031       Absolute,
00032       Relative
00033     };
00034     
00035     CurveAxisScaleConfig(QObject* parent = 0, Type type = Auto, double
00036       absoluteMinimum = 0.0, double absoluteMaximum = 1000.0, double
00037       relativeMinimum = -1000.0, double relativeMaximum = 0.0);
00038     ~CurveAxisScaleConfig();
00039     
00040     void setType(Type type);
00041     Type getType() const;
00042     void setAbsoluteMinimum(double minimum);
00043     double getAbsoluteMinimum() const;
00044     void setAbsoluteMaximum(double maximum);
00045     double getAbsoluteMaximum() const;
00046     void setRelativeMinimum(double minimum);
00047     double getRelativeMinimum() const;
00048     void setRelativeMaximum(double maximum);
00049     double getRelativeMaximum() const;
00050     bool isValid() const;
00051     
00052     void save(QSettings& settings) const;
00053     void load(QSettings& settings);
00054     void reset();
00055     
00056     void write(QDataStream& stream) const;
00057     void read(QDataStream& stream);
00058     
00059     CurveAxisScaleConfig& operator=(const CurveAxisScaleConfig& src);
00060     
00061   signals:
00062     void typeChanged(int type);
00063     void absoluteMinimumChanged(double minimum);
00064     void absoluteMaximumChanged(double maxnimum);
00065     void relativeMinimumChanged(double minimum);
00066     void relativeMaximumChanged(double maxnimum);
00067     
00068   private:
00069     Type type_;
00070     double absoluteMinimum_;
00071     double absoluteMaximum_;
00072     double relativeMinimum_;
00073     double relativeMaximum_;
00074   };
00075 };
00076 
00077 #endif


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Tue May 9 2017 02:16:02