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
qquick3dparticlevectordirection_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
QQUICK3DPARTICLEVECTORDIRECTION_H
7
#
define
QQUICK3DPARTICLEVECTORDIRECTION_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
<
QVector3D
>
21
#
include
<
QtQuick3DParticles
/
private
/
qquick3dparticledirection_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
Q_QUICK3DPARTICLES_EXPORT
QQuick3DParticleVectorDirection
:
public
QQuick3DParticleDirection
26
{
27
Q_OBJECT
28
Q_PROPERTY(QVector3D direction READ direction WRITE setDirection NOTIFY directionChanged)
29
Q_PROPERTY(QVector3D directionVariation READ directionVariation WRITE setDirectionVariation NOTIFY directionVariationChanged)
30
Q_PROPERTY(
bool
normalized READ normalized WRITE setNormalized NOTIFY normalizedChanged)
31
QML_NAMED_ELEMENT(VectorDirection3D)
32
QML_ADDED_IN_VERSION(6, 2)
33
34
public
:
35
QQuick3DParticleVectorDirection(QObject *parent =
nullptr
);
36
37
QVector3D direction()
const
;
38
QVector3D directionVariation()
const
;
39
bool
normalized()
const
;
40
41
public
Q_SLOTS:
42
void
setDirection(
const
QVector3D &direction);
43
void
setDirectionVariation(
const
QVector3D &directionVariation);
44
void
setNormalized(
bool
normalized);
45
46
Q_SIGNALS:
47
void
directionChanged();
48
void
directionVariationChanged();
49
void
normalizedChanged();
50
51
private
:
52
QVector3D sample(
const
QQuick3DParticleData &d) override;
53
QVector3D m_direction = {0.0f, 100.0f, 0.0f};
54
QVector3D m_directionVariation;
55
bool
m_normalized =
false
;
56
};
57
58
QT_END_NAMESPACE
59
60
#
endif
// QQUICK3DPARTICLEVECTORDIRECTION_H
QQuick3DParticleVectorDirection
Definition
qquick3dparticlevectordirection_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtquick3d
src
quick3dparticles
qquick3dparticlevectordirection_p.h
Generated on
for Qt by
1.18.0