|
Krita Source Code Documentation
|
#include <kis_stroke_random_source.h>
Classes | |
| struct | Private |
Public Member Functions | |
| KisStrokeRandomSource () | |
| KisStrokeRandomSource (const KisStrokeRandomSource &rhs) | |
| int | levelOfDetail () const |
| KisStrokeRandomSource & | operator= (const KisStrokeRandomSource &rhs) |
| KisPerStrokeRandomSourceSP | perStrokeSource () const |
| void | setLevelOfDetail (int value) |
| KisRandomSourceSP | source () const |
| ~KisStrokeRandomSource () | |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
A helper class to handle multiple KisRandomSource objects in a stroke strategies. It creates two identical random sources in the beginning of the stroke, so, when copied through copy-ctor and set another level of detail starts returning the same sequence of numbers as was returned for the first stroke.
Definition at line 24 of file kis_stroke_random_source.h.
| KisStrokeRandomSource::KisStrokeRandomSource | ( | ) |
Definition at line 29 of file kis_stroke_random_source.cpp.
| KisStrokeRandomSource::KisStrokeRandomSource | ( | const KisStrokeRandomSource & | rhs | ) |
Definition at line 34 of file kis_stroke_random_source.cpp.
| KisStrokeRandomSource::~KisStrokeRandomSource | ( | ) |
Definition at line 48 of file kis_stroke_random_source.cpp.
| int KisStrokeRandomSource::levelOfDetail | ( | ) | const |
Definition at line 63 of file kis_stroke_random_source.cpp.
References m_d.
| KisStrokeRandomSource & KisStrokeRandomSource::operator= | ( | const KisStrokeRandomSource & | rhs | ) |
Definition at line 39 of file kis_stroke_random_source.cpp.
References m_d.
| KisPerStrokeRandomSourceSP KisStrokeRandomSource::perStrokeSource | ( | ) | const |
| void KisStrokeRandomSource::setLevelOfDetail | ( | int | value | ) |
Definition at line 68 of file kis_stroke_random_source.cpp.
| KisRandomSourceSP KisStrokeRandomSource::source | ( | ) | const |
|
private |
Definition at line 41 of file kis_stroke_random_source.h.