Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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:74
QObject
\inmodule QtCore
Definition
qobject.h:90
QQuick3DParticleAbstractShape
Definition
qquick3dparticleabstractshape_p.h:30
QQuick3DParticleAbstractShape::getPosition
virtual QVector3D getPosition(int particleIndex)=0
QQuick3DParticleCustomShape
Definition
qquick3dparticlecustomshape_p.h:23
QQuick3DParticleCustomShape::sourceChanged
void sourceChanged()
QQuick3DParticleCustomShape::randomizeDataChanged
void randomizeDataChanged()
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:1545
source
GLsizei GLsizei GLchar * source
Definition
qopengles2ext.h:952
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:52
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:86
qquick3dparticleabstractshape_p.h
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtquick3d
src
quick3dparticles
qquick3dparticlecustomshape_p.h
Generated by
1.9.7