VAPOR3 3.9.4
RenderEventRouterGUI.h
Go to the documentation of this file.
1#pragma once
2
3#include "RenderEventRouter.h"
4#include <QTabWidget>
5
6class Updateable;
7class UWidget;
8
13
14class RenderEventRouterGUI : public RenderEventRouter, public QTabWidget {
15 vector<Updateable *> _subtabs;
16
17public:
18 static const std::string VariablesTabName;
19 static const std::string AppearanceTabName;
20 static const std::string GeometryTabName;
21 static const std::string AnnotationTabName;
22
24 QWidget *AddSubtab(string title, UWidget *subtab);
25 QWidget *AddVariablesSubtab(UWidget *subtab) { return AddSubtab(VariablesTabName, subtab); }
26 QWidget *AddAppearanceSubtab(UWidget *subtab) { return AddSubtab(AppearanceTabName, subtab); }
27 QWidget *AddGeometrySubtab(UWidget *subtab) { return AddSubtab(GeometryTabName, subtab); }
28 QWidget *AddAnnotationSubtab(UWidget *subtab) { return AddSubtab(AnnotationTabName, subtab); }
29
30
31protected:
32 virtual void _updateTab() override;
33
34private:
35 void setTab(int i);
36 void tabChanged(int i);
37 GUIStateParams *getGUIStateParams() const;
38};
Tab manager for renderer subtabs.
virtual void _updateTab() override
static const std::string GeometryTabName
QWidget * AddAppearanceSubtab(UWidget *subtab)
RenderEventRouterGUI(VAPoR::ControlExec *ce, string paramsType)
static const std::string VariablesTabName
QWidget * AddSubtab(string title, UWidget *subtab)
QWidget * AddGeometrySubtab(UWidget *subtab)
static const std::string AppearanceTabName
QWidget * AddAnnotationSubtab(UWidget *subtab)
QWidget * AddVariablesSubtab(UWidget *subtab)
static const std::string AnnotationTabName
A pure virtual class specifying the common properties of all the renderer parameter tabs in the VAPOR...
A widget that standardizes support for params updates.
Definition: UWidget.h:10
Provides an interface that standardizes objects that support params updates.
Definition: Updateable.h:13
Provides API for VAPOR visualizer User Interfaces (UIs)