VAPOR3 3.9.4
CopyRegionWidget.h
Go to the documentation of this file.
1#ifndef COPYREGIONWIDGET_H
2#define COPYREGIONWIDGET_H
3
4#include <vapor/Box.h>
5#include "VSection.h"
6#include <QPushButton>
7#include <QComboBox>
8
9namespace VAPoR {
10class RenderParams;
11class ParamsMgr;
12class DataMgr;
13} // namespace VAPoR
14
16 Q_OBJECT
17
18public:
19 CopyRegionWidget(QWidget *parent = 0);
20
22
23 QString name() const { return "CopyRegionWidget"; }
24 QString includeFile() const { return "CopyRegionWidget.h"; }
25 QString group() const { return tr("A widget for copying one renderer's region to another"); }
26 QString toolTip() const
27 {
28 return tr("A widget for copying one renderer's "
29 "region to another");
30 }
31 QString whatsThis() const
32 {
33 return tr("This widget contains all widgets "
34 "necessary for copying renderer regions");
35 }
36 bool isContainer() const { return true; }
37 virtual void Update(VAPoR::ParamsMgr *paramsMgr, VAPoR::RenderParams *rParams);
38
39signals:
41
42protected slots:
43 virtual void copyRegion();
44
45protected:
46 QPushButton *copyButton;
47 QComboBox * copyCombo;
48
50
51 // Configures a box to have equal minimum and maximum
52 // extents along an axis, if the box is planar. If not,
53 // the function returns.
54 void _configurePlanarBox(const VAPoR::Box *myBox, std::vector<double> *myMin, std::vector<double> *myMax) const;
55
58
59 std::vector<std::string> _dataSetNames;
60 std::map<std::string, std::string> _visNames;
61 std::map<std::string, std::string> _renTypeNames;
62};
63
64#endif // COPYREGIONWIDGET_H
QString includeFile() const
QString name() const
std::map< std::string, std::string > _renTypeNames
CopyRegionWidget(QWidget *parent=0)
virtual void copyRegion()
bool isContainer() const
QPushButton * copyButton
std::vector< std::string > _dataSetNames
void updateCopyCombo()
QComboBox * copyCombo
QString group() const
QString whatsThis() const
virtual void Update(VAPoR::ParamsMgr *paramsMgr, VAPoR::RenderParams *rParams)
std::map< std::string, std::string > _visNames
QString toolTip() const
VAPoR::RenderParams * _rParams
VAPoR::ParamsMgr * _paramsMgr
void _configurePlanarBox(const VAPoR::Box *myBox, std::vector< double > *myMin, std::vector< double > *myMax) const
3D or 2D box with options for orientation angles .
Definition: Box.h:39
A singleton class for managing Params instances.
Definition: ParamsMgr.h:53
A Params subclass for managing parameters used by Renderers.
Definition: RenderParams.h:43
VSection that implements the standardized widget group interface. Use this one when possible.
Definition: VSection.h:46