18 for (
int i = 0; i < parasites.count(); i++) {
19 const QList<QStringView> split = parasites.at(i).split(QLatin1Char(
':'), Qt::SkipEmptyParts);
21 if (split.count() != 2) {
22 warnImage <<
"Wrong count for this parasite key/value:" << parasites.at(i);
25 const QStringView &
index = split.at(0);
26 if (
index == QLatin1String(
"dim")) {
27 dim = (split.at(1)).toInt();
67 ncells = (split.at(1)).toInt();
75 for (
int i = 0; i <
dim; i++) {
84 for (
int i = 0; i <
MaxDim; i++) {
92 for (
int i = 0; i <
dim; i++) {
98 warnImage <<
"PIPE brush has a wrong rank for its selection mode!";
114 for (
int i = 1; i <
dim; i++) {
135 for (
int i = 0; i <
dim; i++) {
136 stream <<
" rank" << i <<
":" <<
rank[i] <<
" sel" << i <<
":";
139 stream <<
"constant";
break;
141 stream <<
"incremental";
break;
143 stream <<
"angular";
break;
145 stream <<
"velocity";
break;
147 stream <<
"random";
break;
149 stream <<
"pressure";
break;
151 stream <<
"xtilt";
break;
153 stream <<
"ytilt";
break;
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
KisPipeBrushParasite()
Set some default values.
KisParasite::SelectionMode selection[MaxDim]
bool saveToDevice(QIODevice *dev) const
void setBrushesCount()
Initializes the brushesCount helper.
bool needsMovement
If true, the brush won't be painted when there is no motion.
qint32 brushesCount[MaxDim]
The total count of brushes in each dimension (helper)
qint32 index[MaxDim]
The current index in each dimension, so that the selection modes know where to start.
bool loadFromDevice(QIODevice *)
void setUtf8OnStream(QTextStream &stream)