VAPOR3 3.9.4
TransformTable.h
Go to the documentation of this file.
1#ifndef TRANSFORMTABLE_H
2#define TRANSFORMTABLE_H
3
4#include <QObject>
5#include "vapor/MyBase.h"
7#include "ui_TransformTableGUI.h"
8#include "VaporTable.h"
9
10QT_USE_NAMESPACE
11
12namespace VAPoR {
13class Transform;
14}
15
17
25
26class TransformTable : public QWidget, public Ui_TransformTableGUI {
27 Q_OBJECT
28
29public:
30 TransformTable(QWidget *parent);
31
32 virtual ~TransformTable(){};
33
34 virtual void Update(const std::map<string, VAPoR::Transform *> &transforms);
35 virtual void Update(VAPoR::Transform *transform)
36 {
37 map<string, VAPoR::Transform *> tMap;
38 tMap[" "] = transform;
39 Update(tMap);
40 }
41
42protected slots:
43 void ScaleChanged(int row, int col);
44 void TranslationChanged(int row, int col);
45 void RotationChanged(int row, int col);
46 void OriginChanged(int row, int col);
47
48private:
49 VaporTable *_scaleTable;
50 VaporTable *_translationTable;
51 VaporTable *_rotationTable;
52 VaporTable *_originTable;
53
54 std::vector<std::string> _horizontalHeaders;
55 std::vector<std::string> _verticalHeaders;
56
57 map<string, VAPoR::Transform *> _transforms;
58
59 void UpdateScales();
60 void UpdateTranslations();
61 void UpdateRotations();
62 void UpdateOrigins();
63};
64
65#endif // TRANSFORMTABLE_H
A pure virtual class specifying the common properties of all the renderer parameter tabs in the VAPOR...
A reusable promoted widget for transforming different data sets.
void ScaleChanged(int row, int col)
TransformTable(QWidget *parent)
virtual void Update(VAPoR::Transform *transform)
void TranslationChanged(int row, int col)
void RotationChanged(int row, int col)
void OriginChanged(int row, int col)
virtual ~TransformTable()
virtual void Update(const std::map< string, VAPoR::Transform * > &transforms)
class that indicates location and direction of view
Definition: Transform.h:22