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
QQuick3DParticleLineParticle Class Reference

#include <qquick3dparticlelineparticle_p.h>

+ Inheritance diagram for QQuick3DParticleLineParticle:
+ Collaboration diagram for QQuick3DParticleLineParticle:

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 Slots

void setSegmentCount (int count)
 
void setAlphaFade (float fade)
 
void setScaleMultiplier (float multiplier)
 
void setTexcoordMultiplier (float multiplier)
 
void setLength (float length)
 
void setLengthVariation (float length)
 
void setLengthDeltaMin (float min)
 
void setEolFadeOutDuration (int duration)
 
void setTexcoordMode (QQuick3DParticleLineParticle::TexcoordMode mode)
 
- Public Slots inherited from QQuick3DParticleSpriteParticle
void setBlendMode (QQuick3DParticleSpriteParticle::BlendMode blendMode)
 
void setSprite (QQuick3DTexture *sprite)
 
void setSpriteSequence (QQuick3DParticleSpriteSequence *spriteSequence)
 
void setBillboard (bool billboard)
 
void setParticleScale (float scale)
 
void setColorTable (QQuick3DTexture *colorTable)
 
void setOffsetX (float value)
 
void setOffsetY (float value)
 
 Q_REVISION (6, 4) void setCastsReflections(bool castsReflections)
 
- Public Slots inherited from QQuick3DParticle
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)
 
- Public Slots inherited from QQuick3DObject
void update ()
 
void setParentItem (QQuick3DObject *parentItem)
 
- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 

Signals

void segmentCountChanged ()
 
void alphaFadeChanged ()
 
void scaleMultiplierChanged ()
 
void texcoordMultiplierChanged ()
 
void lengthChanged ()
 
void lengthVariationChanged ()
 
void lengthDeltaMinChanged ()
 
void eolFadeOutDurationChanged ()
 
void texcoordModeChanged ()
 
- Signals inherited from QQuick3DParticleSpriteParticle
void blendModeChanged ()
 
void spriteChanged ()
 
void spriteSequenceChanged ()
 
void billboardChanged ()
 
void particleScaleChanged ()
 
void colorTableChanged ()
 
 Q_REVISION (6, 3) void lightsChanged()
 
 Q_REVISION (6, 3) void offsetXChanged()
 
 Q_REVISION (6, 3) void offsetYChanged()
 
 Q_REVISION (6, 4) void castsReflectionsChanged()
 
- Signals inherited from QQuick3DParticle
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 ()
 
- Signals inherited from QQuick3DObject
void parentChanged ()
 
void childrenChanged ()
 
void stateChanged ()
 
- Signals inherited from QObject
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

 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
 
QQuick3DTexturesprite () const
 \qmlproperty Texture SpriteParticle3D::sprite
 
QQuick3DParticleSpriteSequencespriteSequence () const
 \qmlproperty SpriteSequence3D SpriteParticle3D::spriteSequence
 
bool billboard () const
 \qmlproperty bool SpriteParticle3D::billboard
 
float particleScale () const
 \qmlproperty real SpriteParticle3D::particleScale
 
QQuick3DTexturecolorTable () 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
 
PerEmitterDataperEmitterData (const QQuick3DNode *updateNode)
 
PerEmitterDataperEmitterData (int emitterIndex)
 
QSSGRenderGraphObjectupdateParticleNode (const ParticleUpdateNode *updateNode, QSSGRenderGraphObject *node)
 
- Public Member Functions inherited from QQuick3DParticle
 QQuick3DParticle (QQuick3DObject *parent=nullptr)
 \qmltype Particle3D \inherits Object3D \inqmlmodule QtQuick3D.Particles3D
 
 ~QQuick3DParticle () override
 
QQuick3DParticleSystemsystem () 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< QStringbindableObjectName ()
 
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).
 
QThreadthread () 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 >
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 >
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 QObjectListchildren () 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< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () 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 ()
 

Properties

int segmentCount
 
float alphaFade
 
float scaleMultiplier
 
float texcoordMultiplier
 
float length
 
float lengthVariation
 
float lengthDeltaMin
 
int eolFadeOutDuration
 
TexcoordMode texcoordMode
 
- Properties inherited from QQuick3DParticleSpriteParticle
BlendMode blendMode
 
QQuick3DTexturesprite
 
QQuick3DParticleSpriteSequencespriteSequence
 
bool billboard
 
float particleScale
 
QQuick3DTexturecolorTable
 
QQmlListProperty< QQuick3DAbstractLightlights
 \qmlproperty list<Light> SpriteParticle3D::lights
 
float offsetX
 
float offsetY
 
bool castsReflections
 \qmlproperty bool SpriteParticle3D::castsReflections
 
- Properties inherited from QQuick3DParticle
int maxAmount
 
QColor color
 
QVector4D colorVariation
 
bool unifiedColorVariation
 
FadeType fadeInEffect
 
FadeType fadeOutEffect
 
int fadeInDuration
 
int fadeOutDuration
 
AlignMode alignMode
 
QVector3D alignTargetPosition
 
bool hasTransparency
 
SortMode sortMode
 
- Properties inherited from QQuick3DObject
QQuick3DObjectparent
 \qmlproperty Object3D QtQuick3D::Object3D::parent This property holds the parent of the Object3D in a 3D scene.
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

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)
 
QSSGRenderGraphObjectupdateSpatialNode (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
QObjectsender () 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 *, PerEmitterDatam_perEmitterData
 
QVector< SpriteParticleDatam_spriteParticleData
 
int m_nextEmitterIndex = 0
 
FeatureLevel m_featureLevel = FeatureLevel::Simple
 
- Protected Attributes inherited from QQuick3DParticle
QList< QQuick3DParticleDatam_particleData
 
QQuick3DParticleSpriteSequencem_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< QObjectDatad_ptr
 

Detailed Description

Definition at line 22 of file qquick3dparticlelineparticle_p.h.

Member Enumeration Documentation

◆ TexcoordMode

Enumerator
Absolute 
Relative 
Fill 

Definition at line 39 of file qquick3dparticlelineparticle_p.h.

Constructor & Destructor Documentation

◆ QQuick3DParticleLineParticle()

QT_BEGIN_NAMESPACE QQuick3DParticleLineParticle::QQuick3DParticleLineParticle ( QQuick3DNode * parent = nullptr)

\qmltype LineParticle3D \inherits SpriteParticle3D \inqmlmodule QtQuick3D.Particles3D

Line particle.

Since
6.4

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.

◆ ~QQuick3DParticleLineParticle()

QQuick3DParticleLineParticle::~QQuick3DParticleLineParticle ( )
override

Definition at line 34 of file qquick3dparticlelineparticle.cpp.

Member Function Documentation

◆ alphaFade()

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.

◆ alphaFadeChanged

void QQuick3DParticleLineParticle::alphaFadeChanged ( )
signal

Referenced by setAlphaFade().

+ Here is the caller graph for this function:

◆ commitParticles()

void QQuick3DParticleLineParticle::commitParticles ( float time)
overrideprivatevirtual

Reimplemented from QQuick3DParticleSpriteParticle.

Definition at line 322 of file qquick3dparticlelineparticle.cpp.

References QQuick3DParticleSpriteParticle::commitParticles(), iter, and time.

+ Here is the call graph for this function:

◆ eolFadeOutDuration()

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.

◆ eolFadeOutDurationChanged

void QQuick3DParticleLineParticle::eolFadeOutDurationChanged ( )
signal

Referenced by setEolFadeOutDuration().

+ Here is the caller graph for this function:

◆ handleMaxAmountChanged()

void QQuick3DParticleLineParticle::handleMaxAmountChanged ( int amount)
overrideprivatevirtual

Reimplemented from QQuick3DParticleSpriteParticle.

Definition at line 278 of file qquick3dparticlelineparticle.cpp.

References QQuick3DParticleSpriteParticle::handleMaxAmountChanged().

+ Here is the call graph for this function:

◆ handleSystemChanged()

void QQuick3DParticleLineParticle::handleSystemChanged ( QQuick3DParticleSystem * system)
overrideprivatevirtual

Reimplemented from QQuick3DParticleSpriteParticle.

Definition at line 288 of file qquick3dparticlelineparticle.cpp.

References QQuick3DParticleSpriteParticle::m_perEmitterData, and QQuick3DParticle::system().

+ Here is the call graph for this function:

◆ length()

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.

◆ lengthChanged

void QQuick3DParticleLineParticle::lengthChanged ( )
signal

Referenced by setLength().

+ Here is the caller graph for this function:

◆ lengthDeltaMin()

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.

◆ lengthDeltaMinChanged

void QQuick3DParticleLineParticle::lengthDeltaMinChanged ( )
signal

Referenced by setLengthDeltaMin().

+ Here is the caller graph for this function:

◆ lengthVariation()

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.

◆ lengthVariationChanged

void QQuick3DParticleLineParticle::lengthVariationChanged ( )
signal

Referenced by setLengthVariation().

+ Here is the caller graph for this function:

◆ nextCurrentIndex()

int QQuick3DParticleLineParticle::nextCurrentIndex ( const QQuick3DParticleEmitter * emitter)
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().

+ Here is the call graph for this function:

◆ reset()

void QQuick3DParticleLineParticle::reset ( )
overrideprivatevirtual

Reimplemented from QQuick3DParticle.

Definition at line 314 of file qquick3dparticlelineparticle.cpp.

References QQuick3DParticleSpriteParticle::reset().

+ Here is the call graph for this function:

◆ resetParticleData()

void QQuick3DParticleLineParticle::resetParticleData ( int particleIndex)
overrideprivatevirtual

Reimplemented from QQuick3DParticleSpriteParticle.

Definition at line 366 of file qquick3dparticlelineparticle.cpp.

References header(), and QQuick3DParticleSpriteParticle::resetParticleData().

+ Here is the call graph for this function:

◆ scaleMultiplier()

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.

◆ scaleMultiplierChanged

void QQuick3DParticleLineParticle::scaleMultiplierChanged ( )
signal

Referenced by setScaleMultiplier().

+ Here is the caller graph for this function:

◆ segmentCount()

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.

◆ segmentCountChanged

void QQuick3DParticleLineParticle::segmentCountChanged ( )
signal

Referenced by setSegmentCount().

+ Here is the caller graph for this function:

◆ setAlphaFade

void QQuick3DParticleLineParticle::setAlphaFade ( float fade)
slot

Definition at line 170 of file qquick3dparticlelineparticle.cpp.

References alphaFadeChanged(), Q_EMIT, qBound(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ setEolFadeOutDuration

void QQuick3DParticleLineParticle::setEolFadeOutDuration ( int duration)
slot

Definition at line 223 of file qquick3dparticlelineparticle.cpp.

References eolFadeOutDurationChanged(), Q_EMIT, and qMax().

+ Here is the call graph for this function:

◆ setLength

void QQuick3DParticleLineParticle::setLength ( float length)
slot

Definition at line 196 of file qquick3dparticlelineparticle.cpp.

References length, lengthChanged(), Q_EMIT, qFuzzyCompare(), and qMax().

+ Here is the call graph for this function:

◆ setLengthDeltaMin

void QQuick3DParticleLineParticle::setLengthDeltaMin ( float min)
slot

Definition at line 214 of file qquick3dparticlelineparticle.cpp.

References lengthDeltaMinChanged(), Q_EMIT, qFuzzyCompare(), and qMax().

+ Here is the call graph for this function:

◆ setLengthVariation

void QQuick3DParticleLineParticle::setLengthVariation ( float length)
slot

Definition at line 205 of file qquick3dparticlelineparticle.cpp.

References lengthVariation, lengthVariationChanged(), Q_EMIT, qFuzzyCompare(), and qMax().

+ Here is the call graph for this function:

◆ setParticleData()

void QQuick3DParticleLineParticle::setParticleData ( int particleIndex,
const QVector3D & position,
const QVector3D & rotation,
const QVector4D & color,
float size,
float age,
float animationFrame )
overrideprivatevirtual

Reimplemented from QQuick3DParticleSpriteParticle.

Definition at line 352 of file qquick3dparticlelineparticle.cpp.

References QQuick3DParticleSpriteParticle::m_spriteParticleData, position(), QQuick3DParticleSpriteParticle::setParticleData(), and QQuick3DObject::update().

+ Here is the call graph for this function:

◆ setScaleMultiplier

void QQuick3DParticleLineParticle::setScaleMultiplier ( float multiplier)
slot

Definition at line 179 of file qquick3dparticlelineparticle.cpp.

References Q_EMIT, qBound(), qFuzzyCompare(), and scaleMultiplierChanged().

+ Here is the call graph for this function:

◆ setSegmentCount

void QQuick3DParticleLineParticle::setSegmentCount ( int count)
slot

Definition at line 160 of file qquick3dparticlelineparticle.cpp.

References Q_EMIT, qMax(), and segmentCountChanged().

+ Here is the call graph for this function:

◆ setTexcoordMode

void QQuick3DParticleLineParticle::setTexcoordMode ( QQuick3DParticleLineParticle::TexcoordMode mode)
slot

Definition at line 232 of file qquick3dparticlelineparticle.cpp.

References Q_EMIT, and texcoordModeChanged().

+ Here is the call graph for this function:

◆ setTexcoordMultiplier

void QQuick3DParticleLineParticle::setTexcoordMultiplier ( float multiplier)
slot

Definition at line 188 of file qquick3dparticlelineparticle.cpp.

References Q_EMIT, qFuzzyCompare(), and texcoordMultiplierChanged().

+ Here is the call graph for this function:

◆ texcoordMode()

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.

◆ texcoordModeChanged

void QQuick3DParticleLineParticle::texcoordModeChanged ( )
signal

Referenced by setTexcoordMode().

+ Here is the caller graph for this function:

◆ texcoordMultiplier()

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.

◆ texcoordMultiplierChanged

void QQuick3DParticleLineParticle::texcoordMultiplierChanged ( )
signal

Referenced by setTexcoordMultiplier().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QQuick3DParticleSystem

friend class QQuick3DParticleSystem
friend

Definition at line 112 of file qquick3dparticlelineparticle_p.h.

Property Documentation

◆ alphaFade

float QQuick3DParticleLineParticle::alphaFade
readwrite

Definition at line 26 of file qquick3dparticlelineparticle_p.h.

◆ eolFadeOutDuration

int QQuick3DParticleLineParticle::eolFadeOutDuration
readwrite

Definition at line 32 of file qquick3dparticlelineparticle_p.h.

◆ length

float QQuick3DParticleLineParticle::length
readwrite

Definition at line 29 of file qquick3dparticlelineparticle_p.h.

Referenced by setLength().

◆ lengthDeltaMin

float QQuick3DParticleLineParticle::lengthDeltaMin
readwrite

Definition at line 31 of file qquick3dparticlelineparticle_p.h.

◆ lengthVariation

float QQuick3DParticleLineParticle::lengthVariation
readwrite

Definition at line 30 of file qquick3dparticlelineparticle_p.h.

Referenced by setLengthVariation().

◆ scaleMultiplier

float QQuick3DParticleLineParticle::scaleMultiplier
readwrite

Definition at line 27 of file qquick3dparticlelineparticle_p.h.

◆ segmentCount

int QQuick3DParticleLineParticle::segmentCount
readwrite

Definition at line 25 of file qquick3dparticlelineparticle_p.h.

◆ texcoordMode

TexcoordMode QQuick3DParticleLineParticle::texcoordMode
readwrite

Definition at line 33 of file qquick3dparticlelineparticle_p.h.

◆ texcoordMultiplier

float QQuick3DParticleLineParticle::texcoordMultiplier
readwrite

Definition at line 28 of file qquick3dparticlelineparticle_p.h.


The documentation for this class was generated from the following files: