Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquick3dfog_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QQUICK3DFOG_P_H
7
#
define
QQUICK3DFOG_P_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QtQuick3D
/
private
/
qquick3dnode_p
.
h
>
21
#
include
<
QtGui
/
qcolor
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
Q_QUICK3D_EXPORT
QQuick3DFog
:
public
QObject
26
{
27
Q_OBJECT
28
Q_PROPERTY(
bool
enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
29
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
30
Q_PROPERTY(
float
density READ density WRITE setDensity NOTIFY densityChanged)
31
Q_PROPERTY(
bool
depthEnabled READ isDepthEnabled WRITE setDepthEnabled NOTIFY depthEnabledChanged)
32
Q_PROPERTY(
float
depthNear READ depthNear WRITE setDepthNear NOTIFY depthNearChanged)
33
Q_PROPERTY(
float
depthFar READ depthFar WRITE setDepthFar NOTIFY depthFarChanged)
34
Q_PROPERTY(
float
depthCurve READ depthCurve WRITE setDepthCurve NOTIFY depthCurveChanged)
35
Q_PROPERTY(
bool
heightEnabled READ isHeightEnabled WRITE setHeightEnabled NOTIFY heightEnabledChanged)
36
Q_PROPERTY(
float
leastIntenseY READ leastIntenseY WRITE setLeastIntenseY NOTIFY leastIntenseYChanged)
37
Q_PROPERTY(
float
mostIntenseY READ mostIntenseY WRITE setMostIntenseY NOTIFY mostIntenseYChanged)
38
Q_PROPERTY(
float
heightCurve READ heightCurve WRITE setHeightCurve NOTIFY heightCurveChanged)
39
Q_PROPERTY(
bool
transmitEnabled READ isTransmitEnabled WRITE setTransmitEnabled NOTIFY transmitEnabledChanged)
40
Q_PROPERTY(
float
transmitCurve READ transmitCurve WRITE setTransmitCurve NOTIFY transmitCurveChanged)
41
42
QML_NAMED_ELEMENT(Fog)
43
44
public
:
45
bool
isEnabled()
const
;
46
QColor color()
const
;
47
float
density()
const
;
48
bool
isDepthEnabled()
const
;
49
float
depthNear()
const
;
50
float
depthFar()
const
;
51
float
depthCurve()
const
;
52
bool
isHeightEnabled()
const
;
53
float
leastIntenseY()
const
;
54
float
mostIntenseY()
const
;
55
float
heightCurve()
const
;
56
bool
isTransmitEnabled()
const
;
57
float
transmitCurve()
const
;
58
59
public
Q_SLOTS:
60
void
setEnabled(
bool
newEnabled);
61
void
setColor(
const
QColor &newColor);
62
void
setDensity(
float
newDensity);
63
void
setDepthEnabled(
bool
newDepthEnabled);
64
void
setDepthNear(
float
newDepthNear);
65
void
setDepthFar(
float
newDepthFar);
66
void
setDepthCurve(
float
newDepthCurve);
67
void
setHeightEnabled(
bool
newHeightEnabled);
68
void
setLeastIntenseY(
float
newleastIntenseY);
69
void
setMostIntenseY(
float
newmostIntenseY);
70
void
setHeightCurve(
float
newHeightCurve);
71
void
setTransmitEnabled(
bool
newTransmitEnabled);
72
void
setTransmitCurve(
float
newTransmitCurve);
73
74
Q_SIGNALS:
75
void
changed();
76
void
enabledChanged();
77
void
colorChanged();
78
void
densityChanged();
79
void
depthEnabledChanged();
80
void
depthNearChanged();
81
void
depthFarChanged();
82
void
depthCurveChanged();
83
void
heightEnabledChanged();
84
void
leastIntenseYChanged();
85
void
mostIntenseYChanged();
86
void
heightCurveChanged();
87
void
transmitEnabledChanged();
88
void
transmitCurveChanged();
89
90
private
:
91
bool
m_enabled =
false
;
92
QColor m_color = QColor::fromRgbF(0.5f, 0.6f, 0.7f, 1.0f);
93
float
m_density = 1.0f;
94
bool
m_depthEnabled =
false
;
95
float
m_depthNear = 10.0f;
96
float
m_depthFar = 1000.0f;
97
float
m_depthCurve = 1.0f;
98
bool
m_heightEnabled =
false
;
99
float
m_leastIntenseY = 10.0f;
100
float
m_mostIntenseY = 0.0f;
101
float
m_heightCurve = 1.0f;
102
bool
m_transmitEnabled =
false
;
103
float
m_transmitCurve = 1.0f;
104
};
105
106
QT_END_NAMESPACE
107
108
#
endif
// QQUICK3DFOG_P_H
QQuick3DFog
Definition
qquick3dfog_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtquick3d
src
quick3d
qquick3dfog_p.h
Generated on
for Qt by
1.18.0