|
Krita Source Code Documentation
|
#include <KisPerStrokeRandomSource.h>
Inheritance diagram for KisPerStrokeRandomSource:Classes | |
| struct | Private |
Public Member Functions | |
| int | generate (const QString &key, int min, int max) const |
| qreal | generateNormalized (const QString &key) const |
| KisPerStrokeRandomSource () | |
| KisPerStrokeRandomSource (const KisPerStrokeRandomSource &rhs) | |
| ~KisPerStrokeRandomSource () | |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 17 of file KisPerStrokeRandomSource.h.
| KisPerStrokeRandomSource::KisPerStrokeRandomSource | ( | ) |
Definition at line 42 of file KisPerStrokeRandomSource.cpp.
| KisPerStrokeRandomSource::KisPerStrokeRandomSource | ( | const KisPerStrokeRandomSource & | rhs | ) |
| KisPerStrokeRandomSource::~KisPerStrokeRandomSource | ( | ) |
Definition at line 54 of file KisPerStrokeRandomSource.cpp.
| int KisPerStrokeRandomSource::generate | ( | const QString & | key, |
| int | min, | ||
| int | max ) const |
Generates a random number in a range from min to max
Definition at line 76 of file KisPerStrokeRandomSource.cpp.
References m_d.
| qreal KisPerStrokeRandomSource::generateNormalized | ( | const QString & | key | ) | const |
Generates a random number in a closed range [0; 1.0]
Definition at line 81 of file KisPerStrokeRandomSource.cpp.
References m_d.
|
private |
Definition at line 37 of file KisPerStrokeRandomSource.h.