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>.
|
#include <qquick3dparticlelineparticle_p.h>
Public Types | |
enum | TexcoordMode { Absolute , Relative , Fill } |
Public Types inherited from QQuick3DParticleSpriteParticle | |
enum | BlendMode { SourceOver = 0 , Screen , Multiply } |
enum | FeatureLevel { Simple = 0 , Mapped , Animated , SimpleVLight , MappedVLight , AnimatedVLight } |
Public Types inherited from QQuick3DParticle | |
enum | FadeType { FadeNone , FadeOpacity , FadeScale } |
enum | AlignMode { AlignNone , AlignTowardsTarget , AlignTowardsStartVelocity } |
enum | SortMode { SortNone , SortNewest , SortOldest , SortDistance } |
Public Member Functions | |
QQuick3DParticleLineParticle (QQuick3DNode *parent=nullptr) | |
\qmltype LineParticle3D \inherits SpriteParticle3D \inqmlmodule QtQuick3D.Particles3D | |
~QQuick3DParticleLineParticle () override | |
int | segmentCount () const |
\qmlproperty int LineParticle3D::segmentCount | |
float | alphaFade () const |
\qmlproperty real LineParticle3D::alphaFade | |
float | scaleMultiplier () const |
\qmlproperty real LineParticle3D::scaleMultiplier | |
float | texcoordMultiplier () const |
\qmlproperty real LineParticle3D::texcoordMultiplier | |
float | length () const |
\qmlproperty real LineParticle3D::length | |
float | lengthVariation () const |
\qmlproperty real LineParticle3D::lengthVariation | |
float | lengthDeltaMin () const |
\qmlproperty real LineParticle3D::lengthDeltaMin | |
int | eolFadeOutDuration () const |
\qmlproperty int LineParticle3D::eolFadeOutDuration | |
TexcoordMode | texcoordMode () const |
\qmlproperty enumeration LineParticle3D::TexcoordMode | |
Public Member Functions inherited from QQuick3DParticleSpriteParticle | |
QQuick3DParticleSpriteParticle (QQuick3DNode *parent=nullptr) | |
\qmltype SpriteParticle3D \inherits Particle3D \inqmlmodule QtQuick3D.Particles3D | |
~QQuick3DParticleSpriteParticle () override | |
BlendMode | blendMode () const |
\qmlproperty enumeration SpriteParticle3D::BlendMode | |
QQuick3DTexture * | sprite () const |
\qmlproperty Texture SpriteParticle3D::sprite | |
QQuick3DParticleSpriteSequence * | spriteSequence () const |
\qmlproperty SpriteSequence3D SpriteParticle3D::spriteSequence | |
bool | billboard () const |
\qmlproperty bool SpriteParticle3D::billboard | |
float | particleScale () const |
\qmlproperty real SpriteParticle3D::particleScale | |
QQuick3DTexture * | colorTable () const |
\qmlproperty Texture SpriteParticle3D::colorTable | |
Q_REVISION (6, 3) QQmlListProperty< QQuick3DAbstractLight > lights() | |
float | offsetX () const |
\qmlproperty float SpriteParticle3D::offsetX | |
float | offsetY () const |
\qmlproperty float SpriteParticle3D::offsetY | |
Q_REVISION (6, 4) bool castsReflections() const | |
PerEmitterData & | perEmitterData (const QQuick3DNode *updateNode) |
PerEmitterData & | perEmitterData (int emitterIndex) |
QSSGRenderGraphObject * | updateParticleNode (const ParticleUpdateNode *updateNode, QSSGRenderGraphObject *node) |
Public Member Functions inherited from QQuick3DParticle | |
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 () |
Public Member Functions inherited from QObject | |
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. | |
bool | moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL) |
Changes the thread affinity for this object and its children and returns true on success. | |
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::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
void | killTimer (Qt::TimerId id) |
template<typename T > | |
T | findChild (QAnyStringView aName, 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 (QAnyStringView 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 > | |
T | findChild (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. | |
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 . | |
Public Member Functions inherited from QQmlParserStatus | |
QQmlParserStatus () | |
virtual | ~QQmlParserStatus () |
Private Member Functions | |
void | handleMaxAmountChanged (int amount) override |
void | handleSystemChanged (QQuick3DParticleSystem *system) override |
void | reset () override |
void | commitParticles (float time) override |
int | nextCurrentIndex (const QQuick3DParticleEmitter *emitter) override |
void | setParticleData (int particleIndex, const QVector3D &position, const QVector3D &rotation, const QVector4D &color, float size, float age, float animationFrame) override |
void | resetParticleData (int particleIndex) override |
Friends | |
class | QQuick3DParticleSystem |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
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) |
Protected Member Functions inherited from QQuick3DParticleSpriteParticle | |
void | itemChange (ItemChange, const ItemChangeData &) override |
void | reset () override |
void | componentComplete () override |
Invoked after the root component that caused this instantiation has completed construction. | |
int | nextCurrentIndex (const QQuick3DParticleEmitter *emitter) override |
void | setDepthBias (float bias) override |
void | updateNodes () |
void | deleteNodes () |
void | markNodesDirty () |
Protected Member Functions inherited from QQuick3DParticle | |
QQuick3DParticle (QQuick3DObjectPrivate &dd, QQuick3DNode *parent=nullptr) | |
virtual void | doSetMaxAmount (int amount) |
void | updateBurstIndex (int amount) |
QSSGRenderGraphObject * | updateSpatialNode (QSSGRenderGraphObject *node) override |
float | depthBias () const |
Protected Member Functions inherited from QQuick3DObject | |
virtual void | markAllDirty () |
QQuick3DObject (QQuick3DObjectPrivate &dd, QQuick3DObject *parent=nullptr) | |
void | classBegin () override |
Invoked after class creation, but before any properties have been set. | |
bool | isComponentComplete () const |
virtual void | preSync () |
Protected Member Functions inherited from QObject | |
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 inherited from QQuick3DParticleSpriteParticle | |
QMap< const QQuick3DParticleEmitter *, PerEmitterData > | m_perEmitterData |
QVector< SpriteParticleData > | m_spriteParticleData |
int | m_nextEmitterIndex = 0 |
FeatureLevel | m_featureLevel = FeatureLevel::Simple |
Protected Attributes inherited from QQuick3DParticle | |
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 |
Protected Attributes inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Related Symbols inherited from QObject | |
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 22 of file qquick3dparticlelineparticle_p.h.
Enumerator | |
---|---|
Absolute | |
Relative | |
Fill |
Definition at line 39 of file qquick3dparticlelineparticle_p.h.
QT_BEGIN_NAMESPACE QQuick3DParticleLineParticle::QQuick3DParticleLineParticle | ( | QQuick3DNode * | parent = nullptr | ) |
\qmltype LineParticle3D \inherits SpriteParticle3D \inqmlmodule QtQuick3D.Particles3D
Line particle.
The LineParticle3D creates line shaped sprite particles.
The line is created from the path of the particle when it moves. The length of the line is specified either by the \l length parameter or the segment count and minimum delta between points. In latter case the length of the line may vary if the particles speed varies.
Definition at line 29 of file qquick3dparticlelineparticle.cpp.
|
override |
Definition at line 34 of file qquick3dparticlelineparticle.cpp.
float QQuick3DParticleLineParticle::alphaFade | ( | ) | const |
\qmlproperty real LineParticle3D::alphaFade
This property holds the alpha fade factor of the line. The alphaFade value range is [0, 1]. When the value is greater than 0.0, causes the line to fade the further the segment is from the first particle segment. The alpha for a segment is calculated like this: segmentAlpha(s) = (1.0 - alphaFade) ^ s, where s is the segment index. The default value is 0.0.
Definition at line 59 of file qquick3dparticlelineparticle.cpp.
|
signal |
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticleSpriteParticle.
Definition at line 322 of file qquick3dparticlelineparticle.cpp.
References QQuick3DParticleSpriteParticle::commitParticles(), iter, and time.
int QQuick3DParticleLineParticle::eolFadeOutDuration | ( | ) | const |
\qmlproperty int LineParticle3D::eolFadeOutDuration
This property holds the end-of-life fade-out duration of the line. If set, each line remains in the place it was when the particle reached end of its lifetime, then fades out during this time period. The default value is 0.
Definition at line 132 of file qquick3dparticlelineparticle.cpp.
|
signal |
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticleSpriteParticle.
Definition at line 278 of file qquick3dparticlelineparticle.cpp.
References QQuick3DParticleSpriteParticle::handleMaxAmountChanged().
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticleSpriteParticle.
Definition at line 288 of file qquick3dparticlelineparticle.cpp.
References QQuick3DParticleSpriteParticle::m_perEmitterData, and QQuick3DParticle::system().
float QQuick3DParticleLineParticle::length | ( | ) | const |
\qmlproperty real LineParticle3D::length
This property holds the length of the line. If the value is set, the lines length is limited to the value. In this case the minimum delta of the line is the length divided by the segment count. If the value is not set, the line length varies based on the speed the particle moves as well as segment count and minimum delta. The default value is -1.0.
Definition at line 97 of file qquick3dparticlelineparticle.cpp.
|
signal |
float QQuick3DParticleLineParticle::lengthDeltaMin | ( | ) | const |
\qmlproperty real LineParticle3D::lengthDeltaMin
This property holds the minimum length between segment points. This parameter is ignored if the length parameter is set. The default value is 10.0.
Definition at line 120 of file qquick3dparticlelineparticle.cpp.
|
signal |
float QQuick3DParticleLineParticle::lengthVariation | ( | ) | const |
\qmlproperty real LineParticle3D::lengthVariation
This property holds the length variation of the line. This parameter is not used if the length parameter has not been set. When the length is set, this parameter can be used to vary the length of each line. The default value is 0.0.
Definition at line 109 of file qquick3dparticlelineparticle.cpp.
|
signal |
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticle.
Definition at line 334 of file qquick3dparticlelineparticle.cpp.
References QMap< Key, T >::contains(), get(), QMap< Key, T >::insert(), QQuick3DParticleSpriteParticle::m_nextEmitterIndex, QQuick3DParticleSpriteParticle::m_perEmitterData, QQuick3DParticleSpriteParticle::nextCurrentIndex(), qMax(), and QQuick3DParticle::system().
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticle.
Definition at line 314 of file qquick3dparticlelineparticle.cpp.
References QQuick3DParticleSpriteParticle::reset().
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticleSpriteParticle.
Definition at line 366 of file qquick3dparticlelineparticle.cpp.
References header(), and QQuick3DParticleSpriteParticle::resetParticleData().
float QQuick3DParticleLineParticle::scaleMultiplier | ( | ) | const |
\qmlproperty real LineParticle3D::scaleMultiplier
This property holds the scale multiplier of the line. The scaleMultiplier value range is [0, 2]. The scaleMultiplier modifies the line size for the line segments. If the value is less than 1.0, the line gets smaller the further a segment is from the first segment and if the value is greater than 1.0 the line gets bigger. The size for a segment is calculated like this: size(s) = scaleMultiplier ^ s, where s is the segment index.
Definition at line 73 of file qquick3dparticlelineparticle.cpp.
|
signal |
int QQuick3DParticleLineParticle::segmentCount | ( | ) | const |
\qmlproperty int LineParticle3D::segmentCount
This property holds the number of segments in the line. The line is drawn using segment + 1 points, where the additional one comes from the particles current position. The default value is 1.
Definition at line 45 of file qquick3dparticlelineparticle.cpp.
|
signal |
|
slot |
Definition at line 170 of file qquick3dparticlelineparticle.cpp.
References alphaFadeChanged(), Q_EMIT, qBound(), and qFuzzyCompare().
|
slot |
Definition at line 223 of file qquick3dparticlelineparticle.cpp.
References eolFadeOutDurationChanged(), Q_EMIT, and qMax().
|
slot |
Definition at line 196 of file qquick3dparticlelineparticle.cpp.
References length, lengthChanged(), Q_EMIT, qFuzzyCompare(), and qMax().
|
slot |
Definition at line 214 of file qquick3dparticlelineparticle.cpp.
References lengthDeltaMinChanged(), Q_EMIT, qFuzzyCompare(), and qMax().
|
slot |
Definition at line 205 of file qquick3dparticlelineparticle.cpp.
References lengthVariation, lengthVariationChanged(), Q_EMIT, qFuzzyCompare(), and qMax().
|
overrideprivatevirtual |
Reimplemented from QQuick3DParticleSpriteParticle.
Definition at line 352 of file qquick3dparticlelineparticle.cpp.
References QQuick3DParticleSpriteParticle::m_spriteParticleData, position(), QQuick3DParticleSpriteParticle::setParticleData(), and QQuick3DObject::update().
|
slot |
Definition at line 179 of file qquick3dparticlelineparticle.cpp.
References Q_EMIT, qBound(), qFuzzyCompare(), and scaleMultiplierChanged().
|
slot |
Definition at line 160 of file qquick3dparticlelineparticle.cpp.
References Q_EMIT, qMax(), and segmentCountChanged().
|
slot |
Definition at line 232 of file qquick3dparticlelineparticle.cpp.
References Q_EMIT, and texcoordModeChanged().
|
slot |
Definition at line 188 of file qquick3dparticlelineparticle.cpp.
References Q_EMIT, qFuzzyCompare(), and texcoordMultiplierChanged().
QQuick3DParticleLineParticle::TexcoordMode QQuick3DParticleLineParticle::texcoordMode | ( | ) | const |
\qmlproperty enumeration LineParticle3D::TexcoordMode
Defines the texture coordinate mode of line particle.
\value LineParticle3D.Absolute Texture coordinates are specified relative to the world position. \value LineParticle3D.Relative Texture coordinates are specified relative to line first line point. \value LineParticle3D.Fill Texture coordinates are specified such that the texture fills the whole line.
\qmlproperty TexcoordMode LineParticle3D::texcoordMode
This property holds the texture coordinate mode of the line.
Definition at line 155 of file qquick3dparticlelineparticle.cpp.
|
signal |
float QQuick3DParticleLineParticle::texcoordMultiplier | ( | ) | const |
\qmlproperty real LineParticle3D::texcoordMultiplier
This property holds the texture coordinate multiplier of the line. This value is factored to the texture coordinate values of the line. The default value is 1.0.
Definition at line 84 of file qquick3dparticlelineparticle.cpp.
|
signal |
|
friend |
Definition at line 112 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 26 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 32 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 29 of file qquick3dparticlelineparticle_p.h.
Referenced by setLength().
|
readwrite |
Definition at line 31 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 30 of file qquick3dparticlelineparticle_p.h.
Referenced by setLengthVariation().
|
readwrite |
Definition at line 27 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 25 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 33 of file qquick3dparticlelineparticle_p.h.
|
readwrite |
Definition at line 28 of file qquick3dparticlelineparticle_p.h.