Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dparticleutils_p.h File Reference

(c4beeea9b72574e8a6e3781731ddf6080df5849f)

#include <qmath.h>
#include <qmatrix4x4.h>
#include <QtQuick3DParticles/qtquick3dparticlesglobal.h>
#include <private/qglobal_p.h>
Include dependency graph for qquick3dparticleutils_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QPSIN   qLookupSin
#define QPCOS   qLookupCos
#define QT_QUICK3D_SINE_TABLE_SIZE   256

Functions

float qLookupSin (float x)
float qLookupCos (float x)
QQuick3DNodegetSharedParentNode (QQuick3DNode *node, QQuick3DNode *system)
QMatrix4x4 calculateParticleTransform (const QQuick3DNode *parent, const QQuick3DNode *systemSharedParent)
QQuaternion calculateParticleRotation (const QQuick3DNode *parent, const QQuick3DNode *systemSharedParent)

Variables

static constexpr float QT_QUICK3D_SINE_H1 = 0.5f * float(QT_QUICK3D_SINE_TABLE_SIZE / M_PI)
static constexpr float QT_QUICK3D_SINE_H2 = 2.0f * float(M_PI / QT_QUICK3D_SINE_TABLE_SIZE)
Q_QUICK3DPARTICLES_EXPORT const float qt_quick3d_sine_table [QT_QUICK3D_SINE_TABLE_SIZE]

Macro Definition Documentation

◆ QPCOS

#define QPCOS   qLookupCos

Definition at line 36 of file qquick3dparticleutils_p.h.

◆ QPSIN

#define QPSIN   qLookupSin

Definition at line 35 of file qquick3dparticleutils_p.h.

◆ QT_QUICK3D_SINE_TABLE_SIZE

#define QT_QUICK3D_SINE_TABLE_SIZE   256

Definition at line 49 of file qquick3dparticleutils_p.h.

Function Documentation

◆ calculateParticleRotation()

QQuaternion calculateParticleRotation ( const QQuick3DNode * parent,
const QQuick3DNode * systemSharedParent )

Definition at line 303 of file qquick3dparticleutils.cpp.

◆ calculateParticleTransform()

QMatrix4x4 calculateParticleTransform ( const QQuick3DNode * parent,
const QQuick3DNode * systemSharedParent )

Definition at line 295 of file qquick3dparticleutils.cpp.

◆ getSharedParentNode()

QQuick3DNode * getSharedParentNode ( QQuick3DNode * node,
QQuick3DNode * system )

Definition at line 273 of file qquick3dparticleutils.cpp.

◆ qLookupCos()

float qLookupCos ( float x)
inline

Definition at line 67 of file qquick3dparticleutils_p.h.

References QT_QUICK3D_SINE_H1, and QT_QUICK3D_SINE_H2.

◆ qLookupSin()

float qLookupSin ( float x)
inline

Definition at line 57 of file qquick3dparticleutils_p.h.

References QT_QUICK3D_SINE_H1, and QT_QUICK3D_SINE_H2.

Variable Documentation

◆ QT_QUICK3D_SINE_H1

float QT_QUICK3D_SINE_H1 = 0.5f * float(QT_QUICK3D_SINE_TABLE_SIZE / M_PI)
staticconstexpr

Definition at line 52 of file qquick3dparticleutils_p.h.

Referenced by qLookupCos(), and qLookupSin().

◆ QT_QUICK3D_SINE_H2

float QT_QUICK3D_SINE_H2 = 2.0f * float(M_PI / QT_QUICK3D_SINE_TABLE_SIZE)
staticconstexpr

Definition at line 53 of file qquick3dparticleutils_p.h.

Referenced by qLookupCos(), and qLookupSin().

◆ qt_quick3d_sine_table

QT_BEGIN_NAMESPACE Q_CONSTINIT const float qt_quick3d_sine_table
extern

Definition at line 13 of file qquick3dparticleutils.cpp.