VAPOR3 3.9.4
TFOpacityInfoWidget.h
Go to the documentation of this file.
1#pragma once
2
3#include "TFInfoWidget.h"
4#include <VDoubleLineEdit.h>
5
6namespace VAPoR {
7class RenderParams;
8}
9
11 Q_OBJECT
12
13public:
14 TFOpacityInfoWidget(const std::string &variableNameTag);
15
16public:
17 void SetOpacity(float opacity);
18
19protected:
21 float getOpacityFromEdit() const;
22
24
25private:
26 VDoubleLineEdit *_opacityEdit;
27
28 float _opacity;
29
30signals:
31 void ControlPointChanged(float value, float opacity);
32
33public slots:
34 void SetControlPoint(float value, float opacity);
36
37private slots:
38 void opacityEditChanged();
39};
TFOpacityInfoWidget(const std::string &variableNameTag)
float getOpacityFromEdit() const
void ControlPointChanged(float value, float opacity)
void SetOpacity(float opacity)
void SetControlPoint(float value, float opacity)
A wrapper for a QLineEdit that handles user input of type double, and provides Vapor's standard sette...