dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
scopes2dconfig.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 SCOPES2D_H
28 #define SCOPES2D_H
29 
30 #include "scopesconfig.h"
31 #include "scopes2d/plotdata2d.h"
32 
34 #include "ui_scopegadgetoptionspage.h"
35 
36 // This struct holds the configuration for individual 2D data sources
38 {
39  QString uavObjectName;
40  QString uavFieldName;
41  int yScalePower; // This is the power to which each value must be raised
42  QRgb color;
43  unsigned int yMeanSamples;
44  QString mathFunction;
45 };
46 
51 {
52  Q_OBJECT
53 public:
57  enum Plot2dType {
58  NO2DPLOT, // Signifies that there is no 2D plot configured
62  };
63 
64  virtual int getScopeDimensions() { return PLOT2D; }
65 
66 private:
67 };
68 
69 #endif // SCOPES2D_H
Plot2dType
The Plot2dType enum Defines the different type of plots.
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 int getScopeDimensions()