Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_stroke_random_source.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
27
28
33
38
40{
41 if (&rhs != this) {
42 *m_d = *rhs.m_d;
43 }
44
45 return *this;
46}
47
51
53{
54 return m_d->levelOfDetail ? m_d->lodNRandomSource : m_d->lod0RandomSource;
55}
56
58{
59 return m_d->levelOfDetail ? m_d->lodNPerStrokeRandomSource : m_d->lod0PerStrokeRandomSource;
60}
61
62
64{
65 return m_d->levelOfDetail;
66}
67
69{
70 m_d->levelOfDetail = value;
71}
float value(const T *src, size_t ch)
const QScopedPointer< Private > m_d
KisRandomSourceSP source() const
KisPerStrokeRandomSourceSP perStrokeSource() const
KisStrokeRandomSource & operator=(const KisStrokeRandomSource &rhs)
KisPerStrokeRandomSourceSP lodNPerStrokeRandomSource
KisPerStrokeRandomSourceSP lod0PerStrokeRandomSource