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

(b027d2e8e3e8c21121d731c69ee6f399405cb0b6)

#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)
QList< QVector3DpositionsFromModel (QQuick3DModel *model, const QMatrix4x4 *matrix, QQmlContext *context)

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 40 of file qquick3dparticleutils_p.h.

◆ QPSIN

#define QPSIN   qLookupSin

Definition at line 39 of file qquick3dparticleutils_p.h.

◆ QT_QUICK3D_SINE_TABLE_SIZE

#define QT_QUICK3D_SINE_TABLE_SIZE   256

Definition at line 53 of file qquick3dparticleutils_p.h.

Function Documentation

◆ calculateParticleRotation()

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

Definition at line 310 of file qquick3dparticleutils.cpp.

◆ calculateParticleTransform()

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

Definition at line 302 of file qquick3dparticleutils.cpp.

◆ getSharedParentNode()

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

Definition at line 280 of file qquick3dparticleutils.cpp.

◆ positionsFromModel()

QList< QVector3D > positionsFromModel ( QQuick3DModel * model,
const QMatrix4x4 * matrix,
QQmlContext * context )

Definition at line 339 of file qquick3dparticleutils.cpp.

◆ qLookupCos()

float qLookupCos ( float x)
inline

Definition at line 71 of file qquick3dparticleutils_p.h.

References QT_QUICK3D_SINE_H1, and QT_QUICK3D_SINE_H2.

◆ qLookupSin()

float qLookupSin ( float x)
inline

Definition at line 61 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 56 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 57 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 20 of file qquick3dparticleutils.cpp.