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
randominstancing.cpp File Reference

(e2427394efeec8579717e98caf43b75f532b687f)

#include "randominstancing_p.h"
#include <QRandomGenerator>
#include <QObject>
+ Include dependency graph for randominstancing.cpp:

Go to the source code of this file.

Functions

static float genRandom (float from, float to, QRandomGenerator *rgen)
 
static QVector3D genRandom (const QVector3D &from, const QVector3D &to, bool proportional, QRandomGenerator *rgen)
 
static QVector4D genRandom (const QVector4D &from, const QVector4D &to, bool proportional, QRandomGenerator *rgen)
 
static QColor genRandom (const QColor &from, const QColor &to, bool proportional, QQuick3DRandomInstancing::ColorModel colorModel, QRandomGenerator *rgen)
 

Function Documentation

◆ genRandom() [1/4]

static QColor genRandom ( const QColor & from,
const QColor & to,
bool proportional,
QQuick3DRandomInstancing::ColorModel colorModel,
QRandomGenerator * rgen )
static

Definition at line 336 of file randominstancing.cpp.

References QColor::fromHslF(), QColor::fromHsvF(), QColor::fromRgbF(), genRandom(), QColor::getHslF(), QColor::getHsvF(), QColor::getRgbF(), QQuick3DRandomInstancing::HSL, QQuick3DRandomInstancing::HSV, QQuick3DRandomInstancing::RGB, and v1.

+ Here is the call graph for this function:

◆ genRandom() [2/4]

static QVector3D genRandom ( const QVector3D & from,
const QVector3D & to,
bool proportional,
QRandomGenerator * rgen )
static

Definition at line 318 of file randominstancing.cpp.

References genRandom(), QVector3D::x(), QVector3D::y(), and QVector3D::z().

+ Here is the call graph for this function:

◆ genRandom() [3/4]

static QVector4D genRandom ( const QVector4D & from,
const QVector4D & to,
bool proportional,
QRandomGenerator * rgen )
static

Definition at line 327 of file randominstancing.cpp.

References genRandom(), QVector4D::w(), QVector4D::x(), QVector4D::y(), and QVector4D::z().

+ Here is the call graph for this function:

◆ genRandom() [4/4]

static float genRandom ( float from,
float to,
QRandomGenerator * rgen )
inlinestatic

Definition at line 312 of file randominstancing.cpp.

Referenced by genRandom(), genRandom(), and genRandom().

+ Here is the caller graph for this function: