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

#include <qquickparticlesystem_p.h>

+ Collaboration diagram for QQuickParticleData:

Public Member Functions

void setInstantaneousAX (float ax, QQuickParticleSystem *particleSystem)
 
void setInstantaneousVX (float vx, QQuickParticleSystem *particleSystem)
 
void setInstantaneousX (float x, QQuickParticleSystem *particleSystem)
 
void setInstantaneousAY (float ay, QQuickParticleSystem *particleSystem)
 
void setInstantaneousVY (float vy, QQuickParticleSystem *particleSystem)
 
void setInstantaneousY (float y, QQuickParticleSystem *particleSystem)
 
float curX (QQuickParticleSystem *particleSystem) const
 
float curVX (QQuickParticleSystem *particleSystem) const
 
float curAX () const
 
float curAX (QQuickParticleSystem *) const
 
float curY (QQuickParticleSystem *particleSystem) const
 
float curVY (QQuickParticleSystem *particleSystem) const
 
float curAY () const
 
float curAY (QQuickParticleSystem *) const
 
void debugDump (QQuickParticleSystem *particleSystem) const
 
bool stillAlive (QQuickParticleSystem *particleSystem) const
 
bool alive (QQuickParticleSystem *particleSystem) const
 
float lifeLeft (QQuickParticleSystem *particleSystem) const
 
float curSize (QQuickParticleSystem *particleSystem) const
 
QQuickV4ParticleData v4Value (QQuickParticleSystem *particleSystem)
 
void extendLife (float time, QQuickParticleSystem *particleSystem)
 

Static Public Member Functions

static constexpr float EPSILON () noexcept
 

Public Attributes

int index = 0
 
int systemIndex = -1
 
float x = 0
 
float y = 0
 
float t = -1
 
float lifeSpan = 0
 
float size = 0
 
float endSize = 0
 
float vx = 0
 
float vy = 0
 
float ax = 0
 
float ay = 0
 
Color4ub color = { 255, 255, 255, 255}
 
float xx = 1
 
float xy = 0
 
float yx = 0
 
float yy = 1
 
float rotation = 0
 
float rotationVelocity = 0
 
uchar autoRotate = 0
 
float animIdx = 0
 
float frameDuration = 1
 
float frameAt = -1
 
float frameCount = 1
 
float animT = -1
 
float animX = 0
 
float animY = 0
 
float animWidth = 1
 
float animHeight = 1
 
QQuickParticleGroupData::ID groupId = 0
 
QQuickImageParticlecolorOwner = nullptr
 
QQuickImageParticlerotationOwner = nullptr
 
QQuickImageParticledeformationOwner = nullptr
 
QQuickImageParticleanimationOwner = nullptr
 
QQuickItemdelegate = nullptr
 
float update = 0
 

Detailed Description

Definition at line 213 of file qquickparticlesystem_p.h.

Member Function Documentation

◆ alive()

bool QQuickParticleData::alive ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 557 of file qquickparticlesystem_p.h.

References EPSILON(), lifeSpan, and QQuickParticleSystem::timeInt.

+ Here is the call graph for this function:

◆ curAX() [1/2]

float QQuickParticleData::curAX ( ) const
inline

Definition at line 235 of file qquickparticlesystem_p.h.

◆ curAX() [2/2]

float QQuickParticleData::curAX ( QQuickParticleSystem * ) const
inline

Definition at line 236 of file qquickparticlesystem_p.h.

◆ curAY() [1/2]

float QQuickParticleData::curAY ( ) const
inline

Definition at line 239 of file qquickparticlesystem_p.h.

◆ curAY() [2/2]

float QQuickParticleData::curAY ( QQuickParticleSystem * ) const
inline

Definition at line 240 of file qquickparticlesystem_p.h.

◆ curSize()

float QQuickParticleData::curSize ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 572 of file qquickparticlesystem_p.h.

References endSize, lifeLeft(), lifeSpan, and size.

Referenced by QQuickV4ParticleData::currentSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ curVX()

float QQuickParticleData::curVX ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 531 of file qquickparticlesystem_p.h.

References ax, QQuickParticleSystem::timeInt, and vx.

Referenced by extendLife().

+ Here is the caller graph for this function:

◆ curVY()

float QQuickParticleData::curVY ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 544 of file qquickparticlesystem_p.h.

References ay, QQuickParticleSystem::timeInt, and vy.

Referenced by extendLife().

+ Here is the caller graph for this function:

◆ curX()

float QQuickParticleData::curX ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 524 of file qquickparticlesystem_p.h.

References ax, t, QQuickParticleSystem::timeInt, and vx.

Referenced by extendLife().

+ Here is the caller graph for this function:

◆ curY()

float QQuickParticleData::curY ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 537 of file qquickparticlesystem_p.h.

References ay, t, QQuickParticleSystem::timeInt, and vy.

Referenced by extendLife().

+ Here is the caller graph for this function:

◆ debugDump()

void QQuickParticleData::debugDump ( QQuickParticleSystem * particleSystem) const

Definition at line 392 of file qquickparticlesystem.cpp.

References ax, ay, endSize, groupId, lifeSpan, qDebug, stillAlive(), systemIndex, QQuickParticleSystem::timeInt, vx, and vy.

+ Here is the call graph for this function:

◆ EPSILON()

static constexpr float QQuickParticleData::EPSILON ( )
inlinestaticconstexprnoexcept

Definition at line 302 of file qquickparticlesystem_p.h.

Referenced by alive(), and stillAlive().

+ Here is the caller graph for this function:

◆ extendLife()

void QQuickParticleData::extendLife ( float time,
QQuickParticleSystem * particleSystem )

Definition at line 402 of file qquickparticlesystem.cpp.

References animT, ax, ay, curVX(), curVY(), curX(), curY(), elapsed(), time, QQuickParticleSystem::timeInt, vx, and vy.

+ Here is the call graph for this function:

◆ lifeLeft()

float QQuickParticleData::lifeLeft ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 565 of file qquickparticlesystem_p.h.

References lifeSpan, and QQuickParticleSystem::timeInt.

Referenced by curSize(), and QQuickV4ParticleData::lifeLeft().

+ Here is the caller graph for this function:

◆ setInstantaneousAX()

void QQuickParticleData::setInstantaneousAX ( float ax,
QQuickParticleSystem * particleSystem )
inline

Definition at line 460 of file qquickparticlesystem_p.h.

References ax, t, QQuickParticleSystem::timeInt, vx, and x.

◆ setInstantaneousAY()

void QQuickParticleData::setInstantaneousAY ( float ay,
QQuickParticleSystem * particleSystem )
inline

Definition at line 492 of file qquickparticlesystem_p.h.

References ay, t, QQuickParticleSystem::timeInt, vy, and y.

◆ setInstantaneousVX()

void QQuickParticleData::setInstantaneousVX ( float vx,
QQuickParticleSystem * particleSystem )
inline

Definition at line 473 of file qquickparticlesystem_p.h.

References ax, t, QQuickParticleSystem::timeInt, vx, and x.

◆ setInstantaneousVY()

void QQuickParticleData::setInstantaneousVY ( float vy,
QQuickParticleSystem * particleSystem )
inline

Definition at line 505 of file qquickparticlesystem_p.h.

References ay, t, QQuickParticleSystem::timeInt, vy, and y.

◆ setInstantaneousX()

void QQuickParticleData::setInstantaneousX ( float x,
QQuickParticleSystem * particleSystem )
inline

Definition at line 485 of file qquickparticlesystem_p.h.

References ax, t, QQuickParticleSystem::timeInt, and vx.

◆ setInstantaneousY()

void QQuickParticleData::setInstantaneousY ( float y,
QQuickParticleSystem * particleSystem )
inline

Definition at line 517 of file qquickparticlesystem_p.h.

References ay, t, QQuickParticleSystem::timeInt, and vy.

◆ stillAlive()

bool QQuickParticleData::stillAlive ( QQuickParticleSystem * particleSystem) const
inline

Definition at line 550 of file qquickparticlesystem_p.h.

References EPSILON(), lifeSpan, and QQuickParticleSystem::timeInt.

Referenced by debugDump().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ v4Value()

QQuickV4ParticleData QQuickParticleData::v4Value ( QQuickParticleSystem * particleSystem)

Definition at line 387 of file qquickparticlesystem.cpp.

Member Data Documentation

◆ animationOwner

QQuickImageParticle* QQuickParticleData::animationOwner = nullptr

Definition at line 285 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ animHeight

float QQuickParticleData::animHeight = 1

Definition at line 277 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ animIdx

float QQuickParticleData::animIdx = 0

Definition at line 269 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ animT

float QQuickParticleData::animT = -1

Definition at line 273 of file qquickparticlesystem_p.h.

Referenced by extendLife(), and QQuickImageParticle::initialize().

◆ animWidth

float QQuickParticleData::animWidth = 1

Definition at line 276 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ animX

float QQuickParticleData::animX = 0

Definition at line 274 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ animY

float QQuickParticleData::animY = 0

Definition at line 275 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ autoRotate

uchar QQuickParticleData::autoRotate = 0

◆ ax

◆ ay

◆ color

Color4ub QQuickParticleData::color = { 255, 255, 255, 255}

◆ colorOwner

QQuickImageParticle* QQuickParticleData::colorOwner = nullptr

◆ deformationOwner

QQuickImageParticle* QQuickParticleData::deformationOwner = nullptr

◆ delegate

QQuickItem* QQuickParticleData::delegate = nullptr

Definition at line 288 of file qquickparticlesystem_p.h.

◆ endSize

float QQuickParticleData::endSize = 0

◆ frameAt

float QQuickParticleData::frameAt = -1

Definition at line 271 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ frameCount

float QQuickParticleData::frameCount = 1

Definition at line 272 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ frameDuration

float QQuickParticleData::frameDuration = 1

Definition at line 270 of file qquickparticlesystem_p.h.

Referenced by QQuickImageParticle::initialize().

◆ groupId

◆ index

int QQuickParticleData::index = 0

◆ lifeSpan

◆ rotation

float QQuickParticleData::rotation = 0

◆ rotationOwner

QQuickImageParticle* QQuickParticleData::rotationOwner = nullptr

◆ rotationVelocity

float QQuickParticleData::rotationVelocity = 0

◆ size

float QQuickParticleData::size = 0

◆ systemIndex

int QQuickParticleData::systemIndex = -1

Definition at line 243 of file qquickparticlesystem_p.h.

Referenced by debugDump().

◆ t

◆ update

float QQuickParticleData::update = 0

Definition at line 290 of file qquickparticlesystem_p.h.

◆ vx

◆ vy

◆ x

◆ xx

float QQuickParticleData::xx = 1

◆ xy

float QQuickParticleData::xy = 0

◆ y

◆ yx

float QQuickParticleData::yx = 0

◆ yy

float QQuickParticleData::yy = 1

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