VAPoR  3.0.0
variablesWidget.h
Go to the documentation of this file.
1 #ifndef VARIABLESWIDGET_H
2 #define VARIABLESWIDGET_H
3 
4 
5 #include <qobject.h>
6 #include "variablesTab.h"
7 #include "vapor/MyBase.h"
8 
9 using namespace VetsUtil;
10 QT_USE_NAMESPACE
11 
12 namespace VAPoR {
13 
14 class EventRouter;
15 class RenderParams;
23 
34 class VariablesWidget : public QWidget, public Ui_VariablesTab {
35 
36  Q_OBJECT
37 
38 public:
39 
40  VariablesWidget(QWidget* parent);
41  virtual ~VariablesWidget(){}
42 
46  void updateTab(RenderParams* rp);
47 
50  void reinitTab(bool doOverride);
51 
52 protected slots:
54  void setNumRefinements(int num);
56  void setCompRatio(int num);
58  void SetFidelity(int buttonID);
60  void SetFidelityDefault();
62  void setVarNum(int);
64  void setXVarNum(int);
66  void setYVarNum(int);
68  void setZVarNum(int);
70  void setHeightVarNum(int);
72  void setVariableDims(int);
73 
74 private:
75 
80  void setupFidelity(int dim, RenderParams* dParams, bool useDefault);
81 
84  void updateFidelity(RenderParams* rp);
85 
88  void populateVariableCombos(int dim);
89  EventRouter* _eventRouter;
90  QButtonGroup* _fidelityButtons;
91  bool _ignoreComboChanges;
92 };
93 
94 };
95 
96 #endif //VARIABLESWIDGET_H
97 
98 
99 
A Widget that can be reused to provide a variable selection tab in any renderer EventRouter class...
A Params subclass for managing parameters used by Renderers.
Definition: renderparams.h:57
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI...
Definition: eventrouter.h:101
Definition: DC.h:10