VAPOR3 3.9.4
RenderHolder.h
Go to the documentation of this file.
1#ifndef RENDERHOLDER_H
2#define RENDERHOLDER_H
3
4#include <qobject.h>
5#include <qstackedwidget.h>
6#include <qpushbutton.h>
7#include <qtableview.h>
8#include <vapor/MyBase.h>
9#include <QMessageBox>
11#include "ui_NewRendererDialog.h"
12#include "VaporTable.h"
14
15QT_USE_NAMESPACE
16
17class RendererList;
18namespace VAPoR {
19class ControlExec;
20class ParamsMgr;
21class DataStatus;
22class RenderParams;
23} // namespace VAPoR
24
25class NewRendererDialog : public QDialog, public Ui_NewRendererDialog {
26 Q_OBJECT
27
28public:
29 NewRendererDialog(QWidget *parent, std::vector<string> rendererNames, std::vector<string> descriptions, std::vector<string> iconPaths, std::vector<string> smallIconPaths,
30 std::vector<bool> dim2DSupport, std::vector<bool> dim3DSupport, vector<bool> particleSupport);
31
32 std::string GetSelectedRenderer() { return _selectedRenderer; }
34
35private slots:
36 void _buttonChecked();
37 void _buttonDoubleClicked();
38 void _showRelevantRenderers();
39
40private:
41 void _createButtons();
42 void _setUpImage(std::string imageName, QLabel *label);
43 void _uncheckAllButtons();
44 void _selectFirstValidRenderer();
45 QPushButton *_createButton(QIcon icon, QString name, int index);
46
47 std::vector<string> _rendererNames;
48 std::vector<string> _descriptions;
49 std::vector<string> _iconPaths;
50 std::vector<string> _smallIconPaths;
51 std::vector<bool> _dim2DSupport;
52 std::vector<bool> _dim3DSupport;
53 std::vector<bool> _particleSupport;
54 std::vector<QPushButton *> _buttons;
55
56 VAPoR::DataStatus *_dataStatus;
57
58 std::string _selectedRenderer;
59 QMessageBox *_msgBox;
60};
61
62class CBWidget : public QWidget, public QTableWidgetItem {
63public:
64 CBWidget(QWidget *parent, QString type);
65};
66
73
80public:
81 static void _showIntelDriverWarning(VAPoR::ControlExec *_controlExec, const string &rendererType);
82 static void _newRendererDialogAccepted(VAPoR::ControlExec *_controlExec, NewRendererDialog *_newRendererDialog);
83};
84
85#endif // RENDERHOLDER_H
CBWidget(QWidget *parent, QString type)
void InitializeDataSources(VAPoR::DataStatus *dataStatus)
NewRendererDialog(QWidget *parent, std::vector< string > rendererNames, std::vector< string > descriptions, std::vector< string > iconPaths, std::vector< string > smallIconPaths, std::vector< bool > dim2DSupport, std::vector< bool > dim3DSupport, vector< bool > particleSupport)
std::string GetSelectedRenderer()
Definition: RenderHolder.h:32
A class that manages the display of Renderer parameters.
Definition: RenderHolder.h:79
static void _newRendererDialogAccepted(VAPoR::ControlExec *_controlExec, NewRendererDialog *_newRendererDialog)
static void _showIntelDriverWarning(VAPoR::ControlExec *_controlExec, const string &rendererType)
Provides API for VAPOR visualizer User Interfaces (UIs)
A class for describing the currently loaded dataset.
Definition: DataStatus.h:50