Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3dparticlecustomshape_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
4
#ifndef QQUICK3DPARTICLECUSTOMSHAPE_H
5
#define QQUICK3DPARTICLECUSTOMSHAPE_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include "
qquick3dparticleabstractshape_p.h
"
19
20
QT_BEGIN_NAMESPACE
21
22
class
Q_QUICK3DPARTICLES_EXPORT
QQuick3DParticleCustomShape
:
public
QQuick3DParticleAbstractShape
23
{
24
Q_OBJECT
25
Q_PROPERTY
(
QUrl
source
READ
source
WRITE setSource NOTIFY sourceChanged)
26
Q_PROPERTY
(
bool
randomizeData READ randomizeData WRITE setRandomizeData NOTIFY randomizeDataChanged)
27
QML_NAMED_ELEMENT
(ParticleCustomShape3D)
28
QML_ADDED_IN_VERSION
(6, 3)
29
public:
30
explicit
QQuick3DParticleCustomShape
(
QObject
*parent =
nullptr
);
31
32
QUrl
source
() const;
33
bool
randomizeData() const;
34
35
// Returns point inside this shape
36
QVector3D
getPosition
(
int
particleIndex) override;
37
38
public
Q_SLOTS
:
39
void
setSource(const
QUrl
&
source
);
40
void
setRandomizeData(
bool
random);
41
42
Q_SIGNALS
:
43
void
sourceChanged();
44
void
randomizeDataChanged();
45
46
private
:
47
void
loadFromSource();
48
void
doRandomizeData();
49
50
QUrl
m_source;
51
bool
m_random =
false
;
52
bool
m_randomizeDirty =
false
;
53
QList
<
QVector3D
> m_positions;
54
};
55
56
QT_END_NAMESPACE
57
58
#endif
// QQUICK3DPARTICLECUSTOMSHAPE_H
QList
Definition
qlist.h:75
QObject
\inmodule QtCore
Definition
qobject.h:103
QQuick3DParticleAbstractShape
Definition
qquick3dparticleabstractshape_p.h:30
QQuick3DParticleCustomShape
Definition
qquick3dparticlecustomshape_p.h:23
QUrl
\inmodule QtCore
Definition
qurl.h:94
QVector3D
The QVector3D class represents a vector or vertex in 3D space.
Definition
qvectornd.h:171
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
source
GLsizei GLsizei GLchar * source
Definition
qopengles2ext.h:952
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:100
qquick3dparticleabstractshape_p.h
getPosition
static QVector3D getPosition(const quint8 *srcVertices, quint32 idx, quint32 vertexStride, quint32 posOffset)
Definition
qquick3dparticlemodelblendparticle.cpp:293
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
explicit
#define explicit
Definition
qxcbconnection.cpp:33
false
return false
Definition
src_corelib_thread_qatomic.cpp:23
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtquick3d
src
quick3dparticles
qquick3dparticlecustomshape_p.h
Generated by
1.10.0