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

#include <qquick3dparticlerandomizer_p.h>

+ Collaboration diagram for QPRand:

Public Types

enum  UserType {
  Default = 0 , WanderXPS , WanderYPS , WanderZPS ,
  WanderXPV , WanderYPV , WanderZPV , WanderXAV ,
  WanderYAV , WanderZAV , AttractorDurationV , AttractorPosVX ,
  AttractorPosVY , AttractorPosVZ , Shape1 , Shape2 ,
  Shape3 , Shape4 , SpriteAnimationI , DeterministicSeparator ,
  LifeSpanV , ScaleV , ScaleEV , RotXV ,
  RotYV , RotZV , RotXVV , RotYVV ,
  RotZVV , ColorRV , ColorGV , ColorBV ,
  ColorAV , TDirPosXV , TDirPosYV , TDirPosZV ,
  TDirMagV , VDirXV , VDirYV , VDirZV ,
  SpriteAnimationV
}
 

Public Member Functions

void init (quint32 seed, int size=65536)
 
void setDeterministic (bool deterministic)
 
float get (int particleIndex, UserType user=Default)
 
float get ()
 
QRandomGenerator generator () const
 

Detailed Description

Definition at line 53 of file qquick3dparticlerandomizer_p.h.

Member Enumeration Documentation

◆ UserType

Enumerator
Default 
WanderXPS 
WanderYPS 
WanderZPS 
WanderXPV 
WanderYPV 
WanderZPV 
WanderXAV 
WanderYAV 
WanderZAV 
AttractorDurationV 
AttractorPosVX 
AttractorPosVY 
AttractorPosVZ 
Shape1 
Shape2 
Shape3 
Shape4 
SpriteAnimationI 
DeterministicSeparator 
LifeSpanV 
ScaleV 
ScaleEV 
RotXV 
RotYV 
RotZV 
RotXVV 
RotYVV 
RotZVV 
ColorRV 
ColorGV 
ColorBV 
ColorAV 
TDirPosXV 
TDirPosYV 
TDirPosZV 
TDirMagV 
VDirXV 
VDirYV 
VDirZV 
SpriteAnimationV 

Definition at line 59 of file qquick3dparticlerandomizer_p.h.

Member Function Documentation

◆ generator()

QRandomGenerator QPRand::generator ( ) const
inline

Definition at line 132 of file qquick3dparticlerandomizer_p.h.

◆ get() [1/2]

float QPRand::get ( )
inline

Definition at line 128 of file qquick3dparticlerandomizer_p.h.

References QList< T >::at().

Referenced by get().

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

◆ get() [2/2]

float QPRand::get ( int particleIndex,
UserType user = Default )
inline

Definition at line 119 of file qquick3dparticlerandomizer_p.h.

References QList< T >::at(), DeterministicSeparator, get(), and i.

Referenced by QQuick3DParticleEmitter::getEmitAmountFromDynamicBursts().

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

◆ init()

void QPRand::init ( quint32 seed,
int size = 65536 )
inline

Definition at line 104 of file qquick3dparticlerandomizer_p.h.

References QList< T >::clear(), QRandomGenerator::generateDouble(), i, QList< T >::reserve(), seed, and QRandomGenerator::seed().

Referenced by QQuick3DParticleSystem::componentComplete(), and QQuick3DParticleSystem::setSeed().

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

◆ setDeterministic()

void QPRand::setDeterministic ( bool deterministic)
inline

Definition at line 113 of file qquick3dparticlerandomizer_p.h.

Referenced by QQuick3DParticleSystem::setUseRandomSeed().

+ Here is the caller graph for this function:

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