![]() |
Qt 6.x
The Qt SDK
|
#include <qquick3dparticle_p.h>
Public Types | |
enum | FadeType { FadeNone , FadeOpacity , FadeScale } |
enum | AlignMode { AlignNone , AlignTowardsTarget , AlignTowardsStartVelocity } |
enum | SortMode { SortNone , SortNewest , SortOldest , SortDistance } |
Public Slots | |
void | setSystem (QQuick3DParticleSystem *system) |
void | setMaxAmount (int maxAmount) |
void | setColor (QColor color) |
void | setColorVariation (QVector4D colorVariation) |
void | setUnifiedColorVariation (bool unified) |
void | setFadeInEffect (QQuick3DParticle::FadeType fadeInEffect) |
void | setFadeOutEffect (QQuick3DParticle::FadeType fadeOutEffect) |
void | setFadeInDuration (int fadeInDuration) |
void | setFadeOutDuration (int fadeOutDuration) |
void | setAlignMode (QQuick3DParticle::AlignMode alignMode) |
void | setAlignTargetPosition (const QVector3D &alignPosition) |
void | setHasTransparency (bool transparency) |
void | setSortMode (QQuick3DParticle::SortMode sortMode) |
![]() | |
void | update () |
void | setParentItem (QQuick3DObject *parentItem) |
![]() | |
void | deleteLater () |
\threadsafe | |
Signals | |
void | systemChanged () |
void | maxAmountChanged () |
void | colorChanged () |
void | colorVariationChanged () |
void | unifiedColorVariationChanged () |
void | fadeInEffectChanged () |
void | fadeOutEffectChanged () |
void | fadeInDurationChanged () |
void | fadeOutDurationChanged () |
void | alignModeChanged () |
void | alignTargetPositionChanged () |
void | hasTransparencyChanged () |
void | sortModeChanged () |
![]() | |
void | parentChanged () |
void | childrenChanged () |
void | stateChanged () |
![]() | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
Public Member Functions | |
QQuick3DParticle (QQuick3DObject *parent=nullptr) | |
\qmltype Particle3D \inherits Object3D \inqmlmodule QtQuick3D.Particles3D | |
~QQuick3DParticle () override | |
QQuick3DParticleSystem * | system () const |
int | maxAmount () const |
\qmlproperty int Particle3D::maxAmount | |
QColor | color () const |
\qmlproperty color Particle3D::color | |
QVector4D | colorVariation () const |
\qmlproperty vector4d Particle3D::colorVariation | |
bool | unifiedColorVariation () const |
\qmlproperty bool Particle3D::unifiedColorVariation | |
FadeType | fadeInEffect () const |
\qmlproperty enumeration Particle3D::FadeType | |
FadeType | fadeOutEffect () const |
\qmlproperty FadeType Particle3D::fadeOutEffect | |
int | fadeInDuration () const |
\qmlproperty int Particle3D::fadeInDuration | |
int | fadeOutDuration () const |
\qmlproperty int Particle3D::fadeOutDuration | |
AlignMode | alignMode () const |
\qmlproperty enumeration Particle3D::AlignMode | |
QVector3D | alignTargetPosition () const |
\qmlproperty vector3d Particle3D::alignTargetPosition | |
bool | hasTransparency () const |
\qmlproperty bool Particle3D::hasTransparency | |
SortMode | sortMode () const |
\qmlproperty enumeration Particle3D::SortMode | |
float | opacity () const |
void | resetColor () |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
template<typename T > | |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
![]() | |
QQmlParserStatus () | |
virtual | ~QQmlParserStatus () |
virtual void | classBegin ()=0 |
Invoked after class creation, but before any properties have been set. | |
virtual void | componentComplete ()=0 |
Invoked after the root component that caused this instantiation has completed construction. | |
Protected Member Functions | |
void | componentComplete () override |
Invoked after the root component that caused this instantiation has completed construction. | |
QQuick3DParticle (QQuick3DObjectPrivate &dd, QQuick3DNode *parent=nullptr) | |
virtual void | reset () |
virtual void | doSetMaxAmount (int amount) |
void | updateBurstIndex (int amount) |
virtual int | nextCurrentIndex (const QQuick3DParticleEmitter *emitter) |
QSSGRenderGraphObject * | updateSpatialNode (QSSGRenderGraphObject *node) override |
virtual void | setDepthBias (float bias) |
float | depthBias () const |
![]() | |
virtual QSSGRenderGraphObject * | updateSpatialNode (QSSGRenderGraphObject *node) |
virtual void | markAllDirty () |
virtual void | itemChange (ItemChange, const ItemChangeData &) |
QQuick3DObject (QQuick3DObjectPrivate &dd, QQuick3DObject *parent=nullptr) | |
void | classBegin () override |
Invoked after class creation, but before any properties have been set. | |
void | componentComplete () override |
Invoked after the root component that caused this instantiation has completed construction. | |
bool | isComponentComplete () const |
virtual void | preSync () |
![]() | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Protected Attributes | |
QList< QQuick3DParticleData > | m_particleData |
QQuick3DParticleSpriteSequence * | m_spriteSequence = nullptr |
int | m_maxAmount = 100 |
int | m_currentIndex = -1 |
int | m_lastBurstIndex = 0 |
AlignMode | m_alignMode = AlignNone |
QVector3D | m_alignTarget |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
Properties | |
int | maxAmount |
QColor | color |
QVector4D | colorVariation |
bool | unifiedColorVariation |
FadeType | fadeInEffect |
FadeType | fadeOutEffect |
int | fadeInDuration |
int | fadeOutDuration |
AlignMode | alignMode |
QVector3D | alignTargetPosition |
bool | hasTransparency |
SortMode | sortMode |
![]() | |
QQuick3DObject * | parent |
\qmlproperty Object3D QtQuick3D::Object3D::parent This property holds the parent of the Object3D in a 3D scene. | |
![]() | |
QString | objectName |
the name of this object | |
Friends | |
class | QQuick3DParticleSystem |
class | QQuick3DParticleEmitter |
class | QQuick3DParticleSpriteSequence |
Additional Inherited Members | |
![]() | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
![]() | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
Definition at line 28 of file qquick3dparticle_p.h.
Enumerator | |
---|---|
AlignNone | |
AlignTowardsTarget | |
AlignTowardsStartVelocity |
Definition at line 60 of file qquick3dparticle_p.h.
Enumerator | |
---|---|
FadeNone | |
FadeOpacity | |
FadeScale |
Definition at line 52 of file qquick3dparticle_p.h.
Enumerator | |
---|---|
SortNone | |
SortNewest | |
SortOldest | |
SortDistance |
Definition at line 68 of file qquick3dparticle_p.h.
QT_BEGIN_NAMESPACE QQuick3DParticle::QQuick3DParticle | ( | QQuick3DObject * | parent = nullptr | ) |
\qmltype Particle3D \inherits Object3D \inqmlmodule QtQuick3D.Particles3D
Abstract logical particle.
This element defines the common properties of the logical particles. Particle3D is an abstract base class of particles, use \l ModelParticle3D or \l SpriteParticle3D instead.
false
for possible performance gains. Definition at line 24 of file qquick3dparticle.cpp.
|
override |
Definition at line 39 of file qquick3dparticle.cpp.
References QQuick3DParticleSystem::unRegisterParticle().
|
protected |
Definition at line 31 of file qquick3dparticle.cpp.
QQuick3DParticle::AlignMode QQuick3DParticle::alignMode | ( | ) | const |
\qmlproperty enumeration Particle3D::AlignMode
Defines the type of the alignment.
\value Particle3D.AlignNone No alignment. Particles rotation can be defined with \l {ParticleEmitter3D::particleRotation}{particleRotation}. \value Particle3D.AlignTowardsTarget Align the particles towards \l alignTargetPosition direction. \value Particle3D.AlignTowardsStartVelocity Align the particles towards their starting \l {ParticleEmitter3D::velocity}{velocity} direction.
\qmlproperty AlignMode Particle3D::alignMode
This property defines the align mode used for the particles. Particle alignment means the direction that particles face.
true
, alignMode does not have an effect.The default value is Particle3D.AlignNone
.
Definition at line 343 of file qquick3dparticle.cpp.
References m_alignMode.
|
signal |
QVector3D QQuick3DParticle::alignTargetPosition | ( | ) | const |
\qmlproperty vector3d Particle3D::alignTargetPosition
This property defines the position particles are aligned to. This property has effect only when the \l alignMode is set to Particle3D.AlignTowardsTarget
.
Definition at line 357 of file qquick3dparticle.cpp.
References m_alignTarget.
|
signal |
QColor QQuick3DParticle::color | ( | ) | const |
\qmlproperty color Particle3D::color
This property defines the base color that is used for colorizing the particles.
The default value is "#FFFFFF"
(white).
Definition at line 103 of file qquick3dparticle.cpp.
|
signal |
QVector4D QQuick3DParticle::colorVariation | ( | ) | const |
\qmlproperty vector4d Particle3D::colorVariation
This property defines the color variation that is used for colorizing the particles. The values are in RGBA order and each value should be between 0.0 (no variation) and 1.0 (full variation).
For example, to create particles which will have translucent red colors between #ff0000
and #e50000
, with 40% to 60% opacity:
\qml ModelParticle3D { ... color: "#7fff0000" colorVariation: Qt.vector4d(0.1, 0.0, 0.0, 0.2) } \endqml
The default value is (0, 0, 0, 0) (no variation).
Definition at line 153 of file qquick3dparticle.cpp.
|
signal |
|
overrideprotectedvirtual |
Invoked after the root component that caused this instantiation has completed construction.
At this point all static values and binding values have been assigned to the class.
Reimplemented from QQuick3DObject.
Reimplemented in QQuick3DParticleModelBlendParticle, QQuick3DParticleModelParticle, and QQuick3DParticleSpriteParticle.
Definition at line 455 of file qquick3dparticle.cpp.
References QQuick3DObject::componentComplete(), maxAmountChanged(), and Q_EMIT.
Referenced by QQuick3DParticleModelParticle::componentComplete(), and QQuick3DParticleSpriteParticle::componentComplete().
|
inlineprotected |
Definition at line 152 of file qquick3dparticle_p.h.
|
protectedvirtual |
Reimplemented in QQuick3DParticleModelBlendParticle.
Definition at line 90 of file qquick3dparticle.cpp.
References m_maxAmount, maxAmountChanged(), and Q_EMIT.
Referenced by QQuick3DParticleModelBlendParticle::QQuick3DParticleModelBlendParticle(), and setMaxAmount().
int QQuick3DParticle::fadeInDuration | ( | ) | const |
\qmlproperty int Particle3D::fadeInDuration
This property defines the duration in milliseconds for the fading in effect.
lifeSpan
is 3000, fadeInDuration
is 500 and fadeOutDuration
is 500, the fully visible time of the particle is 2000ms.The default value is 250
.
Definition at line 279 of file qquick3dparticle.cpp.
|
signal |
QQuick3DParticle::FadeType QQuick3DParticle::fadeInEffect | ( | ) | const |
\qmlproperty enumeration Particle3D::FadeType
Defines the type of the fading effect.
\value Particle3D.FadeNone No fading. \value Particle3D.FadeOpacity Fade the particle opacity from/to 0.0. \value Particle3D.FadeScale Fade the particle scale from/to 0.0.
\qmlproperty FadeType Particle3D::fadeInEffect
This property defines the fading effect used when the particles appear.
The default value is Particle3D.FadeOpacity
.
Definition at line 227 of file qquick3dparticle.cpp.
|
signal |
int QQuick3DParticle::fadeOutDuration | ( | ) | const |
\qmlproperty int Particle3D::fadeOutDuration
This property defines the duration in milliseconds for the fading out effect.
The default value is 250
.
Definition at line 302 of file qquick3dparticle.cpp.
|
signal |
QQuick3DParticle::FadeType QQuick3DParticle::fadeOutEffect | ( | ) | const |
\qmlproperty FadeType Particle3D::fadeOutEffect
This property defines the fading effect used when the particles reach their \l {ParticleEmitter3D::lifeSpan}{lifeSpan} and disappear.
The default value is Particle3D.FadeOpacity
.
Definition at line 251 of file qquick3dparticle.cpp.
|
signal |
bool QQuick3DParticle::hasTransparency | ( | ) | const |
\qmlproperty bool Particle3D::hasTransparency
This property defines if the particle has any transparency and should be blended with the background. Usually this should be true, like when the particle color doesn't have full alpha, texture contains semi-transparent pixels or particles opacity is faded in or out. Setting this to false can be an optimization in specific cases.
The default value is true
.
Definition at line 375 of file qquick3dparticle.cpp.
|
signal |
int QQuick3DParticle::maxAmount | ( | ) | const |
\qmlproperty int Particle3D::maxAmount
This property defines the maximum amount of particles that can exist at the same time. You can use \l {ParticleSystem3DLogging::particlesUsed}{particlesUsed} for debugging how efficiently the allocated particles are used. If the maxAmount is too small, particles are reused before they reach the end of their \l {ParticleEmitter3D::lifeSpan}{lifeSpan}. If the maxAmount is too big, unnecessary memory is allocated for the particles.
The default value is 100
.
Definition at line 77 of file qquick3dparticle.cpp.
References m_maxAmount.
|
signal |
Referenced by QQuick3DParticleModelParticle::QQuick3DParticleModelParticle(), QQuick3DParticleSpriteParticle::QQuick3DParticleSpriteParticle(), componentComplete(), and doSetMaxAmount().
|
protectedvirtual |
Reimplemented in QQuick3DParticleLineParticle, QQuick3DParticleModelBlendParticle, and QQuick3DParticleSpriteParticle.
Definition at line 449 of file qquick3dparticle.cpp.
References m_currentIndex, m_lastBurstIndex, and m_maxAmount.
Referenced by QQuick3DParticleEmitter::emitParticle(), QQuick3DParticleModelBlendParticle::nextCurrentIndex(), and QQuick3DParticleSpriteParticle::nextCurrentIndex().
float QQuick3DParticle::opacity | ( | ) | const |
Definition at line 108 of file qquick3dparticle.cpp.
References QColor::alphaF().
|
protectedvirtual |
Reimplemented in QQuick3DParticleLineParticle, QQuick3DParticleModelBlendParticle, and QQuick3DParticleSpriteParticle.
Definition at line 462 of file qquick3dparticle.cpp.
References QList< T >::fill(), m_currentIndex, m_lastBurstIndex, and m_particleData.
Referenced by QQuick3DParticleEmitter::generateEmitBursts(), QQuick3DParticleModelBlendParticle::reset(), and QQuick3DParticleSpriteParticle::reset().
void QQuick3DParticle::resetColor | ( | ) |
Definition at line 125 of file qquick3dparticle.cpp.
|
slot |
Definition at line 389 of file qquick3dparticle.cpp.
References alignMode, alignModeChanged(), m_alignMode, and Q_EMIT.
Definition at line 398 of file qquick3dparticle.cpp.
References alignTargetPositionChanged(), m_alignTarget, and Q_EMIT.
Definition at line 114 of file qquick3dparticle.cpp.
References color, colorChanged(), and Q_EMIT.
Definition at line 158 of file qquick3dparticle.cpp.
References colorVariation, colorVariationChanged(), and Q_EMIT.
|
inlineprotectedvirtual |
Reimplemented in QQuick3DParticleModelParticle, and QQuick3DParticleSpriteParticle.
Definition at line 148 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleModelParticle::setDepthBias(), QQuick3DParticleSpriteParticle::setDepthBias(), and QQuick3DParticleEmitter::setParticle().
|
slot |
Definition at line 284 of file qquick3dparticle.cpp.
References fadeInDuration, fadeInDurationChanged(), and Q_EMIT.
|
slot |
Definition at line 232 of file qquick3dparticle.cpp.
References fadeInEffect, fadeInEffectChanged(), and Q_EMIT.
Referenced by QQuick3DParticleModelBlendParticle::QQuick3DParticleModelBlendParticle().
|
slot |
Definition at line 307 of file qquick3dparticle.cpp.
References fadeOutDuration, fadeOutDurationChanged(), and Q_EMIT.
|
slot |
Definition at line 256 of file qquick3dparticle.cpp.
References fadeOutEffect, fadeOutEffectChanged(), and Q_EMIT.
Referenced by QQuick3DParticleModelBlendParticle::QQuick3DParticleModelBlendParticle().
|
slot |
Definition at line 380 of file qquick3dparticle.cpp.
References hasTransparencyChanged(), and Q_EMIT.
|
slot |
Definition at line 82 of file qquick3dparticle.cpp.
References doSetMaxAmount(), m_maxAmount, and maxAmount.
|
slot |
Definition at line 436 of file qquick3dparticle.cpp.
References Q_EMIT, and sortModeChanged().
|
slot |
Definition at line 50 of file qquick3dparticle.cpp.
References Q_EMIT, QQuick3DParticleSystem::registerParticle(), system(), systemChanged(), and QQuick3DParticleSystem::unRegisterParticle().
Referenced by QQuick3DParticleModelBlendParticle::componentComplete(), QQuick3DParticleModelParticle::componentComplete(), QQuick3DParticleSpriteParticle::componentComplete(), QQuick3DParticleEmitter::setParticle(), and QQuick3DParticleEmitter::setSystem().
|
slot |
Definition at line 196 of file qquick3dparticle.cpp.
References Q_EMIT, and unifiedColorVariationChanged().
QQuick3DParticle::SortMode QQuick3DParticle::sortMode | ( | ) | const |
\qmlproperty enumeration Particle3D::SortMode
Defines the sorting mode of the particle. The sorting mode determines the order in which the particles are drawn.
\value Particle3D.SortNone No sorting. \value Particle3D.SortNewest Sort based on particle lifetime, newest first. \value Particle3D.SortOldest Sort based on particle lifetime, oldest first. \value Particle3D.SortDistance Sort based on distance to the camera, farthest first.
\qmlproperty SortMode Particle3D::sortMode
This property defines the sort mode used for the particles.
The default value is Particle3D.SortNone
.
Definition at line 431 of file qquick3dparticle.cpp.
|
signal |
Referenced by QQuick3DParticleModelParticle::QQuick3DParticleModelParticle(), QQuick3DParticleSpriteParticle::QQuick3DParticleSpriteParticle(), and setSortMode().
QQuick3DParticleSystem * QQuick3DParticle::system | ( | ) | const |
Definition at line 45 of file qquick3dparticle.cpp.
Referenced by QQuick3DParticleSpriteParticle::QQuick3DParticleSpriteParticle(), QQuick3DParticleModelBlendParticle::componentComplete(), QQuick3DParticleModelParticle::componentComplete(), QQuick3DParticleSpriteParticle::componentComplete(), QQuick3DParticleSpriteParticle::handleSystemChanged(), QQuick3DParticleLineParticle::handleSystemChanged(), QQuick3DParticleLineParticle::nextCurrentIndex(), QQuick3DParticleSpriteParticle::nextCurrentIndex(), QQuick3DParticleModelBlendParticle::randomIndex(), QQuick3DParticleEmitter::setParticle(), setSystem(), and QQuick3DParticleModelBlendParticle::updateSpatialNode().
|
signal |
Referenced by QQuick3DParticleSpriteParticle::QQuick3DParticleSpriteParticle(), and setSystem().
bool QQuick3DParticle::unifiedColorVariation | ( | ) | const |
\qmlproperty bool Particle3D::unifiedColorVariation
This property defines if the \l colorVariation should be applied uniformly for all the color channels. This means that all variations are applied with the same random amount.
For example, to create particles which will have yellow colors between #ffff00
and #7f7f00
, so that the values of R
and G
color channels are always the same:
\qml ModelParticle3D { ... color: "#ffff00" colorVariation: Qt.vector4d(0.5, 0.5, 0.0, 0.0) unifiedColorVariation: true } \endqml
The default value is false
.
Definition at line 191 of file qquick3dparticle.cpp.
|
signal |
|
protected |
Definition at line 444 of file qquick3dparticle.cpp.
References m_lastBurstIndex.
Referenced by QQuick3DParticleEmitter::generateEmitBursts().
|
inlineoverrideprotectedvirtual |
Reimplemented from QQuick3DObject.
Reimplemented in QQuick3DParticleModelBlendParticle.
Definition at line 135 of file qquick3dparticle_p.h.
|
friend |
Definition at line 159 of file qquick3dparticle_p.h.
|
friend |
Definition at line 160 of file qquick3dparticle_p.h.
|
friend |
Definition at line 158 of file qquick3dparticle_p.h.
Definition at line 146 of file qquick3dparticle_p.h.
Referenced by alignMode(), and setAlignMode().
|
protected |
Definition at line 147 of file qquick3dparticle_p.h.
Referenced by alignTargetPosition(), and setAlignTargetPosition().
|
protected |
Definition at line 144 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleModelBlendParticle::lastParticle(), nextCurrentIndex(), and reset().
|
protected |
Definition at line 145 of file qquick3dparticle_p.h.
Referenced by nextCurrentIndex(), reset(), and updateBurstIndex().
|
protected |
Definition at line 143 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleModelParticle::QQuick3DParticleModelParticle(), QQuick3DParticleSpriteParticle::QQuick3DParticleSpriteParticle(), doSetMaxAmount(), QQuick3DParticleModelBlendParticle::lastParticle(), maxAmount(), nextCurrentIndex(), QQuick3DParticleModelBlendParticle::randomIndex(), and setMaxAmount().
|
protected |
Definition at line 140 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleEmitter::emitActivationNodeParticles(), QQuick3DParticleEmitter::emitParticle(), QQuick3DParticleSpriteParticle::handleMaxAmountChanged(), and reset().
|
protected |
Definition at line 141 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleSpriteParticle::~QQuick3DParticleSpriteParticle(), QQuick3DParticleEmitter::emitParticle(), QQuick3DParticleSpriteParticle::setSpriteSequence(), QQuick3DParticleSpriteParticle::spriteSequence(), and QQuick3DParticleSpriteParticle::updateParticleNode().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by setAlignMode().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleEmitter::emitParticle(), setColor(), QQuick3DParticleModelBlendParticle::setParticleData(), and QQuick3DParticleSpriteParticle::setParticleData().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleEmitter::emitParticle(), and setColorVariation().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by setFadeInDuration().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by setFadeInEffect(), and QQuick3DParticleModelBlendParticle::updateSpatialNode().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by setFadeOutDuration().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by setFadeOutEffect(), and QQuick3DParticleModelBlendParticle::updateSpatialNode().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleSpriteParticle::updateParticleNode().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleEmitter::emitActivationNodeParticles(), QQuick3DParticleEmitter::emitParticles(), QQuick3DParticleEmitter::emitParticlesBurst(), QQuick3DParticleTrailEmitter::emitTrailParticles(), and setMaxAmount().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleModelParticle::QQuick3DParticleModelParticle(), and QQuick3DParticleSpriteParticle::updateParticleNode().
|
readwrite |
Definition at line 176 of file qquick3dparticle_p.h.
Referenced by QQuick3DParticleEmitter::emitParticle().