|
Krita Source Code Documentation
|
#include <KisRandomGenerator2D.h>
Inheritance diagram for KisRandomGenerator2D:Public Member Functions | |
| double | doubleRandomAt (qint64 x, qint64 y) |
| KisRandomGenerator2D (quint64 seed) | |
| quint64 | randomAt (qint64 x, qint64 y) |
| ~KisRandomGenerator2D () | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Attributes | |
| quint64 | seed |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| Private *const | d |
This is a class that return a pseudo-random number that will be constant for a given pixel coordinate. The rational is that filters that use random number (such as noises, or raindrops) needs to always get the same random value at each run, or else the result will constantly changes when used as an adjustment layer.
Definition at line 34 of file KisRandomGenerator2D.cpp.
| KisRandomGenerator2D::KisRandomGenerator2D | ( | quint64 | seed | ) |
Creates a new instance of a random generator with the given seed.
Definition at line 38 of file KisRandomGenerator2D.cpp.
| KisRandomGenerator2D::~KisRandomGenerator2D | ( | ) |
| double KisRandomGenerator2D::doubleRandomAt | ( | qint64 | x, |
| qint64 | y ) |
Definition at line 72 of file KisRandomGenerator2D.cpp.
References randomAt().
| quint64 KisRandomGenerator2D::randomAt | ( | qint64 | x, |
| qint64 | y ) |
Definition at line 48 of file KisRandomGenerator2D.cpp.
References d, p, part(), permuteWhole(), and v.
|
private |
Definition at line 43 of file KisRandomGenerator2D.h.
| quint64 KisRandomGenerator2D::seed |
Definition at line 35 of file KisRandomGenerator2D.cpp.