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