GlobeEngine
TransferFunctionWidget.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_TransferFunctionWidget_h
10 #define GlobeEngine_TransferFunctionWidget_h
11 
12 #include "OpenGL_Includes.h"
13 #include "TransferFunctionEditor.h"
14 
15 #include <QDebug>
16 #include <QComboBox>
17 
18 namespace geQT {
19  class TransferFunctionWidget : public QGroupBox
20  {
21  Q_OBJECT
22 
23  public:
24  TransferFunctionWidget(QWidget *parent = 0);
26 
27  void setHistogramData(std::vector<std::vector<std::vector<long>>> histograms, std::vector<std::vector<float>> minimumHistValue, std::vector<std::vector<float>> maximumHistValue);
28 
29  unsigned char* getTransferFunctionData();
30  //std::vector<ge::Color4ub> getTransferFunctionColors();
31  std::vector<float> getTransferFunctionHeights();
32 
33  void initFromFile(std::string _file);
34 
35  void initialize(int _numberOfAttributes);
36  void setCurrent(int _currentAttribute, int _currentTimestep, int _currentMarching) {
37  this->transferFunctionEditor->setCurrent(_currentAttribute, _currentTimestep, _currentMarching);
38  }
39 
40  signals:
42 
43  private slots:
44  void update();
45 
46  private:
47  TransferFunctionEditor* transferFunctionEditor;
48 
49  };
50 }
51 #endif // TRANSFERFUNCTIONWIDGETTWO_H
void setCurrent(int _currentAttribute, int _currentTimestep, int _currentMarching)
Definition: TransferFunctionWidget.h:36
Definition: TransferFunctionWidget.h:19
unsigned char * getTransferFunctionData()
Definition: TransferFunctionWidget.cpp:104
Definition: TransferFunctionEditor.h:40
void initialize(int _numberOfAttributes)
Definition: TransferFunctionWidget.cpp:90
void setHistogramData(std::vector< std::vector< std::vector< long >>> histograms, std::vector< std::vector< float >> minimumHistValue, std::vector< std::vector< float >> maximumHistValue)
Definition: TransferFunctionWidget.cpp:99
void initFromFile(std::string _file)
Definition: TransferFunctionWidget.cpp:86
void setCurrent(int _currentAttribute, int _currentTimestep, int _currentMarching)
Definition: TransferFunctionEditor.h:58
Definition: ClickableQLabel.h:8
std::vector< float > getTransferFunctionHeights()
Definition: TransferFunctionWidget.cpp:114
~TransferFunctionWidget()
Definition: TransferFunctionWidget.h:25
TransferFunctionWidget(QWidget *parent=0)
Definition: TransferFunctionWidget.cpp:6