Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_random_generator.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | #include <QtGlobal> | 26 | #include <QtGlobal> | ||
27 | 27 | | |||
28 | /** | 28 | /** | ||
29 | * This is a class that return a pseudo-random number that will be constant for a given | 29 | * This is a class that return a pseudo-random number that will be constant for a given | ||
30 | * pixel coordinate. | 30 | * pixel coordinate. | ||
31 | * The rational is that filters that use random number (such as noises, or raindrops) | 31 | * The rational is that filters that use random number (such as noises, or raindrops) | ||
32 | * needs to always get the same random value at each run, or else the result will constantly | 32 | * needs to always get the same random value at each run, or else the result will constantly | ||
33 | * changes when used as an adjustement layer. | 33 | * changes when used as an adjustment layer. | ||
34 | */ | 34 | */ | ||
35 | class KRITAIMAGE_EXPORT KisRandomGenerator | 35 | class KRITAIMAGE_EXPORT KisRandomGenerator | ||
36 | { | 36 | { | ||
37 | public: | 37 | public: | ||
38 | /** | 38 | /** | ||
39 | * Creates a new instance of a random generator with the given seed. | 39 | * Creates a new instance of a random generator with the given seed. | ||
40 | */ | 40 | */ | ||
41 | KisRandomGenerator(quint64 seed); | 41 | KisRandomGenerator(quint64 seed); | ||
Show All 17 Lines |