dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
scatterplotscopeconfig.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 
27 #ifndef SCATTERPLOTSCOPECONFIG_H
28 #define SCATTERPLOTSCOPECONFIG_H
29 
31 
36 {
37  Q_OBJECT
38 public:
43 
45  Scatterplot2dScopeConfig(QSettings *qSettings);
46  Scatterplot2dScopeConfig(Ui::ScopeGadgetOptionsPage *options_page);
48 
49  virtual void saveConfiguration(QSettings *qSettings);
50  void create(QSettings qSettings);
51 
53  {
54  return m_scatterplotSourceConfigs;
55  }
57  {
58  m_scatterplotSourceConfigs.append(value);
59  }
61 
62  // Getter functions
63  virtual int getScopeType() { return (int)SCATTERPLOT2D; }
64  double getTimeHorizon() { return timeHorizon; }
66  {
67  return m_scatterplotSourceConfigs;
68  }
69  Scatterplot2dType getScatterplot2dType() { return scatterplot2dType; }
70 
71  // Setter functions
72  void setTimeHorizon(double val) { timeHorizon = val; }
73  void setScatterplot2dType(Scatterplot2dType val) { scatterplot2dType = val; }
74  virtual void setGuiConfiguration(Ui::ScopeGadgetOptionsPage *options_page);
75 
77 
78  virtual void loadConfiguration(ScopeGadgetWidget *scopeGadgetWidget);
79  virtual void preparePlot(ScopeGadgetWidget *);
81 
82 private:
83  Scatterplot2dType scatterplot2dType;
84  double timeHorizon;
85 
86  QList<Plot2dCurveConfiguration *> m_scatterplotSourceConfigs;
87 
88 private slots:
89 };
90 
91 #endif // SCATTERPLOTSCOPECONFIG_H
virtual ScopeConfig * cloneScope(ScopeConfig *Scatterplot2dScopeConfig)
Scatterplot2dScopeConfig::cloneScope Clones scope from existing GUI configuration.
The Scatterplot2dScopeConfig class The scatterplot scope configuration.
virtual void preparePlot(ScopeGadgetWidget *)
Scatterplot2dScopeConfig::preparePlot Prepares the Qwt plot colors and axes.
virtual QList< Plot2dCurveConfiguration * > getDataSourceConfigs()
void replaceScatterplotDataSource(QList< Plot2dCurveConfiguration * > scatterplotSourceConfigs)
Scatterplot2dScopeConfig::replaceScatterplotDataSource Replaces the list of scatterplot data sources...
Scatterplot2dType
The Scatterplot2dType enum Defines the different type of plots.
Scatterplot2dScopeConfig()
Scatterplot2dScopeConfig::Scatterplot2dScopeConfig Default constructor.
virtual void saveConfiguration(QSettings *qSettings)
Scatterplot2dScopeConfig::saveConfiguration Saves configuration to XML file.
void setScatterplot2dType(Scatterplot2dType val)
Scatterplot2dType getScatterplot2dType()
void create(QSettings qSettings)
QList< Plot2dCurveConfiguration * > getScatterplotDataSource()
virtual void setGuiConfiguration(Ui::ScopeGadgetOptionsPage *options_page)
Scatterplot2dScopeConfig::setGuiConfigurationSet the GUI elements based on values from the XML settin...
void addScatterplotDataSource(Plot2dCurveConfiguration *value)
void configureAxes(ScopeGadgetWidget *)
Scatterplot2dScopeConfig::configureAxes Configure the axes.
The ScopeConfig class The parent class for scope configuration classes data sources.
Definition: scopesconfig.h:56
The Scopes2dConfig class The parent class for 3D scope configurations.
virtual void loadConfiguration(ScopeGadgetWidget *scopeGadgetWidget)
Scatterplot2dScopeConfig::loadConfiguration loads the plot configuration into the scope gadget widget...